我已经gtk2
安装在我的ec2 machine
实例上。为了安装最新google-chrome
/mozilla-firefox
版本,需要libgtk3
在机器中安装
- 如果升级到gtk3会有什么问题吗?
- 在 CentOS Linux 中安装 gtk3 的实际 cmd 是什么?
[ec2-user@ip-xxx-xx-x-xxx bin]$ sudo yum update google-chrome-stable
Loaded plugins: priorities, update-motd, upgrade-helper
3615 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:57.0.2987.133-1 will be updated
---> Package google-chrome-stable.x86_64 0:64.0.3282.167-1 will be an update
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: google-chrome-stable-64.0.3282.167-1.x86_64
--> Processing Dependency: libatk-bridge-2.0.so.0()(64bit) for package: google-chrome-stable-64.0.3282.167-1.x86_64
--> Processing Dependency: libgdk-3.so.0()(64bit) for package: google-chrome-stable-64.0.3282.167-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-64.0.3282.167-1.x86_64 (google-chrome)
Requires: libgtk-3.so.0()(64bit)
Error: Package: google-chrome-stable-64.0.3282.167-1.x86_64 (google-chrome)
Requires: libatk-bridge-2.0.so.0()(64bit)
Error: Package: google-chrome-stable-64.0.3282.167-1.x86_64 (google-chrome)
Requires: libgdk-3.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
下面的终端cmd帮助我安装了最新的google-chrome
浏览器;但是,如果有人给出这个问题的恰当答案,那就太好了
curl https://intoli.com/install-google-chrome.sh | bash
答案1
以下命令对我有用:
sudo yum install gtk3-devel
请注意,我使用的是 Python 3.6.3。