[Bug 874256] Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Steve Langasek
steve.langasek at canonical.com
Sat Oct 15 17:47:37 UTC 2011
> Setting up grub-pc (1.99-12ubuntu5) ...
> /etc/default/grub: 34: 768: not found
> dpkg: error processing grub-pc (--configure):
> subprocess installed post-installation script returned error exit status 127
This is not a bug in Ubuntu. /etc/default/grub is a configuration file in shell script format, and you have local changes to the file which cause it to not be in valid shell script syntax. You probably have an incorrect space on this line.
** Changed in: grub (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub in Ubuntu.
https://bugs.launchpad.net/bugs/874256
Title:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Status in “grub” package in Ubuntu:
Invalid
Bug description:
~$ sudo apt-get update
[sudo] password for msh:
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://extras.ubuntu.com oneiric InRelease
Hit http://security.ubuntu.com oneiric-security Release.gpg
Get:1 http://extras.ubuntu.com oneiric Release.gpg [72 B]
Hit http://security.ubuntu.com oneiric-security Release
Hit http://extras.ubuntu.com oneiric Release
Hit http://security.ubuntu.com oneiric-security/main Sources
Hit http://extras.ubuntu.com oneiric/main Sources
Ign http://us.archive.ubuntu.com oneiric InRelease
Ign http://us.archive.ubuntu.com oneiric-updates InRelease
Hit http://extras.ubuntu.com oneiric/main amd64 Packages
Hit http://extras.ubuntu.com oneiric/main i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted Sources
Hit http://security.ubuntu.com oneiric-security/universe Sources
Hit http://security.ubuntu.com oneiric-security/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/main amd64 Packages
Hit http://security.ubuntu.com oneiric-security/restricted amd64 Packages
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe amd64 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse amd64 Packages
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages
Ign http://security.ubuntu.com oneiric-security/main TranslationIndex
Ign http://security.ubuntu.com oneiric-security/multiverse TranslationIndex
Ign http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Ign http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com oneiric Release.gpg
Get:2 http://us.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Hit http://us.archive.ubuntu.com oneiric Release
Ign http://extras.ubuntu.com oneiric/main Translation-en_US
Ign http://extras.ubuntu.com oneiric/main Translation-en
Get:3 http://us.archive.ubuntu.com oneiric-updates Release [24.2 kB]
Ign http://security.ubuntu.com oneiric-security/main Translation-en_US
Ign http://security.ubuntu.com oneiric-security/main Translation-en
Ign http://security.ubuntu.com oneiric-security/multiverse Translation-en_US
Ign http://security.ubuntu.com oneiric-security/multiverse Translation-en
Ign http://security.ubuntu.com oneiric-security/restricted Translation-en_US
Ign http://security.ubuntu.com oneiric-security/restricted Translation-en
Ign http://security.ubuntu.com oneiric-security/universe Translation-en_US
Ign http://security.ubuntu.com oneiric-security/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric/main Sources
Hit http://us.archive.ubuntu.com oneiric/restricted Sources
Hit http://us.archive.ubuntu.com oneiric/universe Sources
Hit http://us.archive.ubuntu.com oneiric/multiverse Sources
Hit http://us.archive.ubuntu.com oneiric/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://us.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://us.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/universe TranslationIndex
Get:4 http://us.archive.ubuntu.com oneiric-updates/main Sources [2,033 B]
Get:5 http://us.archive.ubuntu.com oneiric-updates/restricted Sources [14 B]
Get:6 http://us.archive.ubuntu.com oneiric-updates/universe Sources [1,361 B]
Get:7 http://us.archive.ubuntu.com oneiric-updates/multiverse Sources [14 B]
Get:8 http://us.archive.ubuntu.com oneiric-updates/main amd64 Packages [5,297 B]
Get:9 http://us.archive.ubuntu.com oneiric-updates/restricted amd64 Packages [14 B]
Get:10 http://us.archive.ubuntu.com oneiric-updates/universe amd64 Packages [1,975 B]
Get:11 http://us.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages [14 B]
Get:12 http://us.archive.ubuntu.com oneiric-updates/main i386 Packages [5,310 B]
Get:13 http://us.archive.ubuntu.com oneiric-updates/restricted i386 Packages [14 B]
Get:14 http://us.archive.ubuntu.com oneiric-updates/universe i386 Packages [1,981 B]
Get:15 http://us.archive.ubuntu.com oneiric-updates/multiverse i386 Packages [14 B]
Get:16 http://us.archive.ubuntu.com oneiric-updates/main TranslationIndex [72 B]
Get:17 http://us.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex [70 B]
Get:18 http://us.archive.ubuntu.com oneiric-updates/restricted TranslationIndex [70 B]
Get:19 http://us.archive.ubuntu.com oneiric-updates/universe TranslationIndex [72 B]
Hit http://us.archive.ubuntu.com oneiric/main Translation-en
Hit http://us.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric/universe Translation-en
Get:20 http://us.archive.ubuntu.com oneiric-updates/main Translation-en [3,044 B]
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en
Get:21 http://us.archive.ubuntu.com oneiric-updates/universe Translation-en [1,474 B]
Fetched 47.4 kB in 8s (5,455 B/s)
Reading package lists... Done
msh at msh-N68S3B:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
cups cups-bsd cups-client cups-common cups-ppdc libcups2 libcups2:i386 libcupscgi1 libcupsdriver1 libcupsimage2
libcupsimage2:i386 libcupsmime1 libcupsppdc1 libdvdread4
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 3,614 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcups2 i386 1.5.0-8ubuntu1 [176 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcups2 amd64 1.5.0-8ubuntu1 [174 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupscgi1 amd64 1.5.0-8ubuntu1 [32.3 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupsdriver1 amd64 1.5.0-8ubuntu1 [21.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupsimage2 i386 1.5.0-8ubuntu1 [54.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupsimage2 amd64 1.5.0-8ubuntu1 [53.7 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupsmime1 amd64 1.5.0-8ubuntu1 [15.8 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcupsppdc1 amd64 1.5.0-8ubuntu1 [54.7 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main cups-common all 1.5.0-8ubuntu1 [712 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main cups-bsd amd64 1.5.0-8ubuntu1 [44.3 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main cups-client amd64 1.5.0-8ubuntu1 [165 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main cups-ppdc amd64 1.5.0-8ubuntu1 [33.2 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main cups amd64 1.5.0-8ubuntu1 [2,019 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/universe libdvdread4 amd64 4.1.3-10ubuntu4.1 [57.5 kB]
Fetched 3,614 kB in 1min 2s (57.4 kB/s)
Preconfiguring packages ...
(Reading database ... 159678 files and directories currently installed.)
Preparing to replace libcups2 1.5.0-8 (using .../libcups2_1.5.0-8ubuntu1_amd64.deb) ...
De-configuring libcups2:i386 ...
Unpacking replacement libcups2 ...
Preparing to replace libcups2:i386 1.5.0-8 (using .../libcups2_1.5.0-8ubuntu1_i386.deb) ...
Unpacking replacement libcups2:i386 ...
Preparing to replace libcupscgi1 1.5.0-8 (using .../libcupscgi1_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement libcupscgi1 ...
Preparing to replace libcupsdriver1 1.5.0-8 (using .../libcupsdriver1_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement libcupsdriver1 ...
Preparing to replace libcupsimage2 1.5.0-8 (using .../libcupsimage2_1.5.0-8ubuntu1_amd64.deb) ...
De-configuring libcupsimage2:i386 ...
Unpacking replacement libcupsimage2 ...
Preparing to replace libcupsimage2:i386 1.5.0-8 (using .../libcupsimage2_1.5.0-8ubuntu1_i386.deb) ...
Unpacking replacement libcupsimage2:i386 ...
Preparing to replace libcupsmime1 1.5.0-8 (using .../libcupsmime1_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement libcupsmime1 ...
Preparing to replace libcupsppdc1 1.5.0-8 (using .../libcupsppdc1_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement libcupsppdc1 ...
Preparing to replace cups-common 1.5.0-8 (using .../cups-common_1.5.0-8ubuntu1_all.deb) ...
Unpacking replacement cups-common ...
Preparing to replace cups-bsd 1.5.0-8 (using .../cups-bsd_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement cups-bsd ...
Preparing to replace cups-client 1.5.0-8 (using .../cups-client_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement cups-client ...
Preparing to replace cups-ppdc 1.5.0-8 (using .../cups-ppdc_1.5.0-8ubuntu1_amd64.deb) ...
Unpacking replacement cups-ppdc ...
Preparing to replace cups 1.5.0-8 (using .../cups_1.5.0-8ubuntu1_amd64.deb) ...
cups stop/waiting
Unpacking replacement cups ...
Preparing to replace libdvdread4 4.1.3-10ubuntu4 (using .../libdvdread4_4.1.3-10ubuntu4.1_amd64.deb) ...
Unpacking replacement libdvdread4 ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up linux-image-3.0.0-12-generic (3.0.0-12.20) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-12-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
/etc/default/grub: 34: 768: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-12-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-12-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up friendly-recovery (0.2.18) ...
/etc/default/grub: 34: 768: not found
dpkg: error processing friendly-recovery (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up memtest86+ (4.20-1ubuntu1) ...
/etc/default/grub: 34: 768: not found
dpkg: error processing memtest86+ (--configure):
subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of ubuntu-standard:
ubuntu-standard depends on memtest86+; however:
Package memtest86+ is not configured yet.
dpkg: error processing ubuntu-standard (--configure):
dependency problems - leaving unconfigured
Setting up grub-pc (1.99-12ubuntu5) ...
/etc/default/grub: 34: 768: not found
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.0.0-12-generic; however:
Package linux-image-3.0.0-12-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.0.0.12.14); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up plymouth-theme-kubuntu-logo (1:11.10ubuntu4) ...
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
update-initramfs: deferring update (trigger activated)
/etc/default/grub: 34: 768: not found
dpkg: error processing plymouth-theme-kubuntu-logo (--configure):
subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
Setting up libcups2 (1.5.0-8ubuntu1) ...
Setting up libcups2:i386 (1.5.0-8ubuntu1) ...
Setting up libcupscgi1 (1.5.0-8ubuntu1) ...
Setting up libcupsdriver1 (1.5.0-8ubuntu1) ...
Setting up libcupsimage2 (1.5.0-8ubuntu1) ...
Setting up libcupsimage2:i386 (1.5.0-8ubuntu1) ...
Setting up libcupsmime1 (1.5.0-8ubuntu1) ...
Setting up libcupsppdc1 (1.5.0-8ubuntu1) ...
Setting up cups-common (1.5.0-8ubuntu1) ...
Setting up cups-client (1.5.0-8ubuntu1) ...
Setting up cups-bsd (1.5.0-8ubuntu1) ...
Setting up cups-ppdc (1.5.0-8ubuntu1) ...
Setting up cups (1.5.0-8ubuntu1) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.cupsd ...
cups start/running, process 27452
Updating PPD files for cups ...
Setting up libdvdread4 (4.1.3-10ubuntu4.1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.0.0-12-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-image-3.0.0-12-generic
friendly-recovery
memtest86+
ubuntu-standard
grub-pc
linux-image-generic
linux-generic
plymouth-theme-kubuntu-logo
E: Sub-process /usr/bin/dpkg returned an error code (1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/874256/+subscriptions
More information about the foundations-bugs
mailing list