I done a script to automatically download some packages:

LIST="tcpdump nmap wifite"

apt-get --ignore-missing install $LIST

"Package wifite is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"

I didn't find a way to force the download of all packages. apt stops from all download because there's a missing package. I can't modify the list.

Also with -f option I can't solve the problem.

using something like:

LIST="tcpdump nmap wifite"
for a in $LIST; do apt-get install $a ; done

works but it too slow

also with -y doesn't work

  • 1
    Actually --ignore-missing will only work if apt can't download the package, not if the package has been removed from the repo. You could try apt-get install -y in your second solution, so it installs automatically. – Pierre-Alain TORET Sep 22 '17 at 14:40
  • -y doesn't work :/ – Pol Hallen Sep 22 '17 at 18:08
  • it works, I just tried doing apt-get install -y vim so I didn't have to manually answer y when installing. The goal was to speed up your for loop over the packages, not to solve the initial issue as it can't be solved through regular apt options. – Pierre-Alain TORET Sep 23 '17 at 10:41

If LIST is defined outside, and you cannot modify it before, you can use sed to drop wifite before sending the list to apt-get:

LIST="tcpdump nmap wifite"
apt-get --ignore-missing install $(echo $LIST | sed -e 's/wifite//')
  • I don't know (in the future) about missed packages. I've a long list and I can't change it. – Pol Hallen Sep 22 '17 at 20:44

Your Answer

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.