![尝试安装时无法获取 curl,404 未找到](https://linux22.com/image/1166958/%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%E6%97%B6%E6%97%A0%E6%B3%95%E8%8E%B7%E5%8F%96%20curl%EF%BC%8C404%20%E6%9C%AA%E6%89%BE%E5%88%B0%20.png)
尝试将装有 Windows 10 的 Chromebox 恢复为 ChromeOS,使用实时启动的 Ubuntu 运行自定义脚本来更新固件。基本上,为了运行此命令:
cd ~; curl -L -Ohttp://mrchromebox.tech/firmware-util.sh; sudo bash 固件实用程序.sh
我必须安装 curl,因此我尝试从终端安装 curl,但这是我收到的错误消息:
ubuntu@ubuntu:~$ sudo apt install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libcurl4
The following NEW packages will be installed:
curl libcurl4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 373 kB of archives.
After this operation, 1036 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.6
Err:1 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.6 404 Not Found [IP: 91.189.88.24 80]
Ign:2 http://security.ubuntu.com/ubuntu bionic-security/main amd64 curl amd64 7.58.0-2ubuntu3.6
Err:2 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 curl amd64 7.58.0-2ubuntu3.6 404 Not Found [IP: 91.189.88.24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4_7.58.0-2ubuntu3.6_amd64.deb 404 Not Found [IP: 91.189.88.24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.58.0-2ubuntu3.6_amd64.deb 404 Not Found [IP: 91.189.88.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
什么原因可能导致了这个问题,我该怎么做才能修复它以便可以运行第一个命令?
我对 Linux、Ubuntu 以及整个网站都很陌生,所以如果我的格式有任何错误或者我对某些内容的理解明显有错误,请告诉我。
答案1
运行以下命令对我来说很有效:
sudo apt-get update