【发布时间】:2017-07-05 14:00:14
【问题描述】:
我很高兴能在 Windows 上使用 bash,但很快就遇到了问题。我正在尝试安装 build-essential,但我遇到了依赖问题。在尝试使用 sudo apt-get install -f 解决时,我遇到了另一个没有多大意义的错误。我试过更新和升级,但也没有用。 F
barzevp@UK-LT-8356:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
libc6-dev : Depends: linux-libc-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
barzevp@UK-LT-8356:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-libc-dev
The following NEW packages will be installed
linux-libc-dev
0 to upgrade, 1 to newly install, 0 to remove and 43 not to upgrade.
5 not fully installed or removed.
Need to get 0 B/767 kB of archives.
After this operation, 3,946 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 28660 files and directories currently installed.)
Preparing to unpack .../linux-libc-dev_3.13.0-123.172_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.13.0-123.172) ...
dpkg: error processing archive /var/cache/apt/archives/linux-libc-dev_3.13.0-123.172_amd64.deb (--unpack):
unable to install new version of /usr/include/linux/netfilter_ipv6/ip6t_hl.h': File exists
E: Sub-process /usr/bin/dpkg returned an error code (1)
在 Windows 终端上的 Ubuntu 上导致 Bash 错误的完整日志在这里: https://pastebin.com/dq2D2Gtz
【问题讨论】:
-
运行“apt-get check”重新构建缓存并重试。
-
@RamanSailopal,刚试过这个,但最终还是会导致同样的错误(未满足的依赖,使用
apt-get -f install解决等) -
我也有同样的问题,请问你解决了吗?
-
是的,通过切换到 Ubuntu 16.04 解决了这个问题。现在快乐的日子:)
-
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地点。
标签: windows bash ubuntu windows-subsystem-for-linux