“等待安装”永远 – Ubuntu软件 – 16.04
当我尝试使用“Ubuntu软件”安装.deb文件时,它始终保持“等待安装”。
从终端安装.deb包:
$ sudo dpkg -i $ sudo apt-get install -f
apt-get install -f背后的原因来自手册页:
-f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.
图片来源:Mohit Rajan的评论
1 – 在新的“Ubuntu软件”中添加旧的“Ubuntu软件中心”。
2 – unity --reset-icons
或重新启动计算机(删除“等待安装”)
3 – 使用刚刚安装的“Ubuntu软件中心”打开.deb文件
4 – 安装它
只是一个建议,不确定它是否应该有用,但是,如果你经常从.deb文件安装包,建议使用像Gdebi这样可靠的包处理程序
但是,如果您想浏览应用程序并从同一个地方安装它们,您应该坚持使用Ubuntu软件中心。 要删除Gnome-Software并安装经典且值得信赖的Ubuntu软件中心,请遵循本指南 。
似乎我们都受到https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1573206的影响。
不幸的是,没有其他解决方案比使用其他软件包管理器来安装这些软件包