【问题标题】:404 Not Found [IP: 185.125.190.36 80] on trying to install google-chrome in databricks spark driver404 Not Found [IP: 185.125.190.36 80] 尝试在 databricks spark 驱动程序中安装 google-chrome
【发布时间】:2023-02-06 15:49:13
【问题描述】:

我们正在使用 apt-get install 在 databricks 集群中安装 google-chrome-stable。长期以来一直运行良好,但从过去几天开始,它开始断断续续地出现故障。

以下是我们运行的代码。

%sh
sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub| apt-key add
sudo echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
sudo apt-get -y update apt-get -y --fix-missing install google-chrome-stable````

以下是我们看到的错误。

Get:7 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages[1,075 B]
Fetched 2,886 B in 1s (4,041 B/s)
Reading package lists...
grep: E: Aborting install: No such file or directory E: Failed to fetch 

http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.44ubuntu3.18_amd64.deb404 未找到 [IP: 185.125.190.36 80] E:中止安装。

如果使用以下代码发生故障,则尝试安装该软件包

%sh
i=0
while true;
echo "inside while loop" 
sudo add-apt-repository --remove ppa:vikoadi/ppa
sudo apt-get -y --fix-missing install google-chrome-stable
do 
if [ $(google-chrome --version| grep -c "Google Chrome") -gt 0 ]; then
 echo "chrome installed"
 break;
 else
 echo "chrome not installed trying another attempt"
 echo "sleeping"
 sleep 10000 
fi
done

但上述逻辑不起作用,因为 - while 循环在安装失败时中断。

【问题讨论】:

    标签: linux selenium-chromedriver databricks google-chrome-headless


    【解决方案1】:

    我建议检查您的网络连接是否禁用了 IPv6,如果是,则启用它,然后查看更新是否正常运行。

    我遇到了类似的问题,发现 aptitude updater ( apt / apt-get ) 中使用的各种 URL 没有解析到我计算机上的任何内容,但是在查看 DNS 后我发现它只有 AAAA IPv6 记录并且没有记录为 IPv4 设置。

    【讨论】:

      猜你喜欢
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 2019-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-10
      • 1970-01-01
      相关资源
      最近更新 更多