我正在尝试重新安装xfce或xubuntu桌面Ubuntu18.04在TTY上不幸和错误地删除了我的GUI软件包和可能的更多。我的消息来源列表目前看起来如下:
deb http://ca.archive.ubuntu.com/ubuntu/ bionic universe
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
apt policy ubuntu-desktop
的输出是
ubuntu-desktop:
Installed: (none)
Candidate: 1.417.5
Versiontable:
1.417.5 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates.main amd64 Packages
在运行sudo apt-get update && sudo apt-get upgrade
之后,我尝试用sudo apt-get install xubuntu-desktop
和sudo apt-get install xfce4
安装xubuntu桌面,这给出了一个依赖项列表,所有这些都表示它“不会安装”。例如:
The following packages have unmet dependencies:
xfce4: Depends: xfwm4 (>= 4.12.0) but it is not going to be installed
...
E: Unable to correct problems, you have held broken packages.
为了试图调查这个损坏的包问题,我尝试:
sudo apt-get install -f && sudo dpkg --configure -a
和
dpkg --get-selections | grep hold
却什么也没回。我也尝试过sudo apt-get install aptitude
作为解决办法,但我得到了:
E: Package 'aptitude' has no installation candidate
。
我知道我可以用sudo apt-get install <unmet dependencies> <unmet dependencies>
手动安装这些依赖项,但是对于数百个依赖项,我将永远停留在这样一个循环中。
我是不是在我的源代码列表中遗漏了一些东西,这会导致我无法安装像aptitude和xfce这样的软件包? 2)安装依赖关系吗?我不知道下一步该怎么办。
作为一个注意:我是新的Ubuntu!而且,我确实和wifi有联系。
发布于 2020-12-01 23:47:20
看看你的sources.list
您已经包含了多个支持、安全和更新的存储库,但是它们在主要的仿生版本中丢失了,这意味着如果您删除原始媒体上的包,您将无法重新安装它们(除非在“宇宙”中);例如。才能在“主”中找到)。
试一试
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
注意:我已经使用了你的帖子的格式,这不是我的样子。
关键是,您需要在第一行中添加“main”,但我也会添加“多重宇宙”和“受限”
https://help.ubuntu.com/community/Repositories/Ubuntu
我不认为这是你唯一的问题,它不能解释xfwm4
发布于 2020-12-01 23:48:39
你的sources.list
漏掉了
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted multiverse
我还看到,您已经启用了proposed
-repository,通常情况不应该是这样的。但你可能有自己的理由。如果有疑问,请禁用proposed
-repository。
https://askubuntu.com/questions/1296774
复制相似问题