不能apt-get google-chrome-stable
我似乎已经将我的谷歌浏览器的来源变为糟糕的状态,并且无法使用apt-get install google-chrome-stable
(它出错E: Unable to locate package google-chrome-stable
)。
我添加了我认为合适的来源:
dan@MyDesktop:~$ cat /etc/apt/sources.list.d/google-chrome.list deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
此外,看起来google-chrome-stable
软件包的条目已经被apt-get update
了,因为在我运行apt-get update
我看到:
dan@MyDesktop:~$ cat /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages | grep google-chrome-stable Package: google-chrome-stable Filename: pool/main/g/google-chrome-stable/google-chrome-stable_54.0.2840.100-1_amd64.deb
尽管如此, apt-get
仍然没有找到包:
dan@MyDesktop:~$ apt-cache policy google-chrome-stable N: Unable to locate package google-chrome-stable
添加有关apt-get
缓存的更多信息:
dan@MyDesktop:~$ apt-cache policy | grep google 500 http://dl.google.com/linux/musicmanager/deb/ stable/main i386 Packages release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main origin dl.google.com 500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main origin dl.google.com
添加有关用户身份的更多信息:
dan@MyDesktop:~$ uname -a Linux MyDesktop 3.13.0-101-generic #148-Ubuntu SMP Thu Oct 20 22:09:17 UTC 2016 i686 i686 i686 GNU/Linux
我想我已经确定了你的问题。 您使用的是32位Ubuntu,但谷歌浏览器仅适用于64位架构。 因此,默认情况下,当您要安装它时,它将显示
E: Unable to locate package google-chrome-stable
因此,解决方案是使用64位Ubuntu操作系统。
这是http://www.omgubuntu.co.uk/2016/01/google-chrome-linux-32-bit-discontinued的新闻。 但是,似乎你也可以使用支持32位arch的Chromium浏览器。 您也可以使用基于Chrome的Opera浏览器。