我正在尝试从源代码编译 synergy。但要做到这一点,我需要安装一些依赖项。我遇到的问题是,当我安装几个依赖项时,我得到了未满足的依赖项错误。其中一个是“qtbase-dev”包。当我运行 apt install qtbase5-dev 时,我得到了以下信息
some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
qtbase5-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
Depends: libglu1-mesa-dev but it is not going to be installed or
libglu-dev
E: Unable to correct problems, you have held broken packages.
所以我开始用 . 它什么都不做。接下来我尝试使用
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get install -f
它根本没有输出。所以看起来实际上没有任何保留的包裹,接下来我尝试清理
sudo apt-get clean
sudo apt-get autoclean
还试图移除被扣留的包裹
sudo apt-get -u dist-upgrade
我甚至下载了 synaptic 包管理并尝试从那里安装 qtbase5-dev。但它又出现了类似的错误。
Could not apply changes!
Fix broken packages first.
我尝试使用 Synaptic 来做到这一点,但是它引发了更多错误。
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
这是我的 /etc/apt/source 的结果。
# deb cdrom:[Ubuntu 19.04 _Disco Dingo_ - Release amd64 (20190416)]/ disco main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ eoan main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ eoan universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco universe
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ eoan multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco multiverse
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ eoan-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu disco partner
# deb-src http://archive.canonical.com/ubuntu disco partner
deb http://security.ubuntu.com/ubuntu eoan-security main
# deb-src http://security.ubuntu.com/ubuntu disco-security main restricted
deb http://security.ubuntu.com/ubuntu eoan-security universe
# deb-src http://security.ubuntu.com/ubuntu disco-security universe
deb http://security.ubuntu.com/ubuntu eoan-security multiverse
# deb-src http://security.ubuntu.com/ubuntu disco-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
####deb http://archive.ubuntu.com/ubuntu eoan restricted multiverse main universe
# deb-src http://archive.ubuntu.com/ubuntu eoan universe
# deb-src http://archive.ubuntu.com/ubuntu eoan main universe restricted multiverse
有人有什么建议吗?
我所知道的最近发生的唯一事情是从 19.04 更新到 19.10。因为我收到通知说 19.04 将不再接收更新。