[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
> Implicitly ignoring explicit requests? No, in case of apt, I'm strongly convinced the --ignore-invalid option should be explicitly provided to achieve this behavior. :-) Anyway, using regexes seems to work well. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
apt-get install '^(libreoffice-l10n|aspell|hunspell|mythes)-(pt|pt-BR)$' And as you was already told, erroring out if a package you explicitly requested for install is a graceful default – and the only sensible choice as what is the alternative: Implicitly ignoring explicit requests? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
Localizing LibreOffice, one may want to install: libreoffice-l10n-{lang or sometimes locale} aspell-{mostly lang, sometimes locale} hunspell-{...} mythes-{...} ... Would you advise everyone in all cases that they incorporate additional checks for each possibility? Where's simplicity? It is against sensible non-purist programming paradigm to not provide a way to gracefully default. The solution for my use cases above is: echo "package-x install\package-y purge" | dpkg --set-selections && apt- get dselect-upgrade dpkg at least has a (in this case default) way to gracefully continue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
So, you are saying that it is okay to run scripts which are no longer maintained? And that we should help script writers to write scripts which are not maintained but should not fail in the future (at least not in an obvious way)? Those are the same "helpers" run with --yes (and sometimes --force-yes), right? Completely ignoring my personal opinion on those "helpers": Renames aren't covered either. What used to be a game, is now a browser (chromium) and what used to be tools for file and process operations is now a version control system (git). A handy-dandy helper setting up a tlh environment in distro v1 stops doing the same in distro v2 because packages got renamed, dropped, whatever… are you going to tell a badly tempered Klingon he should be happy, that the script at least didn't complain loudly, even if it didn't worked in the end? Its not that hard to check for existence of a package from a script if you really want to. And even if you don't, apt-get is accepting more than just simple packagenames on the commandline (did I hear someone saying regex?) so if you really want to, you can have all the cake and eat it now already. No need for yet another obscure option, way too much already. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
another use case is this: apt-get install $package_list Above line does not survive any transition of a Debian release where one package in a list becomes inexistent for one reason or another. This sucks. Who is maintaining this? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
Then perhaps a new option --ignore-invalid should be provided? There are use cases for this, particularly when the list of package is dynamically constructed. For example, when localizing packages, a most general script could be: locale="pt-br" package="iceweasel-l10n-" lang="pt" apt-get install --ignore-invalid $package$locale $package$lang for any reasonable choice of variables. The only working alternative, currently, is: for p in $package$locale $package$lang; do apt-get install $p; done which is far less efficient. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
It is clear from the man page that ‘--ignore-missing’ is intended only for packages that exist but fail to download correctly or can not be downloaded at the time. Requesting a package that does not exist is well outside the scope of this option and is an unsafe operation to simply ignore. The former is typically due to transient network errors that clear up in a short time. The later is a seriously broken request. ** Changed in: apt (Ubuntu) Status: Confirmed => Opinion -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
Actually, aptitude is not a great fit for that kind of usage, as it will also happily start automatically uninstalling a bunch of packages that are "not needed" anymore (not available upstream). And there's no way to prevent it from doing that. It also searches in the package description, etc. instead of just the package name, which is much slower when one have a long list of packages to install or remove. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apt (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/512190 Title: "apt-get --ignore-missing install" fails when it can't find a package To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/512190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
I believe aptitude would be a better fit for your usage. -- "apt-get --ignore-missing install" fails when it can't find a package https://bugs.launchpad.net/bugs/512190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 512190] Re: "apt-get --ignore-missing install" fails when it can't find a package
** Attachment added: "Dependencies.txt" http://launchpadlibrarian.net/38350366/Dependencies.txt ** Attachment added: "XsessionErrors.txt" http://launchpadlibrarian.net/38350367/XsessionErrors.txt -- "apt-get --ignore-missing install" fails when it can't find a package https://bugs.launchpad.net/bugs/512190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs