安装libudev-dev失败,无法进行Bevy Rust开发求助
无法安装libudev-dev包的问题
错误详情
执行sudo apt-get install libudev-dev --fix-missing时触发以下错误:
sudo apt-get install libudev-dev --fix-missing Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libudev-dev 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 19.7 kB of archives. After this operation, 251 kB of additional disk space will be used. Err:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev-dev amd64 245.4-4ubuntu3.17 404 Not Found [IP: 91.189.91.39 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_245.4-4ubuntu3.17_amd64.deb 404 Not Found [IP: 91.189.91.39 80] E: Internal Error, ordering was unable to handle the media swap
已尝试的解决步骤
- 使用
--fix-missing参数,仅让安装流程继续但仍报错 - 执行
sudo apt-get update和sudo apt-get upgrade,修复了这两个命令自身的报错,但再次安装libudev-dev依然失败 - 访问源地址查找可用版本,手动下载后安装提示缺少依赖,但无法查看具体依赖项
- 尝试指定版本安装
sudo apt-get install libudev-dev=251.4-1ubuntu6,系统提示该版本不存在
原本计划尝试Bevy框架积累Rust开发经验,但目前连基础应用都无法编译,急需解决该问题。
系统信息
uname -a **redacted** INTEL 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux cat /etc/os-release NAME="Zorin OS" VERSION="16.1" ID=zorin ID_LIKE=ubuntu PRETTY_NAME="Zorin OS 16.1" VERSION_ID="16" HOME_URL="https://zorin.com/os/" SUPPORT_URL="https://help.zorin.com/" BUG_REPORT_URL="https://zorin.com/os/feedback/" PRIVACY_POLICY_URL="https://zorin.com/legal/privacy/" VERSION_CODENAME=focal UBUNTU_CODENAME=focal lscpu Vendor ID: GenuineIntel CPU family: 6 Model: 151 Model name: 12th Gen Intel(R) Core(TM) i5-12600KF lspci 0000:03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 73ff (rev c1)
内容的提问来源于stack exchange,提问作者Brock Donahue
相关产品推荐
相关产品推荐

