尝试运行时sudo apt-get install google-chrome-stable
,出现以下消息
The following packages have unmet dependencies:
google-chrome-stable : Depends: lib32gcc1 (>= 1:4.1.1) but it is not installable
Depends: lib32stdc++6 (>= 4.6) but it is not installable
Depends: libc6-i386 (>= 2.11) but it is not installable
E: Unable to correct problems, you have held broken packages.
例如,当我尝试安装时lib32gcc1
,我收到消息
Package lib32gcc1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lib32gcc1' has no installation candidate
- 导致该问题的原因是什么?例如,为什么包裹会破损?
- 我该如何解决这个问题?
答案1
这是由于 Chrome 存储库中的打包错误造成的。
您可以使用此解决方案从 chromium 错误跟踪器直到 Google-chrome-stable 包在存储库上更新。
您可以像这样重新打包并安装它:
$ apt-get download google-chrome-stable
$ dpkg-deb -R google-chrome-stable_30.0.1599.101-1_i386.deb 304017
$ sed -i 304017/DEBIAN/control \
-e 's/30.0.1599.101-1/30.0.1599.101-2~304017/' \
-e 's/lib32gcc1 (>= 1:4.1.1), lib32stdc++6 (>= 4.6), //' \
-e 's/libc6-i386 (>= 2.11), //'
$ sudo chown root:root 304017/opt/google/chrome/chrome-sandbox
$ sudo chmod 4755 304017/opt/google/chrome/chrome-sandbox
$ dpkg-deb -b 304017
$ sudo dpkg -i 304017.deb
感谢用户。