首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >意外卸载16.04中的gnome软件

意外卸载16.04中的gnome软件
EN

Ask Ubuntu用户
提问于 2016-08-23 19:58:36
回答 1查看 2.6K关注 0票数 0

我无意中删除了gnome软件,当我试图解决一个问题时,我会随机冻结桌面(我在一个随机论坛上愚蠢地遵循了这个建议)。这是iterm.log的相关部分:

代码语言:javascript
运行
复制
(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)。

代码语言:javascript
运行
复制
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软件的类似信息。

代码语言:javascript
运行
复制
$ 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的输出:

代码语言:javascript
运行
复制
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的输出:

代码语言:javascript
运行
复制
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

软件和更新应用程序的截图:

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-08-24 15:05:15

对任何可能遇到这种情况的人而言:

  1. 删除了/var/lib/apt/lists中的所有内容
  2. 按照说明概述了这里
  3. ran apt-get update && apt-get install gnome-software
票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/815939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档