安装了 Ubuntu 16.04,这是我的规格:
OS: Ubuntu 16.04 LTS x86_64
Kernel: 4.4.0-21-generic
Uptime: up 17 hours, 39 minutes
Packages: 3268
Shell: /usr/bin/fish
Resolution: 1366x768
Desktop Environment: XFCE
Window Manager: Xfwm4
Theme: Numix Solarized [GTK2], Arc-Dark-Solid [GTK3]
Icons: Numix-Circle [GTK2], Numix-Circle-Light [GTK3]
CPU: E1-2100 APU (2) @ 1.0GHz
GPU: AMD KabiniRadeon HD 8210
Memory: 1326MB / 3418MB
当我更新后重新启动时,Ubuntu 软件中心仍然存在,并且在打开时崩溃。所以我卸载它并再次重新启动它,但 gnome 软件中心仍然不存在。所以我尝试使用它来安装它,sudo apt install gnome-software
但我得到的是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
gnome-software : Depends: appstream but it is not installable
Depends: libgnome-desktop-3-12 (>= 3.17.92) but it is not installable
Depends: libgtk-3-0 (>= 3.18) but 3.16.7-0ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
请指教!
答案1
您没有配置任何软件源,这意味着您的安装出了问题。由于可能存在更多问题,我将重新安装系统。请确保您使用官方最新的 Xubuntu 映像。
如果你想尝试修复你的系统,你可以使用例如https://repogen.simplylinux.ch/创建一个新的 sources.list
保存新/etc/apt/sources.list
运行后
sudo apt-get update
sudo apt-get dist-upgrade
apt-get
应该会提示你升级一些软件包。执行此操作,然后运行
sudo apt-get install xubuntu-desktop
默认安装 Xubuntu 的所有软件。
答案2
我升级到 16.04 LTS 时也遇到了同样的失败。我尝试了几种方法,例如:
sudo apt-get install -f
但有些软件包仍未安装。
我已通过重新安装所有软件包修复了升级。您必须libgtk-3-*
从安装过程中排除这些软件包,因为它们存在依赖性故障。
sudo apt-get --reinstall install $(dpkg-query -f '${binary:Package}\n' -W | grep -v "libgtk-3")