--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: Downgrade refused despite Pin-Piriority > 1000
- From: Marcin Owsiany <porridge@debian.org>
- Date: Fri, 28 Nov 2008 19:11:17 +0000
- Message-id: <20081128191117.GI7825@beczulka>
Package: apt
Version: 0.6.46.4-0.1
Priority is set in preferences:
| root@sl1:~# grep -1 vzctl /etc/apt/preferences
| Package: vzctl
| Pin: version 3.0.23-1dso1~etch0~sl.1
| Pin-Priority: 1001
And apt-cache policy seems to recognize it:
| root@sl1:~# apt-cache policy vzctl
| vzctl:
| Installed: 3.0.23-1dso1~etch0
| Candidate: 3.0.23-1dso1~etch0~sl.1
| Package pin: 3.0.23-1dso1~etch0~sl.1
| Version table:
| *** 3.0.23-1dso1~etch0 1001
| 500 http://debian.systs.org etch/openvz Packages
| 100 /var/lib/dpkg/status
| 3.0.23-1dso1~etch0~sl.1 1001
| 500 http://debian.softwarelab.eu etch-openvz/main Packages
| 3.0.11-14 1001
| 500 http://ftp.pl.debian.org etch/main Packages
However apt-get still refuses to downgrade without --force-yes
| root@sl1:~# /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install vzctl
| Reading package lists...
| Building dependency tree...
| The following packages will be DOWNGRADED:
| vzctl
| 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 2 not
| upgraded.
| Need to get 210kB of archives.
| After unpacking 160kB disk space will be freed.
| E: There are problems and -y was used without --force-yes
This makes package management using puppet somewhat difficult. The
apt-get command line above is what puppet's apt provider uses to install
the package's "newest" version. --force-yes is not on that line, and I'd
say that's correct. However right now automatic downgrades seem
impossible.
While it might be possible to change puppet to add --force-yes in such
situations, I don't think this would be a good idea. Changing this on
apt side seems like a much cleaner solution.
Any comments?
--
Marcin Owsiany <porridge@debian.org> http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216
--- End Message ---
--- Begin Message ---
- To: Marcin Owsiany <porridge@debian.org>, 507175-close@bugs.debian.org
- Subject: Re: Bug#507175: Downgrade refused despite Pin-Piriority > 1000
- From: Julian Andres Klode <jak@debian.org>
- Date: Fri, 14 Aug 2015 17:33:21 +0200
- Message-id: <20150814173157.GA8163@debian.org>
- In-reply-to: <20081128191117.GI7825@beczulka>
- References: <20081128191117.GI7825@beczulka>
On Fri, Nov 28, 2008 at 07:11:17PM +0000, Marcin Owsiany wrote:
> Package: apt
> Version: 0.6.46.4-0.1
>
> Priority is set in preferences:
>
> | root@sl1:~# grep -1 vzctl /etc/apt/preferences
> | Package: vzctl
> | Pin: version 3.0.23-1dso1~etch0~sl.1
> | Pin-Priority: 1001
>
> And apt-cache policy seems to recognize it:
>
> | root@sl1:~# apt-cache policy vzctl
> | vzctl:
> | Installed: 3.0.23-1dso1~etch0
> | Candidate: 3.0.23-1dso1~etch0~sl.1
> | Package pin: 3.0.23-1dso1~etch0~sl.1
> | Version table:
> | *** 3.0.23-1dso1~etch0 1001
> | 500 http://debian.systs.org etch/openvz Packages
> | 100 /var/lib/dpkg/status
> | 3.0.23-1dso1~etch0~sl.1 1001
> | 500 http://debian.softwarelab.eu etch-openvz/main Packages
> | 3.0.11-14 1001
> | 500 http://ftp.pl.debian.org etch/main Packages
>
> However apt-get still refuses to downgrade without --force-yes
>
> | root@sl1:~# /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install vzctl
> | Reading package lists...
> | Building dependency tree...
> | The following packages will be DOWNGRADED:
> | vzctl
> | 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 2 not
> | upgraded.
> | Need to get 210kB of archives.
> | After unpacking 160kB disk space will be freed.
> | E: There are problems and -y was used without --force-yes
>
> This makes package management using puppet somewhat difficult. The
> apt-get command line above is what puppet's apt provider uses to install
> the package's "newest" version. --force-yes is not on that line, and I'd
> say that's correct. However right now automatic downgrades seem
> impossible.
>
> While it might be possible to change puppet to add --force-yes in such
> situations, I don't think this would be a good idea. Changing this on
> apt side seems like a much cleaner solution.
>
> Any comments?
This is working as indented. APT cannot really know that your intent
is to downgrade, and wants to make sure. Future versions will not
require --force-yes anymore, but --allow-downgrades, so things will
be even safer.
Thus, closing, as this is not a bug.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
- If you don't I might ignore you.
--- End Message ---