每当我尝试通过软件中心安装它们时,它都会在几个小时内保持在 0%。相反,我尝试通过从源代码编译来安装我需要的应用程序。我需要该build-essential
包并尝试使用apt-get
.现在,它尝试安装一堆依赖项以及 ,但dropbox-nautilus
它也以 100% 下载状态挂起几个小时。这是完整的终端输出:
sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libunistring0:i386 libgomp1:i386 libcroco3:i386 libgettextpo0:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libdpkg-perl
Suggested packages:
debian-keyring
The following NEW packages will be installed:
build-essential dpkg-dev fakeroot libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
0 upgraded, 7 newly installed, 0 to remove and 327 not upgraded.
6 not fully installed or removed.
Need to get 818 kB of archives.
After this operation, 3,169 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main libdpkg-perl all 1.16.1.2ubuntu7.6 [181 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main dpkg-dev all 1.16.1.2ubuntu7.6 [468 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu/ precise-updates/main build-essential amd64 11.5ubuntu2.1 [5,816 B]
Get:4 http://ca.archive.ubuntu.com/ubuntu/ precise/main fakeroot amd64 1.18.2-1 [87.2 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu/ precise/main libalgorithm-diff-perl all 1.19.02-2 [50.7 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu/ precise/main libalgorithm-diff-xs-perl amd64 0.04-2build2 [12.4 kB]
Get:7 http://ca.archive.ubuntu.com/ubuntu/ precise/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
Fetched 818 kB in 5s (136 kB/s)
Selecting previously unselected package libdpkg-perl.
(Reading database ... 234719 files and directories currently installed.)
Unpacking libdpkg-perl (from .../libdpkg-perl_1.16.1.2ubuntu7.6_all.deb) ...
Selecting previously unselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.16.1.2ubuntu7.6_all.deb) ...
Selecting previously unselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5ubuntu2.1_amd64.deb) ...
Selecting previously unselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.18.2-1_amd64.deb) ...
Selecting previously unselected package libalgorithm-diff-perl.
Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-2_all.deb) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-2build2_amd64.deb) ...
Selecting previously unselected package libalgorithm-merge-perl.
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.deb) ...
Processing triggers for man-db ...
Setting up gdebi-core (0.8.5build1) ...
Setting up libcairo-perl (1.081-1build2) ...
Setting up libglib-perl (2:1.241-1) ...
Setting up libpango-perl (1.222-1build1) ...
Setting up libgtk2-perl (2:1.223-1build3) ...
Setting up nautilus-dropbox (0.7.1-2) ...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/
Downloading Dropbox... 100%
这里发生了什么?我该如何解决它?apt-get
目前完全无法使用。
答案1
事实并非如此。
sudo apt-get install build-essential
The following NEW packages will be installed:
build-essential dpkg-dev fakeroot libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
列表中没有 nautilus-dropbox 软件包。您的问题稍后会看到:
0 upgraded, 7 newly installed, 0 to remove and 327 not upgraded.
6 not fully installed or removed.
您有半安装或未配置的软件包,我认为这就是软件中心也变得无响应的原因。
解决所有这些问题的唯一方法是完成这些包的配置:
sudo dpkg --configure -a
这应该完成 nautilus-dropbox 和任何其他软件包的安装。然后照常安装 build-essentials 就可以了。
如果出于某种原因您不想安装正在配置的软件包之一,即。 nautilus-dropbox,您可以直接删除它们:
sudo dpkg --remove nautilus-dropbox