package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1

Bug #1822845 reported by Jaroslav Popelka
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub: řádek 1094: read: chyba čtení: 0: Chybný popisovač souboru
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: chyba při zpracovávání balíku linux-image-4.15.0-47-generic (--configure):
 podproces instalovaný post-installation skript vrátil chybový status 1
Při zpracování nastaly chyby:
 linux-image-4.15.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-46.49~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Apr 2 17:41:10 2019
ErrorMessage: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.5
 apt 1.2.31
SourcePackage: grub
Title: package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jaroslav Popelka (jarulkapop) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

You have installed the 'grub' package, which is grub version 1 and deprecated; and you have not configured it; which causes the kernel installation to fail.

You should remove the grub package with 'sudo apt-get remove --purge grub'.

Changed in grub (Ubuntu):
status: New → Invalid
Revision history for this message
Jaroslav Popelka (jarulkapop) wrote : Re: [Bug 1822845] Re: package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1

I do update some every two days and never have had such problem. I am afraid
that by purging grub my system will not start again.
Any further suggestions?

Thanks a lot for your help.

Regards

JP
---------- Původní e-mail ----------
Od: Steve Langasek <email address hidden>
Komu: <email address hidden>
Datum: 2. 4. 2019 18:20:48
Předmět: [Bug 1822845] Re: package linux-image-4.15.0-47-generic 4.15.0-
47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/
zz-update-grub exited with return code 1
"You have installed the 'grub' package, which is grub version 1 and
deprecated; and you have not configured it; which causes the kernel
installation to fail.

You should remove the grub package with 'sudo apt-get remove --purge
grub'.

** Changed in: grub (Ubuntu)
Status: New => Invalid

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1822845

Title:
package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub
exited with return code 1

Status in grub package in Ubuntu:
Invalid

Bug description:
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst
generated for you? (y/N) /usr/sbin/update-grub: řádek 1094: read: chyba
čtení: 0: Chybný popisovač souboru
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: chyba při zpracovávání balíku linux-image-4.15.0-47-generic (--
configure):
podproces instalovaný post-installation skript vrátil chybový status 1
Při zpracování nastaly chyby:
linux-image-4.15.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-46.49~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Apr 2 17:41:10 2019
ErrorMessage: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with
return code 1
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.5
apt 1.2.31
SourcePackage: grub
Title: package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited
with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1822845/+subscriptions
"

Revision history for this message
Steve Langasek (vorlon) wrote :

On Tue, Apr 02, 2019 at 05:56:43PM -0000, Jaroslav Popelka wrote:

> I do update some every two days and never have had such problem. I am
> afraid that by purging grub my system will not start again.

The grub package in question is absolutely not used on your system. It
can't be, you have no menu.lst, which is the config file grub uses to know
what to boot.

I don't know why you have the 'grub' package installed. It is never
installed by default on an Ubuntu 16.04 system. The package name for grub
in 16.04 is 'grub-pc'.

Revision history for this message
Jaroslav Popelka (jarulkapop) wrote :

Of course I have grub in my system since first installation of Ubuntu
because I have still a windows partition and one more Linux partition. Grub
was always updated till this update.
I do have menu.lst see the enclosure.

---------- Původní e-mail ----------
Od: Steve Langasek <email address hidden>
Komu: <email address hidden>
Datum: 2. 4. 2019 20:30:49
Předmět: Re: [Bug 1822845] Re: package linux-image-4.15.0-47-generic 4.15.0-
47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/
zz-update-grub exited with return code 1
"On Tue, Apr 02, 2019 at 05:56:43PM -0000, Jaroslav Popelka wrote:

> I do update some every two days and never have had such problem. I am
> afraid that by purging grub my system will not start again.

The grub package in question is absolutely not used on your system. It
can't be, you have no menu.lst, which is the config file grub uses to know
what to boot.

I don't know why you have the 'grub' package installed. It is never
installed by default on an Ubuntu 16.04 system. The package name for grub
in 16.04 is 'grub-pc'.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1822845

Title:
package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub
exited with return code 1

Status in grub package in Ubuntu:
Invalid

Bug description:
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst
generated for you? (y/N) /usr/sbin/update-grub: řádek 1094: read: chyba
čtení: 0: Chybný popisovač souboru
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: chyba při zpracovávání balíku linux-image-4.15.0-47-generic (--
configure):
podproces instalovaný post-installation skript vrátil chybový status 1
Při zpracování nastaly chyby:
linux-image-4.15.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-46.49~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Apr 2 17:41:10 2019
ErrorMessage: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with
return code 1
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.5
apt 1.2.31
SourcePackage: grub
Title: package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited
with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1822845/+subscriptions
"

Revision history for this message
Jaroslav Popelka (jarulkapop) wrote :

And this is a result of grub-customizer see enclosure.
So what could be bad?

JP

---------- Původní e-mail ----------
Od: Steve Langasek <email address hidden>
Komu: <email address hidden>
Datum: 2. 4. 2019 20:30:49
Předmět: Re: [Bug 1822845] Re: package linux-image-4.15.0-47-generic 4.15.0-
47.50~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/
zz-update-grub exited with return code 1
"On Tue, Apr 02, 2019 at 05:56:43PM -0000, Jaroslav Popelka wrote:

> I do update some every two days and never have had such problem. I am
> afraid that by purging grub my system will not start again.

The grub package in question is absolutely not used on your system. It
can't be, you have no menu.lst, which is the config file grub uses to know
what to boot.

I don't know why you have the 'grub' package installed. It is never
installed by default on an Ubuntu 16.04 system. The package name for grub
in 16.04 is 'grub-pc'.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1822845

Title:
package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub
exited with return code 1

Status in grub package in Ubuntu:
Invalid

Bug description:
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst
generated for you? (y/N) /usr/sbin/update-grub: řádek 1094: read: chyba
čtení: 0: Chybný popisovač souboru
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: chyba při zpracovávání balíku linux-image-4.15.0-47-generic (--
configure):
podproces instalovaný post-installation skript vrátil chybový status 1
Při zpracování nastaly chyby:
linux-image-4.15.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-46.49~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Apr 2 17:41:10 2019
ErrorMessage: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with
return code 1
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.5
apt 1.2.31
SourcePackage: grub
Title: package linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited
with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1822845/+subscriptions
"

Revision history for this message
Steve Langasek (vorlon) wrote :

The file under /usr/share/doc/grub/examples is irrelevant. You do not have a menu.lst file in */boot/grub*, so grub1 is not used for boot.

The correct solution is as I stated, to remove the grub package from your system.

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.