我正在运行 Ubuntu 16.04,当我打开 .deb 文件时,它会打开 Ubuntu 软件。当我按下 Ubuntu 软件中的安装按钮时,它会打开“等待安装”过程,并且永远不会安装。
输出sudo apt install /home/potato/Downloads/discord-0.0.4.deb
:
potato@Potato:~$ sudo apt install /home/potato/Downloads/discord-0.0.4.deb
[sudo] password for potato:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'discord' instead of '/home/potato/Downloads/discord-0.0.4.deb'
The following additional packages will be installed:
libappindicator1 libc++1 libindicator7
Suggested packages:
clang
The following NEW packages will be installed:
discord libappindicator1 libc++1 libindicator7
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
Need to get 21.9 kB/47.9 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 /home/potato/Downloads/discord-0.0.4.deb discord amd64 0.0.4 [47.6 MB]
95% [Connecting to us.archive.ubuntu.com]
Err:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libindicator7 amd64 12.10.2+16.04.20151208-0ubuntu1
Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libi/libindicator/libindicator7_12.10.2+16.04.20151208-0ubuntu1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
输出dpkg -i
sudo dpkg -i /home/potato/Downloads/discord-0.0.4.deb Selecting previously unselected package discord. (Reading database ... 244590 files and directories currently installed.) Preparing to unpack .../Downloads/discord-0.0.4.deb ... Unpacking discord (0.0.4) ... dpkg: dependency problems prevent configuration of discord: discord depends on libappindicator1; however: Package libappindicator1 is not installed. discord depends on libc++1; however: Package libc++1 is not installed.
dpkg: error processing package discord (--install): dependency problems - leaving unconfigured Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for mime-support (3.59ubuntu1) ... Errors were encountered while processing: discord