我尝试使用此命令安装 libc6:sudo apt-get install libc6*
我遇到了一些错误:
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:
libcgi-application-plugin-captcha-perl : Depends: libdata-random-perl but it is not going to be installed
libcloog-isl-dev : Conflicts: libcloog-ppl-dev but 0.16.1-5 is to be installed
libclutter-gst-2.0-doc : Conflicts: libclutter-gst-doc but 1.6.0-2build1 is to be installed
libcuda1-304 : Conflicts: libcuda-5.0-1
libcuda1-304-updates : Conflicts: libcuda-5.0-1
libcuda1-331 : Breaks: libcuda-5.0-1
Breaks: libcuda-5.5-1
libcuda1-331-updates : Breaks: libcuda-5.0-1
Breaks: libcuda-5.5-1
libcunit1-ncurses : Conflicts: libcunit1 but 2.1-2.dfsg-1 is to be installed
libcunit1-ncurses-dev : Conflicts: libcunit1-dev but 2.1-2.dfsg-1 is to be installed
libcurl4-gnutls-dev : Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed
Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed
libcurl4-nss-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed
Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed
libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed
Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
请有人帮助我 :/
谢谢
答案1
我尝试使用此命令安装 libc6:sudo apt-get install libc6*
使用libc6*
那里选择的包比您可能预期的要多得多。
来自apt-get 手册页:
如果没有包与给定的表达式匹配,并且表达式包含“。”,“?”或“*”之一,则假定它是 POSIX 正则表达式,并且它应用于数据库中的所有包名称。
所以libc6*
意思是“每个包含 的包libc
”。那里肯定会有一些冲突。
您可以尝试sudo apt-get install '^libc6.*'
仅获取以 开头的包libc6
,但这会让您得到很多适用于其他架构的软件包(用于交叉编译)。
sudo apt-get install libc6 libc6-dbg libc6-dev
如果您只想要适用于您的架构的所有典型 libc6 软件包,那么使用 可能就足够了。我想您的系统已经libc6
安装了。