Ubuntu软件未显示任何软件


Answers:


7

在“ 软件和更新”中更改服务器的下载。我把我的东西放在附近的瑞典那边(也许它本身还没有更新)。我改用看起来更正式的英国服务器,而Ubuntu软件现在可以使用了。


注意它们都是“官方的”。但是,服务器可能存在问题,是的。
蒂姆(Tim)

4

这很可能是因为新安装的系统缺少可用软件包的数据库。您可以按照以下步骤从软件包存储库中生成一个最新版本。

  1. 打开一个终端。有很多方法可以实现这一目标,但是最常见的是

    • 输入terminal破折号并启动具有相同名称的应用程序或
    • Ctrl+ Alt+ T
  2. 将以下命令键入或复制并粘贴到终端中,然后运行它们:

    sudo apt update
    sudo apt upgrade -y
    

    (如果您在此过程中遇到任何错误,请打开一个新问题,并逐字包含这些命令的整个输出。)

  3. 重新打开软件中心,然后重试。


您可能还需要检查来源。可以在GUI方式(“软件和更新”启动器)中执行此操作,但是如果Ubuntu软件已经存在问题,建议您在命令行中执行。

2

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

sudo apt-get dist-upgrade

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

killall gnome-software

然后

mv ~/.local/share/gnome-software{,-BAK}

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

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

find /etc/apt/ -name '*.list' -ls -exec cat {} \;

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

尽管我想不出您为什么在source.list中什么都没有的任何原因,但这也是我能想到的,为什么在尝试了所有正常的故障排除步骤后,Ubuntu Software中什么都没有显示的唯一解释。

上面命令的示例输出:

  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. Universe-社区维护的免费和开源软件。
  3. 受限-设备的专有驱动程序。
  4. Multiverse-受版权或法律问题限制的软件。

还启用了更新。未启用Canonical合作伙伴的软件回购。这些代表首次安装Ubuntu时启用的标准选项。

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


重命名gnome-software文件夹对我有用。谢谢。 mv ~/.local/share/gnome-software{,-BAK}不知道为什么。
詹姆斯·牛顿,

1

如果上述方法不起作用,请尝试重新安装Gnome软件,这对我有用

sudo apt autoremove gnome-software && sudo apt install gnome-software
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.