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
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
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
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
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
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 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
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
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.
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
** 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
11 matches
Mail list logo