跳转到主内容
极星编程网:以代码为星,赴技术山海!

Ubuntu 安装 Google Chrome 浏览器及可能遇到的报错解决办法

安装1、下载deb包(后文以Ubuntu为例) GoogleChrome网路浏览器 拉到最下边选择其他平台-> linux ->deb包 2、上传到Ubuntu上
dpkg -i google-chrome-stable_current_amd64.deb
假如提示缺乏哪些就安装哪些就行了 ps: centos 可以yum+rpm包名,手动找寻依赖,Ubuntu没试过apt能不能找到找依赖 3、一般情况下中标麒麟linux深度linux,到此安装就结束了,桌面版的Ubuntu有个微软浏览器菜单图标 linux如何安装chrome ,点击才能启动,或则命令
google-chrome
4、运行chrome可能碰到的报错报错1 依照描述似乎是机器惟一标示有问题
[80:80:0530/160749.016527:ERROR:browser_dm_token_storage_linux.cc(93)] Error: /etc/machine-id contains 0 characters (32 were expected).
解决办法
sudo systemd-machine-id-setup sudo ln -sf /etc/machine-id /var/lib/dbus/machine-id
若果没有systemd-machine-id-setup命令,参考 –systemd-machine-id-setup 报错2 微软用户目录报错
chrome_crashpad_handler: --database is required Try 'chrome_crashpad_handler --help' for more information.
解决办法 确保你的用户目录(启动微软浏览器的命令)存在且有权限
ll ~/.config/google-chrome/
删掉原有配置文件,这一步有风险,假如你有重要的微软浏览器数据的话,请备份
rm -rf ~/.config/google-chrome/ mkdir ~/.config/google-chrome/
确保你创建以后的文件夹(包括.config目录)有访问权限,必要时拿ls-l命令访问看下,之后才能正常启动了 报错3 微软浏览器打开多标签报错奔溃
13839:13851:0531/173150.426340:ERROR:broker_posix.cc(46)] Received unexpected number of handles [0531/173150.451511:ERROR:process_memory_range.cc(86)] read out of range [0531/173150.451602:ERROR:elf_image_reader.cc(602)] missing nul-terminator [0531/173150.456595:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) [0531/173150.456700:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
网上说是Ubuntu共享显存给的太少(64M) HeadlessChromiumonDockerfails-StackOverflow 解决办法就是提升共享显存大小 linux如何安装chrome ,或则chrome运行时降低选项--disable-dev-shm-usage

相关文章