[Aptitude-devel] Bug#902146: Bug#902146: mention example of "update the package lists"
Axel Beckert
abe at debian.org
Fri Jun 22 21:02:53 BST 2018
Hi Jidanni,
積丹尼 Dan Jacobson wrote:
> W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
>
> Then please say
> < W: You may want to update the package lists to correct these missing files
> > W: You may want to update the package lists to correct these missing
> > files, by using for example, apt-get update.
I don't think that's necessary as "update the package lists" is
already very precise. Nor do I think it's a good idea to extend that
message to two lines or over 80 characters.
And even if, it should say "aptitude update" if it's an error message
by aptitude.
> If that is indeed what you mean.
At least in this case, it won't help as "apt-get update" might error
out with a very similar error message, as that's likely the real cause:
> W: Could not lock the cache file; this usually means that dpkg or
> another apt tool is already installing packages. Opening in
> read-only mode; any changes you make to the states of packages will
> NOT be preserved!
(Which IMHO way too long for a one-line error message.)
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the Aptitude-devel
mailing list