我尝试安装 Ubuntu 18.04 并在尝试安装网络工具时遇到问题,错误消息是:
failed to fetch archive.ubuntu/pool/main/w/wireless-tools/wireless-tools_30"pre9013ubuntu1_amd64.deb. Temporary failure resolving 'archive.ubuntu.com'
^ same thing again
unable to fetch some archives, maybe run apt-get update or try --fix missing
我apt-get update
当时跑了:
Reloading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - Remove Caches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - Remove caches (13: Permission denied)
我以前试过这样做,这真的很痛苦。我的建议是:
使用以太网电缆将您的 Ubuntu Server 安装连接到互联网,然后安装您需要的(首选)
在单独的机器上使用apt download
并将所有必需的 *.deb 文件下载到闪存驱动器上的文件夹中(确保记住依赖项!)然后将其插入 Ubuntu 服务器并运行sudo apt install /path/to/dir/*
并像这样安装它们。
一般来说,我不建议运行连接到 Wi-Fi 的服务器。改用以太网,因为它要稳定得多,而且系统会在启动时通过软件方式将自己连接到互联网。
我相信还有其他方法可以做你想做的事。但这两个可能是最直接的解决方案。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句