首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu软件没有显示任何软件

Ubuntu软件没有显示任何软件
EN

Ask Ubuntu用户
提问于 2016-04-22 20:09:22
回答 4查看 46.3K关注 0票数 13

安装16.04后,Ubuntu软件总是空的,如屏幕截图所示。我怎么才能解决这个问题?

EN

回答 4

Ask Ubuntu用户

发布于 2016-04-22 21:53:31

在软件和更新中更改从服务器下载的内容。我把我的照片放在了附近的一个瑞典手机上(也许它本身还没有更新)。我换了一个更正式的英国服务器,Ubuntu软件现在正在工作。

票数 8
EN

Ask Ubuntu用户

发布于 2018-04-09 20:46:19

如果sudo apt-get update && sudo apt-get upgrade后面的重新启动不能解决这个问题,我建议:

代码语言:javascript
复制
sudo apt-get dist-upgrade

重新启动。如果这没有帮助,您也可以尝试备份,然后删除与程序相关的主目录中的文件夹。首先,在终端或其他CLI中:

代码语言:javascript
复制
killall gnome-software

然后

代码语言:javascript
复制
mv ~/.local/share/gnome-software{,-BAK}

重新打开Ubuntu软件。(如果需要,您可以随时撤消gnome软件文件夹的删除,并恢复备份:rm -r ~/.local/share/gnome-software && mv ~/.local/share/gnome-software{-BAK,})

最后,如果所有这些都不适合您,我想知道以下内容的输出:

代码语言:javascript
复制
find /etc/apt/ -name '*.list' -ls -exec cat {} \;

这是所有允许的源的列表(源代码是包含可下载软件的存储库)。

虽然我想不出为什么您在sources.list中什么都没有,但这也是我唯一能想到的解释,为什么在Ubuntu中,在尝试了所有正常的故障排除步骤之后,什么都没有出现。

上面命令的示例输出:

代码语言:javascript
复制
  1234567      4 -rw-r--r--   1 root     root         3026 Apr  8 22:39 /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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/ xenial multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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/ xenial-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner
## deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

在上面的示例中,启用了四个主要存储库。

  1. 主要规范支持的免费和开放源码软件。
  2. 宇宙-社区维护自由和开放源码软件。
  3. 设备专用驱动程序。
  4. 多重-受版权或法律问题限制的软件。

还启用了更新。没有启用来自规范合作伙伴的软件的Repos。这些是第一次安装Ubuntu时启用的标准选项。

如果您添加了任何PPA,它们也会出现在上面的输出中。

票数 4
EN

Ask Ubuntu用户

发布于 2020-03-19 10:35:25

如果上面的方法不起作用,试着重新安装Gnome-软件,这对我是有效的。

代码语言:javascript
复制
sudo apt autoremove gnome-software && sudo apt install gnome-software
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/760817

复制
相关文章

相似问题

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