![在 ubuntu 13.04 中无需互联网安装通用标头](https://linux22.com/image/849319/%E5%9C%A8%20ubuntu%2013.04%20%E4%B8%AD%E6%97%A0%E9%9C%80%E4%BA%92%E8%81%94%E7%BD%91%E5%AE%89%E8%A3%85%E9%80%9A%E7%94%A8%E6%A0%87%E5%A4%B4.png)
我尝试通过下载 .deb 格式的通用 Linux 标头来安装它们,而无需互联网。根据我逐一安装的依赖项,然后我遇到了这个问题.libc6:i386 depends on libgcc1; and libgcc1:i386 depends on libc6 (>= 2.2.4); .. **these two dependencies are cyclic**
,无法解决它们。
sudo dpkg -i libc6_2.17-0ubuntu5.1_i386.deb
(Reading database ... 180653 files and directories currently installed.)
Preparing to replace libc6:i386 2.17-0ubuntu5.1 (using libc6_2.17-0ubuntu5.1_i386.deb) ...
Unpacking replacement libc6:i386 ...
dpkg: dependency problems prevent configuration of libc6:i386:
**libc6:i386 depends on libgcc1; however:
Package libgcc1:i386 is not configured yet.**
dpkg: error processing libc6:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc6:i386
jv@jv-Naruto:~/Downloads/sdsd$ sudo dpkg -i libgcc1_4.7.3-1ubuntu1_i386.deb
(Reading database ... 180653 files and directories currently installed.)
Preparing to replace libgcc1:i386 1:4.7.3-1ubuntu1 (using libgcc1_4.7.3-1ubuntu1_i386.deb) ...
Unpacking replacement libgcc1:i386 ...
dpkg: dependency problems prevent configuration of libgcc1:i386:
**libgcc1:i386 depends on libc6 (>= 2.2.4); however:
Package libc6:i386 is not configured yet.**
有什么建议吗?
答案1
一次性安装所有 deb(尝试ls *.deb
了解 joker 的概念*
)
sudo dpkg -i *.deb
或者
sudo dpkg -i libc6_2.17-0ubuntu5.1_i386.deb libgcc1_4.7.3-1ubuntu1_i386.deb
参考man dpkg
(...
表示很多)
-i, --install package-file...
答案2
您可以从以下位置下载 libgcc1 的 .deb 文件:
http://packages.ubuntu.com/raring/libgcc1
如果需要,您可能能够或无法获取它的依赖项,因为并非 Ubuntu 存储库中的所有文件都可通过 packages.ubuntu.com 网站获得。
转到页面底部,单击 i386 或 amd64,选择一个镜像(它们是 .deb 的直接下载链接)。