Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #225181

Re: proper config for specific pks upgrade from stable to testing

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: proper config for specific pks upgrade from stable to testing
Date 2020-07-24 11:20 +0200
Message-ID <Aw21Y-5x1-5@gated-at.bofh.it> (permalink)
References <AvZx8-3Xo-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Vi, 24 iul 20, 08:37:52, daggs wrote:
> Greetings,
> 
> I want to upgrade these specific pkgs from stable to testing:
> libvirt-clients/stable,now 5.0.0-4+deb10u1 amd64 [installed,upgradable to: 6.4.0-2]
> libvirt-daemon-system/stable,now 5.0.0-4+deb10u1 amd64 [installed,upgradable to: 6.4.0-2]
> libvirt-daemon/stable,now 5.0.0-4+deb10u1 amd64 [installed,upgradable to: 6.4.0-2]
> libvirt0/stable,now 5.0.0-4+deb10u1 amd64 [installed,upgradable to: 6.4.0-2]
> qemu-kvm/stable,now 1:3.1+dfsg-8+deb10u6 amd64 [installed,upgradable to: 1:5.0-6]
 
Not available in buster-backports. Did you investigate why? The archives 
of the debian-backports list might be a good start.

> so I've updated my files as such:
> # cat /etc/apt/preferences
> Package: qemu-kvm
> Pin: release o=Debian,a=testing
> Pin-Priority: 900
> 
> Package: libvirt-clients
> Pin: release o=Debian,a=testing
> Pin-Priority: 900
> 
> Package: libvirt-daemon-system
> Pin: release o=Debian,a=testing
> Pin-Priority: 900
> 
> Package: libvirt-daemon
> Pin: release o=Debian,a=testing
> Pin-Priority: 900
> 
> Package: libvirt0
> Pin: release o=Debian,a=testing
> Pin-Priority: 900

With only these pins the rest of testing is priority 500, same as 
stable. Probably not what you want.

> # cat /etc/apt/sources.list
> deb http://security.debian.org/debian-security buster/updates main
> deb-src http://security.debian.org/debian-security buster/updates main
> deb http://deb.debian.org/debian/ buster-updates main
> deb-src http://deb.debian.org/debian/ buster-updates main
> deb http://deb.debian.org/debian/ buster-backports main
> deb-src http://deb.debian.org/debian/ buster-backports main
> deb http://deb.debian.org/debian/ buster main non-free
> deb-src http://deb.debian.org/debian/ buster main non-free
> deb http://deb.debian.org/debian/ testing-updates main
> deb http://deb.debian.org/debian/ testing main non-free
> deb http://security.debian.org/debian-security testing-security main
> 
> but when I issue upt-get upgrade, it looks like apt tries to upgrade unrelated pkgs like lsb-release, lsof and grub.
> is that expected?

Most likely because testing now has the same priority as stable,
'apt policy' will tell.

> I want to upgrade only these pkgs + it's deps.
> what am I doing wrong?

You are trying to mix releases - which is inherently dangerous - without 
a proper understanding of pinning and priorities.


If you insist on doing that I would recommend you replicate the 
configuration for -backports.

1. pin 'testing' to 100
2. try installing the package you really need[*] with
    
    apt install -t PACKAGE1 PACKAGE2


Note: always check your pinning configuration with 'apt policy' and/or 
'apt policy PACKAGE' (as applicable).


If it breaks you get to keep all pieces :)


[*] in general you shouldn't specify dependency packages explicitly, let 
APT handle that.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

proper config for specific pks upgrade from stable to testing daggs <daggs@gmx.com> - 2020-07-24 08:40 +0200
  Re: proper config for specific pks upgrade from stable to testing Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-24 11:20 +0200
    Re: proper config for specific pks upgrade from stable to testing daggs <daggs@gmx.com> - 2020-07-24 16:30 +0200
      Re: proper config for specific pks upgrade from stable to testing Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-24 16:50 +0200

csiph-web