1

I tried to install Ubuntu 18.04 and ran into a problem when I tried to install network tools and the error message was:

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

I ran apt-get update then:

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)
New contributor
fbievan3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    Please tell us what options you have tried and give detailed descriptions of the results of those attempts. Also please provide the standard info: OS version, hardware... – Stephen Boston Jun 12 at 21:56
  • Welcome to AskUbuntu: The details you have provided are not actually details since they are not specific: "I've tried most options" / "network tools" "something from a server" -- When providing details please be specific and thorough. For example, if you tried an option -- what option? And why didn't it work. What exact "network tools" have you tried. What questions have you found here on AskU that did not work out for you? And why didn't they work? What specific errors did you receive. – Nmath Jun 12 at 21:57
  • Possible duplicate of Permission denied, are you root? – karel Jun 12 at 22:50
  • @chili555 iwconfig is included in wireless tools – fbievan3 Jun 12 at 23:34
0

I have tried doing this before and it's a real pain. My suggestion is to either:

  • Hook your Ubuntu Server installation to the internet using an Ethernet cable then install what you need (Preferred)

  • On a separate machine use apt download and download all the necessary *.deb files into a folder on a flash drive (Make sure to remember dependencies!) then plug it into the Ubuntu Server and run sudo apt install /path/to/dir/* and have them all installed like that.

In general I would not suggest running a server hooked up to Wi-Fi. Use Ethernet instead because it's far more stable and the system will hook itself to the internet software-wise at boot up.

I am sure there are other ways to do what you want. But these two would probably be the most straight forward solution.

  • This is not really an answer. "Install what you need" is not enough information to answer the question. The methods you suggest to install packages in apt are not best practice and also doesn't provide enough information- ex: "download all the necessary files". The rest of the answer is opinion-based. – Nmath Jun 12 at 22:03
  • where exactly would i find these deb files? – fbievan3 Jun 12 at 22:29
  • When you use apt download pass it the package you want it to download (so if you wanted to download moon-buggy for example: apt download moon-buggy) it will download into your working directory. – Batcastle Jun 12 at 22:47

Your Answer

fbievan3 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.