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

Bug#507175: marked as done (Downgrade refused despite Pin-Piriority > 1000)



Your message dated Fri, 14 Aug 2015 17:33:21 +0200
with message-id <20150814173157.GA8163@debian.org>
and subject line Re: Bug#507175: Downgrade refused despite Pin-Piriority > 1000
has caused the Debian Bug report #507175,
regarding Downgrade refused despite Pin-Piriority > 1000
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
507175: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507175
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 ---
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 ---

Reply to: