WSL是windows10的linux子系统
执行curl安装出现错误
root@XPS15:~# apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: curl : Depends: libcurl3 (= 7.35.0-1ubuntu2.20) but 7.47.0-1ubuntu2.14 is to be installed E: Unable to correct problems, you have held broken packages.
主要看这一行:
curl : Depends: libcurl3 (= 7.35.0-1ubuntu2.20) but 7.47.0-1ubuntu2.14 is to be installed
根据错误信息我们需要安装指定版本的libcurl3-gnutls即可
root@XPS15:~# sudo apt-get install libcurl3-gnutls=7.35.0-1ubuntu2.20 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: dns-root-data dnsmasq-base ebtables landscape-common liblxc-common liblxc1 libnghttp2-14 libuv1 lxcfs lxd lxd-client pastebinit python3-attr python3-automat python3-click python3-colorama python3-constantly python3-hyperlink python3-incremental python3-newt python3-pam python3-pyasn1 python3-pyasn1-modules python3-service-identity python3-twisted python3-twisted-bin python3-zope.interface run-one uidmap xdelta3 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libgcrypt11 libgnutls26 librtmp0 Suggested packages: rng-tools gnutls-bin The following NEW packages will be installed: libgcrypt11 libgnutls26 librtmp0 The following packages will be DOWNGRADED: libcurl3-gnutls 0 upgraded, 3 newly installed, 1 downgraded, 0 to remove and 1 not upgraded. Need to get 849 kB of archives. After this operation, 1748 kB of additional disk space will be used. Do you want to continue? [Y/n] y ...
登录后可发表评论