Chromium 启动时出现黑屏。 sudo apt-get update 也返回错误

Chromium 启动时出现黑屏。 sudo apt-get update 也返回错误

先介绍一下背景:这是在虚拟机上运行的最新 Ubuntu。另外,我本周才开始使用 Linux,所以我完全是个菜鸟。现在,这些可能没有联系,但对于问题的第二部分,当我在sudo apt-get update终端中输入以下内容时,我得到了这个:

Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]    
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                   
Ign:6 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial InRelease   
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                     
Ign:8 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial InRelease            
Ign:10 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial Release
Ign:11 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial Release
Ign:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Ign:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Ign:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Ign:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages 
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages  
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages   
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en 
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Ign:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages 
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages  
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages   
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en 
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Ign:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages 
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages  
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages   
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en 
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Err:12 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 Packages
  404  Not Found
Ign:13 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial/main DEP-11 64x64 Icons
Err:19 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 Packages 
  404  Not Found
Ign:20 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main i386 Packages  
Ign:21 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main all Packages
Ign:22 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en_US
Ign:23 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main Translation-en
Ign:24 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:25 http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 94.5 kB in 12s (7,321 B/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/chromium-daily/stable/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/kilian/f.lux/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/chromium-daily/stable/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/kilian/f.lux/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

现在,这似乎并没有影响我的电脑或任何东西,除了当我安装了 Chromium 并尝试通过终端启动它时,它基本上是一个混乱的黑色窗口,终端会吐出这个代码:

benny@yoshi-VirtualBox:~$ chromium-browser
[7468:7468:0630/152327:ERROR:sandbox_linux.cc(334)] InitializeSandbox() called with multiple threads in process gpu-process
[7468:7468:0630/152327:ERROR:texture_manager.cc(2421)] [.CommandBufferContext.Compositor-0x28f051c2d900]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.CompositorWorker-0x28f051c2dc00]GL ERROR :GL_INVALID_ENUM : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.CompositorWorker-0x28f051c2dc00]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.CompositorWorker-0x28f051c2dc00]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.CompositorWorker-0x28f051c2dc00]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[7468:7468:0630/152327:ERROR:texture_manager.cc(2421)] [.CommandBufferContext.RenderCompositor-0x4c1ba154000]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x4c1ba154180]GL ERROR :GL_INVALID_ENUM : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2138)] [.CommandBufferContext.RenderWorker-0x4c1ba154180]GL ERROR :GL_INVALID_OPERATION : ScopedTextureBinder::ctor: was unhandled
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x4c1ba154180]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[7468:7468:0630/152327:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.CompositorWorker-0x28f051c2dc00]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command
[7468:7468:0630/152328:ERROR:gles2_cmd_decoder.cc(2134)] [.CommandBufferContext.RenderWorker-0x4c1ba154180]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command

然后它继续吐出最后那一行。这是 Chromium 在启动时的图片:

在此处输入图片描述

答案1

我的解决方法是禁用 VirtualBox 中的 3D 加速,这似乎是导致此问题的罪魁祸首。我希望 VirtualBox 方面能尽快发布修复程序。

更多信息请访问此主题来自 virtualbox 论坛

有些人通过以下步骤成功运行了没有 GPU 加速的 Chromium,尽管这并不能解决我的问题(尤其是对于 Atom):

  1. 通过 shell,“定位 google-chrome.desktop”
  2. 编辑位于 #1 的文件,在找到的每个 Exec 语句末尾添加“--disable-gpu”
  3. 保存并关闭
  4. 通过启动器图标启动 Chrome
  5. 享受实际能够看到 Chrome 渲染内容

相关内容