如何安装谷歌浏览器的所有版本(稳定/ beta /不稳定)而不会发生冲突?

我的盒子上有稳定版的谷歌浏览器。 每次我尝试安装beta版本或/和不稳定版本时,我都会遇到同样的问题:

The following packages will be REMOVED google-chrome-stable The following NEW packages will be installed google-chrome-beta 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. Need to get 34.5 MB of archives. After this operation, 3,109 kB of additional disk space will be used. Do you want to continue [Y/n]? 

我需要在安装另一个版本之前删除第一个版本。

我知道我无法并排安装现有的软件包。 它不需要通过包装系统完成! 我不在乎它是如何完成的。 它同样可以是手工制作的bash脚本或其他任何东西。 主要目标是让我们在Ubuntu上彼此相邻。 需要有办法……

总结我的问题: 如何将所有谷歌浏览器版本彼此相邻安装?

有可用的Chromium二进制文件不会污染/ bin内部,但可以直接从任何文件夹运行。

您可以从此处下载二进制文件并将其解压缩到您选择的任何文件夹,并将它们并排运行。

如果其他人遇到这个问题 – 似乎Chrome软件包维护者已经删除了3个已发布软件包中的冲突 – google-chrome-stable / -beta / -unstable。 这些都安装在不同的目录中,通过/ etc / alternatives,/ usr / bin / google-chrome软链接到特定版本(默认情况下为google-chrome-stable)。

测试Ubuntu 12.04 LTS w / Chrome 38(稳定)39(beta)和40(不稳定)。

你不能这样做。 这是因为所有这些版本(稳定版,测试版和不稳定版)相互矛盾。 看到:

 apt-cache show google-chrome-beta | grep Conflict Conflicts: google-chrome 

现在,google-chrome是Linux发行版的通用名称:

 which google-chrome /usr/bin/google-chrome 

我在我的系统上安装了google-chrome-beta:

 dpkg -l | grep google ii google-chrome-beta 22.0.1229.91-r158759 dpkg -S /usr/bin/google-chrome google-chrome-beta: /usr/bin/google-chrome 

正如您所看到的,google-chrome二进制文件是由我的系统上的google-chrome-beta提供的。 如果我安装稳定,那么它将由稳定提供。 所以,他们互相冲突。

如果您尝试通过Google发布的.deb软件包安装google-chrome-beta,您可以看到相同的效果:

 sudo LC_ALL=C dpkg --simulate -i google-chrome-beta_current_i386.deb Selecting previously unselected package google-chrome-beta. dpkg: regarding google-chrome-beta_current_i386.deb containing google-chrome-beta: google-chrome-beta conflicts with google-chrome google-chrome-stable provides google-chrome and is present and installed. dpkg: error processing google-chrome-beta_current_i386.deb (--install): conflicting packages - not installing google-chrome-beta Errors were encountered while processing: google-chrome-beta_current_i386.deb 

我已将beta改为google-chrome-stable,并尝试通过.deb软件包安装。

但是我不确定如果你能得到(?)chrome源代码并编译它会发生什么,然后尝试通过这个编译后的二进制文件来运行它。 也许这适用于Chromium。 既然你可以下载它的源代码。

这是可能的,但您可能必须下载apt-get download google-chrome-beta软件包

然后你将不得不提取包文件: dpkg -X google-chrome-beta-xyzabc.deb dir/

从这里你可以很好地运行程序,但如果没有,那么你将不得不摆弄控制文件并找出安装包正在做什么以及它放置和编辑它的位置,以便不再有冲突。

这是您需要花费大量时间阅读.deb文件的地方,并且您将希望在虚拟机中测试内容,这样您就不会搞砸安装。

免责声明:此解决方案现在可以使用,但不能保证是面向未来的。

安装稳定(及其依赖)后方便的方式…

从这里下载.deb文件(我在示例中使用unstable): https : //www.chromium.org/getting-involved/dev-channel

 mkdir tmp dpkg-deb -R google-chrome-unstable_current_amd64.deb tmp sudo cp -r tmp/opt/google/chrome-unstable /opt/google sudo chmod 4755 /opt/google/chrome-unstable/chrome-sandbox 

如果unstable与您安装的不兼容,它可能无法运行 – 或者您必须手动安装这些库。