![尝试安装 libudev1 libudev-dev libparted0-dev 时出现获取错误失败](https://linux22.com/image/1006207/%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%20libudev1%20libudev-dev%20libparted0-dev%20%E6%97%B6%E5%87%BA%E7%8E%B0%E8%8E%B7%E5%8F%96%E9%94%99%E8%AF%AF%E5%A4%B1%E8%B4%A5%20.png)
我尝试在 Windows (WSL) 上的 Bash 上运行此命令
sudo apt-get install libudev1 libudev-dev libparted0-dev
因为程序或脚本需要这些包才能正常运行f3probe
。我尝试使用和修复缺失的命令,但没有什么效果f3fix
。altMayor
apt-get update
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_229-4ubuntu21_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu21_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_229-4ubuntu21_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.23-0ubuntu9_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-104.127_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.23-0ubuntu9_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/uuid-dev_2.27.1-6ubuntu3.3_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libblkid-dev_2.27.1-6ubuntu3.3_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Aborting install.
答案1
尝试通过 Apt 下载软件包时出现 404 错误的一个可能原因是系统上的可用软件包列表已过期:Apt 尝试下载不再可用的旧版本软件包,从而导致 404 错误。在这种情况下,必须更新软件包列表,例如使用sudo apt update
。