synaptic: ‘Lock Version’ is broken; use dpkg hold
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
synaptic |
Confirmed
|
Unknown
|
|||
synaptic (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Bug Description
‘Lock Version’ in Synaptic uses apt_preferences(5) (“pinning”). This is never recognized by non-Apt tools, e.g. dpkg. Also, as these settings are stored in a file private to Synaptic, other Apt tools do not recognize them either.
This feature is to be removed. In its place implement support for dpkg holds which are handled properly by all Apt and Dpkg tools.
* Original Description
this is minor annoyance. but I figured, this might as well be a bug which might need to be fixed bf dapper comes out. I mean, I'm pretty sure I'll be pinning fx 1.5 in Dapper, when fx 2.0 comes out...
here is the problem:
I have fx 1.5.0.2 thus don't need the 1.0.8 update. I pinned it (and its friend, shown below) to 1.0.7 using synaptic's packages>lock version, but when I do apt-get upgrade, it still wants to upgrade firefox. synaptic is just fine, it doesn't prompt me to update fx. here is the output for your viewing pleasure:
Code:
:~$ sudo apt-get -s upgrade
Reading package lists...
Done Building dependency tree...
Done
The following packages will be upgraded:
firefox firefox-
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst firefox-
Inst firefox [1.0.7-0ubuntu20] (1.0.8-0ubuntu5.10 Ubuntu:
Conf firefox (1.0.8-0ubuntu5.10 Ubuntu:
Conf firefox-
both of these were supposed to be pinned by synaptic...
Here is my cat /var/lib/
-------------
Package: firefox
Pin: version 1.0.7-0ubuntu20
Pin-Priority: 1001
Package: firefox-
Pin: version 1.0.7-0ubuntu20
Pin-Priority: 1001
--------------
I don't have a /etc/apt/
Thanks.
Changed in synaptic: | |
status: | Unknown → Unconfirmed |
Changed in synaptic: | |
importance: | Unknown → Undecided |
status: | Unconfirmed → Confirmed |
importance: | Undecided → Medium |
Changed in synaptic: | |
status: | Confirmed → Unconfirmed |
Changed in synaptic: | |
importance: | Unknown → Undecided |
Changed in synaptic: | |
status: | Needs Info → Confirmed |
Changed in synaptic: | |
status: | Confirmed → Triaged |
tags: | added: pinning |
Changed in synaptic (Ubuntu): | |
assignee: | Michael Vogt (mvo) → nobody |
importance: | Medium → Low |
summary: |
- apt-get doesn't use the same pinning as synaptic + synaptic: ‘Lock Version’ is broken; use dpkg hold |
description: | updated |
Changed in synaptic: | |
status: | New → Confirmed |
tags: | added: bionic trusty xenial |
On Fri, Oct 15, 2004 at 03:00:11PM +0200, martin f krafft wrote:
> Package: synaptic
> Version: 0.53.4-5
> Severity: minor
Thanks for your bugreport.
> I assume the 'hold' you refer to in README.Debian is the 'locking' preference instead. I wonder why,
> of a version in the interface's package menu. Well, I tried to lock
> APT to 0.5.26 for testing purposes, then installed a package and
> quit the programme. Subsequently, APT tried to update to APT 0.5.27
> from the command line.
>
> I noticed how you use ~/.synaptic/
> but in any case... could you either
>
> - make synaptic use the global preferences file to incorporate it
> with the rest of the system, or
> - document that it uses pinning, but only internally. you might
> just leave that out since the it just does not matter and is of
> no interest.
I'll probably go with the second suggestion. Synaptic used to use the dist-upgrade. They filed bugs against apt about it.
global preferences file, but I removed this feature. The problem was,
that people got confused that locking inside synaptic broke there
apt-get upgrade/
thanks,
Michael
> -- System Information: en_GB.UTF- 8 pkg-libc6. 2-3-2 Not found. +2.10-glibc2. 2 1:2.95.4-11woody1 The GNU stdc++ library
> Debian Release: 3.1
> APT prefers testing
> APT policy: (600, 'testing'), (98, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8-cirrus
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=
>
> Versions of packages synaptic depends on:
> pn hermes1 Not found.
> pn libapt-
> ii libc6 2.3.2.ds1-17 GNU C Library: Shared libraries an
> ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
> pn libpng2 Not found.
> ii libstdc+
> pn libtiff3g Not found.
> ii libungif4g 4.1.3-1 shared library for GIF images (run
> pn libwraster2 Not found.
> ii xlibs 4.3.0.dfsg.1-8 X Window System client libraries m
> ii zlib1g 1:1.2.2-1 compression library - runtime
>
> --
> Please do not CC me when replying to lists; I read them!
>
> .''`. martin f. krafft <email address hidden>
> : :' : proud Debian developer, admin, and user
> `. `'`
> `- Debian - when you have better things to do than fixing a system
>
> Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
--
The first rule of holes is: when you find yourself in one, stop digging. - PJ
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo