[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638024: [apt] APT::Default-Release considers equivalent suite



On Sun, Sep 18, 2011 at 13:11, Mark Hobley <markhobley@yahoo.co.uk> wrote:
> There is another oddity occuring. When an attempt is made to remove a package, the sources are being evaluated and removal of the package is denied:
>
> # apt-get remove epiphany-browser
> Reading package lists... Done
> E: The value 'squeeze' is invalid for APT::Default-Release as such a release is not available in the sources

To clarify: As the initial reporter says, this only occurs if you have
deb http://example.org/debian wheezy main
and
APT::Default-Release "wheezy" set
and you change your sources to
deb http://example.org/debian testing main
instead without running 'apt-get update', right?

If so, i guess it can be merged with #283772.
We "just" need a message telling the user that indexes for some
archives aren't available and that he should run 'apt-get update' to get them.


> For removal of packages, the sources should not be considered and the package should simply be removed.

This is complicated as you could say
apt-get remove awesome+
to install awesome and
apt-get install awesome-
to remove it. You can include multiple packages, too, e.g.
apt-get install foo- bar+ awesome
or deploy regular expressions…
apt-get remove ^foo.*

After all removal of a package can cause an upgrade of another package
if this package previously dependent on it but doesn't have this dependency
in the newer version. So in the general case we need all information even
through in some special cases it is as simple as just removing a single package.


So i wouldn't consider fixing this special case worthwhile.
You could still remove it with dpkg - or run 'apt-get update'…


Best regards

David Kalnischkies



Reply to: