2

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

4
  • 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. Sep 22, 2017 at 14:40
  • -y doesn't work :/
    – Pol Hallen
    Sep 22, 2017 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. Sep 23, 2017 at 10:41
  • Also see; askubuntu.com/questions/1405850/… Jun 27, 2022 at 21:16

1 Answer 1

2

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//')
1
  • 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, 2017 at 20:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .