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

Bug#845275: apt tries to install alternate architectures of packages with -1 priority



Package: apt
Version: 1.3.1

Hi,

I had this snippet in /etc/apt/preferences.d/no-systemd-sysv :

-----%<-----
Explanation: keep SysV init
Package: systemd-sysv
Pin: release o=*
Pin-Priority: -1
----->%-----

During my tests to find the root cause of #844785, I tried to remove
dbus-user-session.

When I wanted to install it back, I had the surprise of seeing this:

-----%<-----
raph@arche:~$ sudo apt-get install dbus-user-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  cgmanager libcgmanager0 libnih-dbus1 libnih1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  python-systemd systemd-sysv:i386
The following packages will be REMOVED:
  systemd-shim sysvinit-core
The following NEW packages will be installed:
  dbus-user-session python-systemd systemd-sysv:i386
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 182 kB of archives.
After this operation, 74.8 kB of additional disk space will be used.
Do you want to continue? [Y/n]
----->%-----

Modifying the preferences file to specify both architectures fixed this:

-----%<-----
Explanation: keep SysV init
Package: systemd-sysv:i386 systemd-sysv:amd64
Pin: release o=*
Pin-Priority: -1
----->%-----

-----%<-----
raph@arche:~$ sudo apt-get install dbus-user-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
  systemd-sysv
The following NEW packages will be installed:
  dbus-user-session
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.9 kB of archives.
After this operation, 111 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package dbus-user-session.
(Reading database ... 248649 files and directories currently installed.)
Preparing to unpack .../dbus-user-session_1.10.12-1_all.deb ...
Unpacking dbus-user-session (1.10.12-1) ...
Setting up dbus-user-session (1.10.12-1) ...
----->%-----

Is it expected behavior, or a bug ?

Also, it may or may not be related (I can open a separate bug if you
want), but it's interesting to note that this snippet didn't work:

-----%<-----
Explanation: keep SysV init
Package: /systemd-sysv:(i386|amd64)/
Pin: release o=*
Pin-Priority: -1
----->%-----

Is it not a valid extended regexp ?

Regards,

-- 
Raphaël Halimi

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: