我有一个新的Ubuntu22.04安装在Ryzen 5 CPU机器上,我从https://www.google.co.uk/chrome/安装Chrome,选择64位.deb
包,安装工作正常,没有出现错误。
然而,运行Chrome时,它从不显示任何内容,并给出了一个错误:
kevin@home:~$ google-chrome libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[23127:23127:0422/093510.765043:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
我尝试了rm -rf ~/.config/google-chrome
,我也尝试了google-chrome --disable-gpu --no-sandbox
,但是两者都不能工作。
这是Chrome版本:
kevin@home:~$ google-chrome --version
Google Chrome 100.0.4896.127
这就是sudo google-chrome --disable-gpu --no-sandbox
的出路:
kevin@home:~$ sudo google-chrome --disable-gpu --no-sandbox
[sudo] password for kevin:
[29946:29973:0422/095302.474445:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[29946:29973:0422/095302.474504:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[29981:29981:0422/095302.480831:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[29981:29981:0422/095302.480902:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[29981:29981:0422/095302.480949:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Not initialized.
[29981:29981:0422/095302.480973:ERROR:gl_surface_egl.cc(1430)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[29981:29981:0422/095302.481006:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[29981:29981:0422/095302.481880:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[29946:29973:0422/095302.483125:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[29946:29973:0422/095302.483146:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[30017:30017:0422/095302.509279:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[30017:30017:0422/095302.509350:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[30017:30017:0422/095302.509401:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Not initialized.
[30017:30017:0422/095302.509432:ERROR:gl_surface_egl.cc(1430)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[30017:30017:0422/095302.509467:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[30017:30017:0422/095302.510423:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[30043:30043:0422/095302.523272:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[30043:30043:0422/095302.523368:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[30043:30043:0422/095302.523423:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Not initialized.
[30043:30043:0422/095302.523468:ERROR:gl_surface_egl.cc(1430)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[30043:30043:0422/095302.523512:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[30043:30043:0422/095302.524597:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[30094:30094:0422/095302.533872:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is
[30094:30107:0422/095302.535111:ERROR:x11_software_bitmap_presenter.cc(141)] XGetWindowAttributes failed for window 10485763
作为root
运行,我得到了进一步,但它挂着一个小(和空)“欢迎来到谷歌Chrome",框和许多错误,有什么想法吗?
发布于 2022-04-23 08:43:09
在下载Ubuntu22.04LTS的Chrome和Opera (基于铬的)时,在英特尔上体验了相同的google-chrome libva error
。
通过完成下载后重新启动(将reboot
输入终端),解决了这两个浏览器的问题。
虽然,我觉得愚蠢的建议关闭你的电脑一次又一次。
发布于 2023-03-26 06:27:24
同样的整体问题,但在我的例子中,这是一个文件权限障碍:
$ sudo apt install wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
--2023-03-26 14:35:18-- https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Resolving dl.google.com (dl.google.com)... 172.253.116.91, 172.253.116.93, 172.253.116.190, ...
Connecting to dl.google.com (dl.google.com)|172.253.116.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93863468 (90M) [application/x-debian-package]
Saving to: ‘google-chrome-stable_current_amd64.deb’
google-chrome-stabl 100%[===================>] 89.51M 4.97MB/s in 19s
2023-03-26 14:35:38 (4.66 MB/s) - ‘google-chrome-stable_current_amd64.deb’ saved [93863468/93863468]
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 338595 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (111.0.5563.110-1) ...
Setting up google-chrome-stable (111.0.5563.110-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for menu (2.1.47ubuntu4) ...
$ google-chrome
/usr/bin/google-chrome: line 8: /usr/bin/readlink: Permission denied
/usr/bin/google-chrome: line 10: /usr/bin/dirname: Permission denied
/usr/bin/google-chrome: line 24: /usr/bin/mkdir: Permission denied
这三个文件夹:
/usr/bin/readlink /usr/bin/dirname /usr/bin/mkdir
所有用户都可读和可执行,但只能通过root写。
在/usr/bin/google-chrome中是否有代码试图更改这3个目录中的代码?
这真的很奇怪,为什么Chrome总是对Ubuntu有问题。。。
我想我们应该接受这个提示。
我们都用铬吧。
发布于 2023-04-24 01:38:38
Ubuntu22.04与Wayland有问题。
解决方案:(为我工作)
使用折叠命令删除:
sudo apt remove icaclient && sudo apt purge icaclient
我希望它也适用于你。
https://askubuntu.com/questions/1403694
复制相似问题