Re: systemd being pulled in during dist-upgrade
On 2/19/22 7:45 PM, Rick Thomas wrote:
> Try:
> # aptitude why systemd
>
> That may help answer the question.
> Rick
Rick, thanks for that suggestion.
After restoring from a backup:
# apt-get update
# apt-get upgrade
# apt-get install aptitude
# apt-get dist-upgrade
Reboot, then:
I see (as expected) that sysvinit-core has been removed, and systemd is
running as init:
# dpkg --list | grep sysvinit-core
rc sysvinit-core 3.01-1 powerpc System-V-like init
# ls -l /sbin/init
lrwxrwxrwx 1 root root 20 Jan 26 16:35 /sbin/init -> /lib/systemd/systemd
# aptitude why systemd
i logrotate Depends cron | anacron | cron-daemon | systemd-sysv
i A systemd-sysv PreDepends systemd
# aptitude why systemd-sysv
i logrotate Depends cron | anacron | cron-daemon | systemd-sysv
# aptitude why logrotate
i vsftpd Recommends logrotate
Based on the above, it appears that if logrotate is installed, it will
want systemd-sysv, which in turn requires systemd, is that correct? If
yes, then the solution may be to change the logrotate package to require
either sysvinit-core or systemd-sysv, instead of just systemd-sysv (?)
Or does the aptitude output indicate that logrotate already requires
cron (or) anacron (or) cron-daemon (or) systemd-sysv?
# aptitude why cron
i logrotate Depends cron | anacron | cron-daemon | systemd-sysv
# aptitude why anacron
i task-laptop Depends anacron
# aptitude why cron-daemon
i logrotate Depends cron | anacron | cron-daemon | systemd-sysv
Perhaps I should just remove logrotate to prevent the problem from
happening in the future, since logrotate isn't a prerequisite for
anything (?)
-s
>
> On Sat, Feb 19, 2022, at 9:03 AM, Stan Johnson wrote:
>> Hello,
>>
>> On a PowerBook G3 Pismo, I just upgraded Debian SID:
>> # apt-get update
>> # apt-get upgrade
>> # apt-get dist-upgrade
>>
>> As part of the dist-upgrade (see below), at least one package requires
>> systemd as a dependency, causing the removal of sysvinit-core.
>>
>> After the dist-upgrade, I was able to remove systemd using a two-step
>> process:
>> # apt-get purge systemd
>> Reboot and repeat:
>> # apt-get purge systemd
>>
>> So there's a workaround, since I'm able to remove systemd eventually.
>> It's just an inconvenience for those of us who choose to run sysvinit
>> instead of systemd. IMO, systemd is slower and more intrusive on all
>> systems than sysvinit. And while it may be ok or even preferable for
>> larger (or corporate) systems, it is too slow for any m68k system or any
>> powerpc system that is slower than about a Pismo (500 MHz with 1 GiB
>> memory), and I don't want to use it there, either, since I use a common
>> Debian SID installation for all of my powerpc systems.
>>
>> I can restore from a backup and re-run the dist-upgrade if anyone knows
>> how to locate the specific package(s) triggering the dependency; it is
>> likely one or more of the 25 packagees upgraded below:
>>
>> -----
>> # apt-get dist-upgrade
>> Reading package lists... Done
>> Building dependency tree... Done
>> Reading state information... Done
>> Calculating upgrade... Done
>> The following packages were automatically installed and are no longer
>> required:
>> libperl5.32 libwebp6 linux-config-5.15 linux-source-5.15
>> orphan-sysvinit-scripts perl-modules-5.32
>> Use 'apt autoremove' to remove them.
>> The following packages will be REMOVED:
>> libwacom2 sysvinit-core
>> The following NEW packages will be installed:
>> dbus-user-session libjim0.79 libmbim-glib4 libmbim-proxy libmm-glib0
>> libnss-systemd libpam-systemd libperl5.34 libpolkit-agent-1-0
>> libqmi-glib5 libqmi-proxy libwacom-bin libwacom9 libwebp7 libxcvt0
>> linux-source-5.16 modemmanager perl-modules-5.34 pkexec policykit-1
>> polkitd systemd systemd-sysv systemd-timesyncd usb-modeswitch
>> usb-modeswitch-data xcvt
>> The following packages will be upgraded:
>> fwupd libgd3 libimlib2 libinput-bin libinput10 liblocale-gettext-perl
>> libmagickcore-6.q16-6 libtext-charwidth-perl libtext-iconv-perl
>> libtiff5 libwacom-common libwebpdemux2 libwebpmux3 linux-source
>> linux-source-5.15 perl perl-base xserver-xorg-core
>> xserver-xorg-input-libinput xserver-xorg-video-amdgpu
>> xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau
>> xserver-xorg-video-radeon xserver-xorg-video-vesa
>> 25 upgraded, 27 newly installed, 2 to remove and 0 not upgraded.
>> Need to get 282 MB of archives.
>> After this operation, 222 MB of additional disk space will be used.
>> Do you want to continue? [Y/n]
>> -----
>>
>> thanks
>>
>> -Stan Johnson
Reply to: