Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to do a general upgrade using apt and the thing craps out every time, apparently because of an error with udev. The only thing I've done recently is try to install a newer version of cups, which didn't work (hence the insserv error, I assume). Can anyone help me get rid of these two errors? I have absolutely no idea where to start...
Thanks!
Code:
The following packages will be upgraded:
bunsen-common bunsen-configs bunsen-faenza-icon-theme bunsen-images
bunsen-meta-java bunsen-meta-libreoffice bunsen-os-release bunsen-pipemenus
bunsen-python-apt-template bunsen-utilities bunsen-welcome ca-certificates dbus
dbus-x11 file firefox-esr google-chrome-stable iceweasel intel-microcode jq
libcomerr2 libgnutls-deb0-28 libgnutls-openssl27 libgudev-1.0-0 libhogweed2
liblcms2-2 libmagic1 libmpg123-0 libmysqlclient18 libnettle4 libobrender29
libobt2 libopenjp2-7 libpam-modules libpam-modules-bin libpam-runtime
libpam-systemd libpam0g libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5
libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite
libqt5widgets5 libss2 libssl1.0.0 libsystemd0 libtiff5 libwmf0.2-7 libxpm4
linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-amd64
linux-headers-3.16.0-4-common linux-image-3.16.0-4-amd64 locales
multiarch-support mysql-common openbox openssl python-crypto suckless-tools
systemd systemd-sysv virtualbox-5.1 w3m wireless-regdb
70 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/224 MB of archives.
After this operation, 521 kB disk space will be freed.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up udev (215-17+deb8u6) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'K36cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop at service rc.local if started
insserv: There is a loop between service rc.local and mountnfs if started
insserv: loop involving service mountnfs at depth 8
insserv: loop involving service networking at depth 7
insserv: There is a loop between service cups and mountall if started
insserv: loop involving service mountall at depth 5
insserv: loop involving service checkroot-bootclean at depth 4
insserv: loop involving service urandom at depth 7
insserv: There is a loop between service rc.local and mountdevsubfs if started
insserv: loop involving service mountdevsubfs at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop at service cups if started
insserv: loop involving service mountnfs-bootclean at depth 7
insserv: There is a loop between service cups and mountall-bootclean if started
insserv: loop involving service mountall-bootclean at depth 1
insserv: loop involving service hwclock at depth 4
insserv: loop involving service rc.local at depth 2
insserv: loop involving service cups at depth 1
insserv: There is a loop between service rc.local and mountnfs-bootclean if started
insserv: loop involving service rsyslog at depth 1
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.120+deb8u2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you run apt check and paste the output here please. Also please let us know which distro and version you are running, and where you got the newer version of cups.
Of course, yes, sorry. I'm running Bunsenlabs 8.6 Debian Jessie. For CUPS I downloaded the official source for 2.2.1 from https://github.com/apple/cups/releases.
*apt check* came up with
Code:
E: Invalid operation check
and *apt-get check -v* returned
Code:
apt 1.0.9.8.4 for amd64 compiled on Dec 11 2016 09:48:19
Supported modules:
*Ver: Standard .deb
Pkg: Debian APT solver interface (Priority -1000)
*Pkg: Debian dpkg interface (Priority 30)
S.L: 'deb' Standard Debian binary tree
S.L: 'deb-src' Standard Debian source tree
Idx: EDSP scenario file
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian Translation Index
Idx: Debian dpkg status file
Of course, yes, sorry. I'm running Bunsenlabs 8.6 Debian Jessie. For CUPS I downloaded the official source for 2.2.1 from https://github.com/apple/cups/releases.
*apt check* came up with
Code:
E: Invalid operation check
and *apt-get check -v* returned
Code:
apt 1.0.9.8.4 for amd64 compiled on Dec 11 2016 09:48:19
Supported modules:
*Ver: Standard .deb
Pkg: Debian APT solver interface (Priority -1000)
*Pkg: Debian dpkg interface (Priority 30)
S.L: 'deb' Standard Debian binary tree
S.L: 'deb-src' Standard Debian source tree
Idx: EDSP scenario file
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian Translation Index
Idx: Debian dpkg status file
Doesn't look particularly informative to me...
Neither to me! :-)
I was hoping that you had an up-to-date version of apt that supported apt check, sorry about that.
You were right to try apt-get check, but not with the -v flag which takes priority and prints the version info, no matter the apt-get command specified.
So, I did some spellunking and found the dpkg command to list incomplete installations. It returned this:
Code:
sudo dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
udev /dev/ and hotplug management daemon
I tried --configure but the error seems to be IN the udev configuration process!
I'm thinking you might be onto something there... I seem to have a knack for splatting my system.
Do you have a preferred utility?
Some would say that you can't get to know your system properly without splatting it. ;-)
I'm not the one to ask about backups/images as I have my own idiosyncratic method - I take online backups of /home with FreeFileSync and offline system snapshots of my /, /home and /home/data partitions with Macrium Reflect.
Have a search though, including on LQ, as there are many different packages and methods available.
A thought as I was out walking: have you checked the apt logs to see if you can spot what went awry with your system? if you can figure out at which point things started ravelling, perhaps they can be unravelled. In particular, look for failed installs and updates to system components (udev, systemd etc.).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.