The officially official Devuan Forum!

You are not logged in.

#1 2019-11-02 05:36:36

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

[Solved] apt pinning dbus

Hi devuaners,

I have just installed ascii openrc init version onto a partition, the latest updated iso via the netinstall version.
Everything seems to be working ok but im trying to lose dbus via apt pinning but apt policy seems to show two versions, one pinned -1 and one at 500 thus not pinning the latest version .

:~$ apt policy dbus
dbus:
  Installed: (none)
  Candidate: 1.10.28-0+deb9u1+devuan2
  Version table:
     1.10.28-0+deb9u1+devuan2 500
        500 http://au.deb.devuan.org/merged ascii-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.10.22-1+devuan2 -1
        500 http://au.deb.devuan.org/merged ascii/main amd64 Packages
        500 http://au.deb.devuan.org/merged ascii-updates/main amd64 Packages

ive tried pinning both versions in /etc/apt/preferences.d/nodbus but no luck, any help much appreciated, thanks.

Package: dbus
Pin: version 1.10.28-0
Pin: release n=ascii
Pin-Priority: -1

Package: dbus
Pin: version 1.10.22-1
Pin: release n=ascii
Pin-Priority: -1

Last edited by HevyDevy (2019-11-02 07:00:16)

Offline

#2 2019-11-02 06:59:32

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: [Solved] apt pinning dbus

solved this, i didnt realise the latest dbus version was in ascii-security

so the fix is below, leaving out the dbus versions

Package: dbus
Pin: release n=ascii-security
Pin-Priority: -1

Package: dbus
Pin: release n=ascii
Pin-Priority: -1

Offline

#3 2019-11-02 12:52:22

bgstack15
Member
Registered: 2018-02-04
Posts: 205  

Re: [Solved] apt pinning dbus

Thanks for the follow-up. It's always nice to be able to answer your own question.

In your own words, what does pinning a package without version number do?


This space intentionally left blank.

Offline

#4 2019-11-02 14:50:43

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: [Solved] apt pinning dbus

I believe Pin release should be enough, my oversight was not seeing that dbus had two versions in different repositories in the sources list, one in ascii/main and a later version in ascii-security.  So i think just pinning "dbus" via whatever release found in apt policy should be enough, im not really sure what effect pinning the version number of packages would be though, i suppose if you leave out Pin release then Pin version would work much the same.

Offline

#5 2019-11-16 14:42:34

thierrybo
Member
Registered: 2017-11-11
Posts: 107  

Re: [Solved] apt pinning dbus

Maybe just pining by origin is sufficient:

Package: dbus
Pin: release o=Devuan
Pin-Priority: -1

Offline

#6 2019-11-16 19:51:19

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: [Solved] apt pinning dbus

thierrybo wrote:

Maybe just pining by origin is sufficient:

Package: dbus
Pin: release o=Devuan
Pin-Priority: -1

I tested this, and it doesn't work - dbus wanted to sneak in.

Offline

Board footer