我尝试在 UBuntu 14.04 上安装 git-lfs。出现了一些错误,一些步骤是我随机执行的,我不记得确切的步骤顺序,但我卡在这里。
无论我尝试安装任何软件包,都会出现以下错误 -
root@saurabh-Lenovo-Z50-70:~# apt-get install iperf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
iperf
0 upgraded, 1 newly installed, 0 to remove and 148 not upgraded.
1 not fully installed or removed.
Need to get 0 B/54.4 kB of archives.
After this operation, 169 kB of additional disk space will be used.
(Reading database ... 139 files and directories currently installed.)
Preparing to unpack .../iperf_2.0.5-3_i386.deb ...
Unpacking iperf (2.0.5-3) over (2.0.5-3) ...
dpkg: error processing package git-lfs (--configure):
package git-lfs is already installed and configured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of iperf:
iperf depends on libc6 (>= 2.15); however:
Package libc6 is not installed.
iperf depends on libgcc1 (>= 1:4.1.1); however:
Package libgcc1 is not installed.
iperf depends on libstdc++6 (>= 4.1.1); however:
Package libstdc++6 is not installed.
dpkg: error processing package iperf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
git-lfs
iperf
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@saurabh-Lenovo-Z50-70:~#
我尝试通过执行 apt-get purge git-lfs 、 apt-get autoclean 来删除 git-lfs,但似乎没有任何帮助。
请告诉我如何修复 dpkg。我不再需要 git-lfs,所以我可以将其完全删除。
尝试了包裹系统坏了。该如何修复?。
root@saurabh-Lenovo-Z50-70:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 144 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package git-lfs (--configure):
package git-lfs is already installed and configured
Errors were encountered while processing:
git-lfs
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get clean 和 apt-get update 可以工作,但 apt-get install -f 会失败。而且我之前没有安装过 synaptic,所以现在无法安装任何新软件包。