setserial =>ERROR CODE 1!! after apt-get autoremove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
setserial (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have a custom grub2 install running on a seperate partition sda1 while all core lubuntu files located system root sda5
I successfully ran lubuntu using vmlinuz-
I had an error during ubuntu 15.10 upgrade from lubuntu 15.04 regarding setserial error code 1
After i repaired my grub2 config file to load 4.2 from 3.19 vmlinuz.. i rebooted into lubuntu and performed a package cleanup...
alt+f2... gksudo lxterminal... sudo apt-get autoremove
root@PC-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
cpp-4.9 gir1.2-gconf-2.0 libboost-
libcloog-isl4 libgphoto2-port10 libguvcview-1.0-0 libinput7 libjasper1
libmirclient8 libmircommon3 libmirprotobuf0 libobrender29 libpoppler49
libprotobuf9 libxcb-util0 libxcb-xtest0 lubuntu-
mir-client-
0 upgraded, 0 newly installed, 19 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 33.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 190455 files and directories currently installed.)
Removing cpp-4.9 (4.9.3-5ubuntu1) ...
Removing gir1.2-gconf-2.0 (3.2.6-3ubuntu5) ...
Removing libcloog-isl4:i386 (0.18.3-1) ...
Removing libgphoto2-
Removing libguvcview-
Removing libinput7:i386 (0.10.0-1) ...
Removing libjasper1:i386 (1.900.
Removing libobrender29 (3.5.2-8) ...
Removing libpoppler49:i386 (0.30.0-0ubuntu1) ...
Removing libxcb-util0:i386 (0.3.8-3) ...
Removing libxcb-xtest0:i386 (1.11-0ubuntu1) ...
Removing lubuntu-
Removing libmirclient8:i386 (0.12.1+
Removing mir-client-
Removing libmircommon3:i386 (0.12.1+
Removing libboost-
Removing libboost-
Removing libmirprotobuf0
Removing libprotobuf9:i386 (2.6.1-1) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Setting up setserial (2.17-48ubuntu1) ...
update-rc.d: error: unable to read /etc/init.
dpkg: error processing package setserial (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
setserial
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@PC-
no longer affects: | eog (Ubuntu) |
Changed in setserial (Ubuntu): | |
status: | New → Incomplete |
I solved the issue using the following links
http:// ubuntuforums. org/showthread. php?t=1597294
alt+f2... gksudo lxterminal... sudo dpkg --force-all -P setserial
http:// askubuntu. com/questions/ 539235/ how-to- remove- obsolete- packages- after-failed- release- upgrade- via-do- release- upgr
apt-get update
apt-get autoremove
apt-get clean
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL= "linux- (image| headers| ubuntu- modules| restricted- modules) "
METAKERNEL= "linux- (image| headers| restricted- modules) -(generic| i386|server| common| rt|xen) "
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
update-grub
*** than after a reboot.. using Synaptic Package Manager.. reinstalled setserial package
P.S. I guess Upgrading from lubuntu 15.04 with 3.19 version of vmlinuz to 15.10 doesnt cleanup all the old upgrades...