apt wants to kill initramfs-tools (buster)

If none of the more specific forums is the right place to ask

apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-14 18:01

System: Buster / testing

root@enlil:~# uname -r
4.19.0-1-amd64


Greetings,

I seem to be at an impass with my apt dist-upgrade. It keeps on wanting to remove vital things like initramfs-tools and xserver-xorg and I don't know why. I've been blocked for a week or so now. I do use apt-listbugs to pin but I removed all the pins to make sure it's not that. I managed to do a regular upgrade wilst unpinning libprotobuf17 (https://bugs.debian.org/cgi-bin/bugrepo ... bug=910964) and it upgraded without apt-listbugs warning me that anything was wrong this time... yet still the same problem with the dist-upgrade. Somebody help me!
I have taken the SUID off Xorg for a long time now as advised in this link: https://lists.x.org/archives/xorg-annou ... 02927.html


This is the apt term.log from an upgrade or dist-upgrade I did before when the issue started:
Code: Select all
Aborting removal of the running kernel
error processing package linux-image-4.18.0-3-amd64 (--remove):
 installed linux-image-4.18.0-3-amd64 package pre-removal script subprocess returned error exit status 1
Removing linux-image-4.18.0-2-amd64 (4.18.10-2+b1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.18.0-2-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
adding my custom entries
Found linux image: /boot/vmlinuz-4.19.0-1-amd64
Found initrd image: /boot/initrd.img-4.19.0-1-amd64
Found linux image: /boot/vmlinuz-4.18.0-3-amd64
Found initrd image: /boot/initrd.img-4.18.0-3-amd64
Found linux image: /boot/vmlinuz-4.18.0-1-amd64
Found initrd image: /boot/initrd.img-4.18.0-1-amd64
Found linux image: /boot/vmlinuz-4.17.0-3-amd64
Found initrd image: /boot/initrd.img-4.17.0-3-amd64
Found linux image: /boot/vmlinuz-4.17.0-1-amd64
Found initrd image: /boot/initrd.img-4.17.0-1-amd64
Found Windows 7 on /dev/sdc1
Found Debian GNU/Linux 8 (jessie) on /dev/sdc6
done
Removing linux-image-4.18.0-1-amd64 (4.18.6-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.18.0-1-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
adding my custom entries
Found linux image: /boot/vmlinuz-4.19.0-1-amd64
Found initrd image: /boot/initrd.img-4.19.0-1-amd64
Found linux image: /boot/vmlinuz-4.18.0-3-amd64
Found initrd image: /boot/initrd.img-4.18.0-3-amd64
Found linux image: /boot/vmlinuz-4.17.0-3-amd64
Found initrd image: /boot/initrd.img-4.17.0-3-amd64
Found linux image: /boot/vmlinuz-4.17.0-1-amd64
Found initrd image: /boot/initrd.img-4.17.0-1-amd64
Found Windows 7 on /dev/sdc1
Found Debian GNU/Linux 8 (jessie) on /dev/sdc6
done
Removing linux-image-4.17.0-3-amd64 (4.17.17-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.17.0-3-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
adding my custom entries
Found linux image: /boot/vmlinuz-4.19.0-1-amd64
Found initrd image: /boot/initrd.img-4.19.0-1-amd64
Found linux image: /boot/vmlinuz-4.18.0-3-amd64
Found initrd image: /boot/initrd.img-4.18.0-3-amd64
Found linux image: /boot/vmlinuz-4.17.0-1-amd64
Found initrd image: /boot/initrd.img-4.17.0-1-amd64
Found Windows 7 on /dev/sdc1
Found Debian GNU/Linux 8 (jessie) on /dev/sdc6
done
Removing kde-runtime (4:17.08.3-2) ...
Removing kdelibs5-plugins (4:4.14.38-3) ...
Removing katepart (4:4.14.3-5) ...
Removing kdoctools (4:4.14.38-3) ...
dpkg: initramfs-tools: dependency problems, but removing anyway as you requested:
 linux-image-4.19.0-1-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.
 linux-image-4.18.0-3-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.
 linux-image-4.17.0-1-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.
 linux-image-4.19.0-1-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.
 linux-image-4.18.0-3-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.
 linux-image-4.17.0-1-amd64 depends on initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool; however:
  Package initramfs-tools is to be removed.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is to be removed.

Removing initramfs-tools (0.132) ...
Removing initramfs-tools-core (0.132) ...
Errors were encountered while processing:
 linux-image-4.18.0-3-amd64
Log ended: 2019-01-08  22:00:51



Here is the output from today:
Code: Select all
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
--SNIP--

The following packages will be REMOVED:
  initramfs-tools initramfs-tools-core libhdf5-100 libhdf5-openmpi-100
  libkactivities-bin libkactivities-models1 libkatepartinterfaces4
  libkde3support4 libkdewebkit5 libkemoticons4 libkfile4 libkhtml5 libkio5
  libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkparts4
  libktexteditor4 libplasma3 libsensors4 libsensors4:i386 libservlet2.5-java
  libsolid4 libtirpc1 linux-image-4.17.0-1-amd64 linux-image-4.18.0-3-amd64
  linux-image-4.19.0-1-amd64 linux-image-amd64 plasma-scriptengine-javascript
  python-gnucash sane sane-utils udev udisks2 unetbootin upower xpra xsane
  xserver-xorg xserver-xorg-core xserver-xorg-input-evdev
  xserver-xorg-input-mouse xserver-xorg-input-synaptics
  xserver-xorg-input-void xserver-xorg-input-wacom xserver-xorg-video-all
  xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-cirrus
  xserver-xorg-video-dummy xserver-xorg-video-fbdev xserver-xorg-video-intel
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic
  xserver-xorg-video-nouveau xserver-xorg-video-qxl xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-savage xserver-xorg-video-tdfx
  xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware
The following NEW packages will be installed:
  guile-2.2-libs libel-api-java libhdf5-103 libhdf5-openmpi-103
  libjsp-api-java libmariadb3 libsensors-config libsensors5
  libwebsocket-api-java makedev
The following packages have been kept back:
  libkrb5support0 libkrb5support0:i386 libsane-common
The following packages will be upgraded:
  gnucash gnucash-common libgdal20 libnetcdf13 libopencv-calib3d3.2
  libopencv-contrib3.2 libopencv-core3.2 libopencv-features2d3.2
  libopencv-flann3.2 libopencv-highgui3.2 libopencv-imgcodecs3.2
  libopencv-imgproc3.2 libopencv-ml3.2 libopencv-objdetect3.2
  libopencv-photo3.2 libopencv-shape3.2 libopencv-stitching3.2
  libopencv-superres3.2 libopencv-video3.2 libopencv-videoio3.2
  libopencv-videostab3.2 libopencv-viz3.2 libservlet3.1-java libtirpc-common
  libtirpc3 libudev-dev libudev1 libudev1:i386 libvtk6.3 lm-sensors
  python-opencv sysstat
32 upgraded, 10 newly installed, 64 to remove and 3 not upgraded.
Need to get 44.7 MB/64.0 MB of archives.
After this operation, 785 MB disk space will be freed.
Do you want to continue? [Y/n] Abort.
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-14 18:34

sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby llivv » 2019-01-14 18:40

Code: Select all
apt policy


Code: Select all
aptitude search '~ahold'


Code: Select all
aptitude why initramfs-tools


Code: Select all
aptitude why initramfs-tools-core
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5594
Joined: 2007-02-14 18:10
Location: cold storage

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-14 19:16

Ok I do not know why this is happening:

Pinned packages:
libkrb5-3 -> 1.16.1-1 with priority 30000
libkrb5-3:i386 -> 1.16.1-1 with priority 30000
texlive-latex-base -> 2018.20181116-1 with priority 30000
insserv -> 1.14.0-5.4+b1 with priority 30000
udev -> 239-15 with priority 30000
libsnmp30 -> 5.7.3+dfsg-5 with priority -30000
thunderbird -> 1:52.9.1-1 with priority 30000
apparmor -> 2.13.1-3+b1 with priority 30000
libprotobuf17 -> 3.6.1.3-1 with priority -30000
firefox-esr -> 52.9.0esr-1 with priority 30000

how is this different from apt-mark type stuff? *scraches head*

Code: Select all
root@enlil:/# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ftp.ca.debian.org/debian buster/contrib i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=i386
     origin ftp.ca.debian.org
 500 http://ftp.ca.debian.org/debian buster/contrib amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=amd64
     origin ftp.ca.debian.org
 500 http://ftp.ca.debian.org/debian buster/non-free i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=i386
     origin ftp.ca.debian.org
 500 http://ftp.ca.debian.org/debian buster/non-free amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=amd64
     origin ftp.ca.debian.org
 500 http://ftp.ca.debian.org/debian buster/main i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=i386
     origin ftp.ca.debian.org
 500 http://ftp.ca.debian.org/debian buster/main amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=amd64
     origin ftp.ca.debian.org
 500 http://mirror.csclub.uwaterloo.ca/debian buster/contrib i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=i386
     origin mirror.csclub.uwaterloo.ca
 500 http://mirror.csclub.uwaterloo.ca/debian buster/contrib amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=amd64
     origin mirror.csclub.uwaterloo.ca
 500 http://mirror.csclub.uwaterloo.ca/debian buster/non-free i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=i386
     origin mirror.csclub.uwaterloo.ca
 500 http://mirror.csclub.uwaterloo.ca/debian buster/non-free amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=amd64
     origin mirror.csclub.uwaterloo.ca
 500 http://mirror.csclub.uwaterloo.ca/debian buster/main i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=i386
     origin mirror.csclub.uwaterloo.ca
 500 http://mirror.csclub.uwaterloo.ca/debian buster/main amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=amd64
     origin mirror.csclub.uwaterloo.ca
Pinned packages:
     libkrb5-3 -> 1.16.1-1 with priority 30000
     libkrb5-3:i386 -> 1.16.1-1 with priority 30000
     texlive-latex-base -> 2018.20181116-1 with priority 30000
     insserv -> 1.14.0-5.4+b1 with priority 30000
     udev -> 239-15 with priority 30000
     libsnmp30 -> 5.7.3+dfsg-5 with priority -30000
     thunderbird -> 1:52.9.1-1 with priority 30000
     apparmor -> 2.13.1-3+b1 with priority 30000
     libprotobuf17 -> 3.6.1.3-1 with priority -30000
     firefox-esr -> 52.9.0esr-1 with priority 30000
root@enlil:/# apt-hold show
bash: apt-hold: command not found
root@enlil:/# apt-show hold
bash: apt-show: command not found
root@enlil:/# aptitude search '~ahold'
root@enlil:/# aptitude why initramfs-tools
i   linux-image-4.18.0-3-amd64 Depends initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool
root@enlil:/# aptitude why initramfs-tools-core
i   linux-image-4.18.0-3-amd64 Depends initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool
i A initramfs-tools            Depends initramfs-tools-core (= 0.132)
root@enlil:/# apt-mark showhold
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-14 19:24

ok wait a minute I was renaming files in /etc/apt/preferences.d/ that were made by apt-listbugs. However I've fixed that but the problem with apt wanting to remove initramfs-tools persists.
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby bw123 » 2019-01-14 22:11

udev -> 239-15 with priority 30000

My guess would be the udev pin, it will depend on libudev1=239-15 exactly, and many other pkgs depend on an exact ver of libudev1.

use aptitude. Maybe if you mark initramfs-tools as manually installed along with a few others, you get by for now.

sort of looks like the metapkg thing, did you remove some linux-image-* metapkg or a task-* lately? Look up "stop worrying love metapackages" on the forum if you think that might be it. Maybe something in :i386 repo is not in sync with amd64 pkgs?
User avatar
bw123
 
Posts: 3787
Joined: 2011-05-09 06:02

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-14 23:41

bw123 wrote:use aptitude. Maybe if you mark initramfs-tools as manually installed along with a few others, you get by for now.

sort of looks like the metapkg thing, did you remove some linux-image-* metapkg or a task-* lately? Look up "stop worrying love metapackages" on the forum if you think that might be it. Maybe something in :i386 repo is not in sync with amd64 pkgs?


I can't use aptitude I use apt. I read you shouldn't mix package managers.

I tried setting
Code: Select all
apt-mark manual initramfs-tools

but no luck.

As for the metapackages I don't think I've removed them.
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby llivv » 2019-01-15 00:35

sombunall wrote:I can't use aptitude I use apt. I read you shouldn't mix package managers.

where did you read that? can you link to it?

why do you have packages pinned ? did you read somewhere that is what you should do? can you give a link?

Code: Select all
apt-get check

Code: Select all
apt list pinned
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5594
Joined: 2007-02-14 18:10
Location: cold storage

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-15 01:17

llivv wrote:
sombunall wrote:I can't use aptitude I use apt. I read you shouldn't mix package managers.

where did you read that? can you link to it?


So there are a few differences between apt-get and aptitude. Because of this, it is recommended to chose one and stick with it.

https://elementaryos.stackexchange.com/questions/65/can-i-use-aptitude-instead-of-apt-get-without-problems

There's no problem using apt-file and aptitude. Just try not to mix apt-get and aptitude.

https://www.linuxquestions.org/questions/ubuntu-63/mixing-apt-%2A-and-aptitude-nok-828408/

why do you have packages pinned ? did you read somewhere that is what you should do? can you give a link?

apt-listbugs allows you to see bugs with a package before installing and is supposed to save headaches. I don't understand why you want a link for this? Do I need to argue *FOR* using this debian package? I was tired of getting my system half-borked so I installed it. So far it's done an OK job, better with it than without it.

apt-get check
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done


apt list pinned
Code: Select all
Listing... Done
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36

Re: apt wants to kill initramfs-tools (buster)

Postby llivv » 2019-01-15 01:37

So your system is fine as it stands now.

What do you want to do?
keep packages pinned?
or
dist-upgrade?

if you want both and an argument I'll let someone else take if from here.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5594
Joined: 2007-02-14 18:10
Location: cold storage

Re: apt wants to kill initramfs-tools (buster)

Postby dilberts_left_nut » 2019-01-15 05:09

You should stop reading clueless opinions in old threads about other OS’s.

It is also written that you shouldn’t run testing if you don’t want to deal with breakage.

And pinning packages in a rapidly evolving system is guaranteed to cause you trouble.
Your issues are classic example of the “Doctor, doctor - it hurts when i do this” problem.
The solution is “don’t do that”....
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4936
Joined: 2009-10-05 07:54
Location: enzed

Re: apt wants to kill initramfs-tools (buster)

Postby Head_on_a_Stick » 2019-01-15 05:54

^ +1
sombunall wrote:
So there are a few differences between apt-get and aptitude. Because of this, it is recommended to chose one and stick with it.

https://elementaryos.stackexchange.com/questions/65/can-i-use-aptitude-instead-of-apt-get-without-problems

There's no problem using apt-file and aptitude. Just try not to mix apt-get and aptitude.

https://www.linuxquestions.org/questions/ubuntu-63/mixing-apt-%2A-and-aptitude-nok-828408/

^ This is outdated advice and does not apply any more.

Aptitude has a more advanced dependency resolution algorithm and can be very useful for problems like this.
User avatar
Head_on_a_Stick
 
Posts: 8900
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: apt wants to kill initramfs-tools (buster)

Postby sombunall » 2019-01-15 14:44

Ok thanks for all the advice! :D
sombunall
 
Posts: 73
Joined: 2009-05-20 20:36


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable