setserial =>ERROR CODE 1!! after apt-get autoremove

Bug #1530194 reported by Don Juan Santiago
8
This bug affects 1 person
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-4.2.0-22-generic off of system root partition sda5 from grub2 partition sda1
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-AOD257:/home/home-user# sudo apt-get autoremove
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-filesystem1.55.0 libboost-system1.55.0
  libcloog-isl4 libgphoto2-port10 libguvcview-1.0-0 libinput7 libjasper1
  libmirclient8 libmircommon3 libmirprotobuf0 libobrender29 libpoppler49
  libprotobuf9 libxcb-util0 libxcb-xtest0 lubuntu-artwork-15-04
  mir-client-platform-mesa2
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-port10:i386 (2.5.4-1.1ubuntu1) ...
Removing libguvcview-1.0-0:i386 (2.0.1+debian-1) ...
Removing libinput7:i386 (0.10.0-1) ...
Removing libjasper1:i386 (1.900.1-debian1-2.4) ...
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-artwork-15-04 (0.56) ...
Removing libmirclient8:i386 (0.12.1+15.04.20150324-0ubuntu1) ...
Removing mir-client-platform-mesa2:i386 (0.12.1+15.04.20150324-0ubuntu1) ...
Removing libmircommon3:i386 (0.12.1+15.04.20150324-0ubuntu1) ...
Removing libboost-filesystem1.55.0:i386 (1.55.0+dfsg-3ubuntu2) ...
Removing libboost-system1.55.0:i386 (1.55.0+dfsg-3ubuntu2) ...
Removing libmirprotobuf0:i386 (0.12.1+15.04.20150324-0ubuntu1) ...
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.d/setserial
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-AOD257:/home/home-user#

Tags: setserial
no longer affects: eog (Ubuntu)
Revision history for this message
Don Juan Santiago (jvjmvg) wrote :

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...

Joshua Powers (powersj)
Changed in setserial (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for setserial (Ubuntu) because there has been no activity for 60 days.]

Changed in setserial (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.