我无意中删除了gnome软件,当我试图解决一个问题时,我会随机冻结桌面(我在一个随机论坛上愚蠢地遵循了这个建议)。这是iterm.log的相关部分:
(Reading database ... 243899 files and directories currently installed.)
Removing ubuntu-software (3.20.1+git20160617.1.0440874.ubuntu-xenial- 0ubuntu1~16.04.1) ...
Removing gnome-software (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.1-1~ubuntu16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...```
我认为我应该能够重新安装已卸载的内容,但我似乎不能这样做(至少不能通过apt-get
)。
sudo apt-get install ubuntu-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ubuntu-software is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ubuntu-software' has no installation candidate
以及gnome软件的类似信息。
$ sudo apt-get install gnome-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gnome-software is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gnome-software' has no installation candidate
我认为这可能是由于我在软件中的来源&更新,但我已经启用了所有的来源,我认为可能有软件包。我提供了以下资料来源:
apt-get update
的输出:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:6 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Hit:7 http://archive.canonical.com/ubuntu xenial InRelease
Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:10 http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial InRelease
Ign:11 http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04 InRelease
Hit:12 http://ppa.launchpad.net/ubuntu-desktop/gnome-software/ubuntu xenial InRelease
Hit:13 http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04 Release
Hit:14 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
Hit:16 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 190 kB in 1s (160 kB/s)
Reading package lists... Done
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:4
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:5
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:2
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/arc-theme.list:1 and /etc/apt/sources.list.d/arc-theme.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:4
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:2 and /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-gnome-software-xenial.list:5
apt-cache policy gnome-software
的输出:
gnome-software:
Installed: (none)
Candidate: (none)
Version table:
3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1 0
100 /var/lib/dpkg/status
软件和更新应用程序的截图:
发布于 2016-08-24 15:05:15
对任何可能遇到这种情况的人而言:
/var/lib/apt/lists
中的所有内容apt-get update && apt-get install gnome-software
https://askubuntu.com/questions/815939
复制相似问题