![Ubuntu 软件不显示任何软件](https://linux22.com/image/1135519/Ubuntu%20%E8%BD%AF%E4%BB%B6%E4%B8%8D%E6%98%BE%E7%A4%BA%E4%BB%BB%E4%BD%95%E8%BD%AF%E4%BB%B6.png)
答案1
更改下载自服务器软件与更新。我已将我的服务器设置为附近的瑞典服务器(可能它本身尚未更新)。我更改为看起来更正式的英国服务器,Ubuntu 软件现在可以正常工作了。
答案2
这很可能是因为新安装的系统缺少可用软件包的数据库。您可以按照以下步骤从软件包存储库生成最新的数据库。
打开终端。有很多方法可以实现这一点,但最常见的是
- 输入
terminal
破折号并启动同名的应用程序或 - 按Ctrl+ Alt+ T。
- 输入
在终端中输入或复制粘贴以下命令并运行它们:
sudo apt update sudo apt upgrade -y
(如果您在此过程中遇到任何错误,请提出一个新问题并包括全部的这些命令的输出逐字。
重新打开软件中心并重试。
答案3
如果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-software 文件夹并恢复备份rm -r ~/.local/share/gnome-software && mv ~/.local/share/gnome-software{-BAK,}
:)
最后,如果这些都不适合您,我很想知道以下输出:
find /etc/apt/ -name '*.list' -ls -exec cat {} \;
这是所有允许的来源的列表(来源是包含可供下载的软件的存储库)。
虽然我想不出为什么 sources.list 中没有任何内容,但这也是我能想到的唯一解释,为什么在尝试了所有正常的故障排除步骤后,Ubuntu 软件中没有显示任何可用内容。
上述命令的输出示例:
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
在上面的示例中,四个主要存储库都已启用。
- 主要 - Canonical 支持的免费开源软件。
- Universe - 社区维护的免费开源软件。
- 受限 - 设备的专有驱动程序。
- Multiverse——受版权或法律问题限制的软件。
更新也已启用。包含来自 Canonical 合作伙伴的软件的存储库未启用。这些代表首次安装 Ubuntu 时启用的标准选项。
如果您添加了任何 PPA,它们也会出现在上面的输出中。
答案4
我通常会得到一个空白的加载应用程序图标。使用:
killall snap-store
然后,重启 ubuntu 商店