当我尝试使用“Ubuntu软件”安装.deb文件时,它会永远显示“等待安装”。
$ sudo dpkg -i <path/to/deb.deb>
$ sudo 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的评论
sudo apt-get install ./file.deb
或者sudo apt-get install /path/to/file.deb
更简单。 - Chai T. Rexunity --reset-icons
或重新启动您的计算机(以删除“等待安装”)。unity --reset-icons
命令:它会关闭所有程序并将Unity启动器重置为初始状态(在Ubuntu安装中)! - Juh_看起来我们都受到了https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1573206的影响。
不幸的是,除了使用另一个软件包管理器来安装这些软件包之外,没有其他解决方案。
dpkg
通过终端安装.deb
文件。 - Mohit Rajan