Installed bbswitch dkms package post installation script subprocess returned error exit status 10

package bbswitch-dkms 0.8-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10 Affects Status Importance Assigned to Milestone bbswitch (Ubuntu) Bug Description Simply reports an error during installation but with no visible problem. Maybe an internal error. ProblemType: Package DistroRelease: Ubuntu 16.04 Package: bbswitch-dkms 0.8-3ubuntu1 ProcVersionSign ature: Ubuntu 4.4.0-21.37-generic 4.4.6 Uname: […]

Содержание

  1. package bbswitch-dkms 0.8-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10
  2. Bug Description
  3. Борьба с ошибкой Bad return status for module build on kernel
  4. Как устранить ошибку Bad return status for module build on kernel?
  5. Linux Mint Forums
  6. [SOLVED]initramfs-tools and dpkg error while installing Broadcom driver
  7. [SOLVED]initramfs-tools and dpkg error while installing Broadcom driver
  8. Re: initramfs-tools and dpkg error while installing Broadcom driver
  9. Re: initramfs-tools and dpkg error while installing Broadcom driver
  10. package bbswitch-dkms 0.7-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3
  11. Bug Description
  12. Linux Mint Forums
  13. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  14. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  15. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  16. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  17. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  18. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  19. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  20. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  21. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  22. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  23. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  24. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  25. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  26. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  27. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  28. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

package bbswitch-dkms 0.8-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10

Affects Status Importance Assigned to Milestone
bbswitch (Ubuntu)

Bug Description

Simply reports an error during installation but with no visible problem. Maybe an internal error.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: bbswitch-dkms 0.8-3ubuntu1
ProcVersionSign ature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CasperVersion: 1.376
Date: Sat May 7 05:05:55 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 10
LiveMediaBuild: Ubuntu 16.04 LTS «Xenial Xerus» — Release amd64 (20160420.1)
RelatedPackageV ersions:
dpkg 1.18.4ubuntu1
apt 1.2.10ubuntu1
SourcePackage: bbswitch
Title: package bbswitch-dkms 0.8-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10
UpgradeStatus: No upgrade log present (probably fresh install)

  • AptOrdering.txtEdit (894 bytes, text/plain; charset=»utf-8″)
  • Dependencies.txtEdit (2.0 KiB, text/plain; charset=»utf-8″)
  • Df.txtEdit (616 bytes, text/plain; charset=»utf-8″)
  • Dmesg.txtEdit (64.4 KiB, text/plain; charset=»utf-8″)
  • DpkgHistoryLog.txtEdit (90.2 KiB, text/plain; charset=»utf-8″)
  • DpkgTerminalLog.txtEdit (7.3 KiB, text/plain; charset=»utf-8″)
  • DuplicateSignature.txtEdit (2.4 KiB, text/plain; charset=»utf-8″)
  • JournalErrors.txtEdit (45.4 KiB, text/plain; charset=»utf-8″)
tags: removed: need-duplicate-check

Status changed to ‘Confirmed’ because the bug affects multiple users.

Источник

Борьба с ошибкой Bad return status for module build on kernel

При установке драйверов видеокарт в дистрибутивах с ядром LInux иногда возникает ошибка

Bad return status for module build on kernel: номер_ядра-generic (x86_64)

Затем обычно идет строчка, в которой указывается информация о логе, в котором содержится более подробная информация о проблемной инсталляции, например:

Лог содержит ошибки компиляции, например:

Обновление системы, повторная установка драйверов, в том числе принудительная, не помогает решить проблему, инсталляция завершается с теми же ошибками.

Подобные проблемы возникают как при установке драйверов Nvidia, так и AMD. Они часто связаны с наличием ошибок в коде драйверов, проявляющихся на конкретном ядре Linux.

Как устранить ошибку Bad return status for module build on kernel?

Обычно ошибки, связанные с установкой драйверов на какие-либо устройства решаются в обновленных версиях ядра. Поэтому желательно всегда сначала проводить обновление системы перед инсталляцией новых модулей.

Иногда для решения проблем нужно наоборот, произвести откат на более раннюю версию ядра (не устанавливать обновлений сразу после установки системы), поставить драйвера и только потом производить обновление системы. Такая ситуация часто возникает с видеокартами, для которых производители уже не выпускают обновленного кода в драйверах, стимулируя покупку новых моделей.

Для запуска видеокарт AMD Radeon R9 290/390 согласно статье «Как добиться от видеокарт Radeon R9 290/390 хешрейта 29-30 Mh/s на Ethash» на компьютерах с некоторыми ubuntu-дистрибутивами нужно ставить драйвер на вновь установленную систему (релиз 16.04), и только потом ее обновлять. Нужно отметить, что дистрибутив xubuntu 16.04 обычно ведет себя адекватно и драйвера на него ставятся как до, так и после обновления системы.

Проверить версию установленного ядра системы можно командой

На вновь установленной xubuntu 16.04.6 стоит ядро 4.10.0-45:

после установки последних обновлений версия ядра меняется на 4.15.0-132-generic или новее:

Для устранения ошибки нужно:

  • полностью удалить драйвер (модуль), который вызывал ошибку. Для драйверов AMD для этого выполняют команду (из папки с распакованным пакетом драйверов):
  • перезагрузить систему
  • при загрузке компьютера удерживать кнопку shift, выбрать Advanced options for Ubuntu:
  • выбрать предыдущую версию ядра (4.10.0-45), загрузиться:
  • установить нужный драйвер (модуль). Для драйверов AMD версии 17.40 установка производиться командой:
  • добавить пользователя в группу видео:
  • включить в Grub значение фрагментации, равное 9, а также отключить устаревшие radeon-драйвера:
  • обновить систему
  • перезагрузить компьютер (sudo reboot)

Если ошибка остается, нужно сначала устанавливать старую версию Ubuntu 16.04.1 LTS на старом ядре 4.4.0.35, устанавливать драйвера AMD, а потом производить обновление.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED]initramfs-tools and dpkg error while installing Broadcom driver

Post by scusa » Tue Nov 24, 2020 3:34 am

Apologies if I have chosen the wrong section to post this query, as you can see, I am very new to Linux environment and the Linux Mint forums. I finally made the jump to Linux Mint from Windows 10 about 3 weeks back and I regret not having done it earlier. All was good and I was learning with usage till last night when I got a prompt from ‘Update Centre’ and upgraded some components including the Kernel. The Broadcom wireless drivers stopped working this morning(first boot after upgrade) and I tried everything to fix it but to no avail.

1) During graphical install of BCM43142 using ‘ Driver Manager‘, I run into this every time:

pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)

2) Tried running: dpkg —configure -a

5) Finally, I tried installing initramfs-tools itself.

Any help in resolving the issue will be highly appreciated. Thank you for taking the time out to go through the issue I posted.

P.S: Tried dpkg —configure -a —force-depends as well, not fixing the issue.

Re: initramfs-tools and dpkg error while installing Broadcom driver

Post by sleeper12 » Tue Nov 24, 2020 12:38 pm

Re: initramfs-tools and dpkg error while installing Broadcom driver

Post by scusa » Wed Nov 25, 2020 2:50 am

Hi Sleeper12, thank you very much for replying. I did run it with sudo, just forgot to mention that here. BTW, managed to solve it. Turns out that the issue was wrt free space available in /boot partition. The free space available was autoremove and autoclean:

«sudo apt purge linux-headers-* linux-headers-*-generic linux-image-*-generic linux-image-extra-*-generic linux-signed-image-*-generic» — where * is the version number. So, if the kernel is 5.4.0-26, then the command will look like- sudo apt purge linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic linux-image-5.4.0-26-generic linux-image-extra-5.4.0-26-generic linux-signed-image-5.4.0-26-generic

I know it’s not a good idea to tamper with it manually, but it was the only way I could free up some space and solve the issue. All dpkg and initramfs-tools related issues resolved after this. However, «pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)» this error continued during graphical install. Here’s what I did: —

(a) sudo apt purge *broadcom*
(b) sudo apt purge *bcmwl*
(c) sudo apt install broadcom-sta-dkms
(d) Restart system

Solved the issue of BCM43142 wireless adapter not functioning in my Mint system.

Источник

package bbswitch-dkms 0.7-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3

Affects Status Importance Assigned to Milestone
bbswitch (Ubuntu)

Bug Description

This happened after updating to new kernel through the update manager.
It randomly appeared.

1) $ lsb_release -rd
Description: Ubuntu 14.10
Release: 14.10
==============

2) $ apt-cache policy bbswitch-dkms
bbswitch-dkms:
Installed: 0.7-2ubuntu1
Candidate: 0.7-2ubuntu1
Version table:
*** 0.7-2ubuntu1 0
500 http:// ca.archive. ubuntu. com/ubuntu/ utopic/main amd64 Packages
100 /var/lib/ dpkg/status
======= ======= ======

3) Expected:
Not to produce errors when updating kernel
======= ======= ======= =====

4) What happened:
Random report error message
======= ======= ======= ======

Also This maybe related:

when I do
$ sudo apt-get autoremove

Reading package lists. Done
Building dependency tree
Reading state information. Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-331 (331.89-0ubuntu5) .
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-331
DEBUG:Parsing /usr/share/ ubuntu- drivers- common/ quirks/ dell_latitude
DEBUG:Parsing /usr/share/ ubuntu- drivers- common/ quirks/ put_your_ quirks_ here
DEBUG:Parsing /usr/share/ ubuntu- drivers- common/ quirks/ lenovo_ thinkpad
Removing old nvidia-331-331.89 DKMS files.
Loading new nvidia-331-331.89 DKMS files.
Error! DKMS tree already contains: nvidia-331-331.89
You cannot add the same module/version combo more than once.
dpkg: error processing package nvidia-331 (—configure):
subprocess installed post-installation script returned error exit status 3
dpkg: dependency problems prevent configuration of nvidia-331-uvm:
nvidia-331-uvm depends on nvidia-331 (>= 331.89); however:
Package nvidia-331 is not configured yet.

dpkg: error processing package nvidia-331-uvm (—configure):
dependency problems — leaving unconfigured
Setting up bbswitch-dkms (0.7-2ubuntu1) .
No apport report written because the error message indicates its a followup error from a previous failure.
Removing old bbswitch-0.7 DKMS files.
Loading new bbswitch-0.7 DKMS files.
Error! DKMS tree already contains: bbswitch-0.7
You cannot add the same module/version combo more than once.
dpkg: error processing package bbswitch-dkms (—configure):
subprocess installed post-installation script returned error exit status 3
dpkg: dependency problems prevent configuration of nvidia-prime:
nvidia-prime depends on bbswitch-dkms; however:
Package bbswitch-dkms is not configured yet.

dpkg: error processing package nvidia-prime (—configure):
dependency problems — leaving unconfigured
Processing triggers for initramfs-tools (0.103ubuntu8) .
No apport report written because MaxReports is reached already
update- initramfs: Generating /boot/initrd. img-3.16. 0-23-generic
Errors were encountered while processing:
nvidia-331
nvidia-331-uvm
bbswitch-dkms
nvidia-prime
E: Sub-process /usr/bin/dpkg returned an error code (1)
——

My nvidia drivers works really good, and I have no drivers issues. I tried to purge nvidia drivers reboot then install them from the «Additional Drivers» but I still have this issue appear when I run apt-get.

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: bbswitch-dkms 0.7-2ubuntu1
ProcVersionSign ature: Ubuntu 3.16.0- 23.30-generic 3.16.4
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelMo dules: nvidia
ApportVersion: 2.14.7-0ubuntu7
Architecture: amd64
Date: Sat Oct 18 22:48:54 2014
DuplicateSignature: package: bbswitch- dkms:0. 7-2ubuntu1: subprocess installed post-installation script returned error exit status 3
ErrorMessage: subprocess installed post-installation script returned error exit status 3
InstallationDate: Installed on 2014-09-28 (22 days ago)
InstallationMedia: Ubuntu MATE 14.10 «Utopic Unicorn» — beta2 amd64 (20140925)
SourcePackage: bbswitch
Title: package bbswitch-dkms 0.7-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3
UpgradeStatus: No upgrade log present (probably fresh install)

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] Generic package post-installation script subprocess returned error exit status 1

[SOLVED] Generic package post-installation script subprocess returned error exit status 1

Post by hedgehoggy » Tue Oct 19, 2021 11:34 am

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:07 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:16 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:22 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:24 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:31 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:33 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 12:47 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:49 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:56 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 1:00 pm

Well, no, that would not be better. And, arr, crap, yes, it would have that issue; that reinstall triggers the very same postinst. And as far as I can quickly find you can’t in fact skip that postinst either. Typically apt.

It was in any case not likely and especially given your equal CRC32. Err, arr, let me think.

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:00 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:01 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 1:11 pm

Plymouth is the splash screen, and it fails to install onto the initramfs. But what type exactly.

It’s going to be the set -e in /usr/share/initramfs-tools/hooks/plymouth that has the script exit after «something else» bugs out but unfortunately we don’t get t see what said something else in fact is, making this hard to pin down non-locally.

Are you at all script-savvy? If I’d have had this issue I’d start instrumenting /usr/share/initramfs-tools/hooks/plymouth by e.g. putting «echo 1» (and 2,3,4, . so on) statements before every if, for and case statement to see where it fails.

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:18 pm

Источник

After trying to configure some packages I am getting an error for the libpaper1:amd64 package.

Error :

Setting up libpaper1:amd64 (1.1.28) ...
dpkg: error processing package libpaper1:amd64 (--configure):
 installed libpaper1:amd64 package post-installation script subprocess returned error exit status 10
Processing triggers for libc-bin (2.30-0ubuntu2.1) ...
Errors were encountered while processing:
 libpaper1:amd6

System info :

Linux user-Vostro-3590 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

How do I resolve this issue?
So far I’ve tried purging/reinstalling/reconfiguring but the error still persists.

Edit: I tried to figure out the error in the post-installation script. This is what I got

sh -x libpaper1:amd64.postinst configure 1.1.28
+ . /usr/share/debconf/confmodule
+ [ !  ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [  ]
+ exec /usr/share/debconf/frontend libpaper1:amd64.postinst configure 1.1.28
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
Can't exec "libpaper1:amd64.config": No such file or directory at /usr/share/perl/5.28/IPC/Open3.pm line 178.
open2: exec of libpaper1:amd64.config configure 1.1.28 failed: No such file or directory at /usr/share/perl5/Debconf/ConfModule.pm line 59.

I have no idea how to debug this error. Any kind of help would be appreciated.

norbekoff's user avatar

asked May 19, 2020 at 13:08

stepovr's user avatar

4

I just had the same issue and here’s what I did to fix it…

sudo rm /var/lib/dpkg/info/libpaper1*
sudo dpkg --configure -D 777 libpaper1
sudo apt -f install

Hope it helps.

answered Jul 11, 2020 at 3:24

yeh's user avatar

yehyeh

2792 silver badges3 bronze badges

4

Oh, nice, yeh’s answer worked wonders. I had the same problem with the Brave browser package.

Just changed:

sudo rm /var/lib/dpkg/info/libpaper1*
sudo dpkg --configure -D 777 libpaper1
sudo apt -f install

To:

sudo rm /var/lib/dpkg/info/*brave-browser*
sudo dpkg --configure -D 777 com.brave.brave-browser
sudo apt -f install

The same applies for every other package, just put the right name in.

Eliah Kagan's user avatar

Eliah Kagan

115k53 gold badges311 silver badges484 bronze badges

answered Sep 10, 2020 at 13:06

tenxsoydev's user avatar

tenxsoydevtenxsoydev

1311 silver badge5 bronze badges

2

sudo apt reinstall libpaper1

is what solved the issue for me.

answered Nov 29, 2022 at 3:05

MichaelM's user avatar

Dear All,

Apologies if I have chosen the wrong section to post this query, as you can see, I am very new to Linux environment and the Linux Mint forums. I finally made the jump to Linux Mint from Windows 10 about 3 weeks back and I regret not having done it earlier. All was good and I was learning with usage till last night when I got a prompt from ‘Update Centre’ and upgraded some components including the Kernel. The Broadcom wireless drivers stopped working this morning(first boot after upgrade) and I tried everything to fix it but to no avail.

1) During graphical install of BCM43142 using ‘Driver Manager‘, I run into this every time:

pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)

2) Tried running: dpkg —configure -a

Code: Select all

Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up broadcom-sta-dkms (6.30.223.271-12) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...

-------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.8.0-7630-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 6.30.223.271
completely from the DKMS tree.
------------------------------
Done.
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 5.8.0-7630-generic
Building initial module for 5.8.0-7630-generic
Done.

wl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-7630-generic/updates/dkms/

depmod...

Backing up initrd.img-5.8.0-7630-generic to /boot/initrd.img-5.8.0-7630-generic.old-dkms
Making new initrd.img-5.8.0-7630-generic
(If next boot fails, revert to initrd.img-5.8.0-7630-generic.old-dkms image)
update-initramfs...........(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.8.0-7630-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.8.0-7630-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

update-initramfs...........(bad exit status: 1)
Warning: There was a problem remaking your initrd.  You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (--configure):
 installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 7
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...

------------------------------
Deleting module version: 6.30.223.271+bdcom
completely from the DKMS tree.
------------------------------
Done.
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-7630-generic
Building for architecture x86_64
Building initial module for 5.8.0-7630-generic
Error! Bad return status for module build on kernel: 5.8.0-7630-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
dpkg: error processing package bcmwl-kernel-source (--configure):
 installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-7630-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=c754d0e6-74e5-476b-aa10-d6afb650939b)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block 
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.8.0-7630-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 broadcom-sta-dkms
 bcmwl-kernel-source
 initramfs-tools

3) Tried: Autoremove, purge autoremove, autoclean, get update and finally apt-get upgrade
Output of sudo apt-get upgrade:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-7630-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=c754d0e6-74e5-476b-aa10-d6afb650939b)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block 
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.8.0-7630-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

4) I also tried: sudo apt install broadcom-sta-dkms
Output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,205 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 476229 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.271-12_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-12) ...
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up broadcom-sta-dkms (6.30.223.271-12) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 5.8.0-7630-generic
Building initial module for 5.8.0-7630-generic
Done.

wl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-7630-generic/updates/dkms/

depmod......

Backing up initrd.img-5.8.0-7630-generic to /boot/initrd.img-5.8.0-7630-generic.
old-dkms
Making new initrd.img-5.8.0-7630-generic
(If next boot fails, revert to initrd.img-5.8.0-7630-generic.old-dkms image)
update-initramfs...........(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.8.0-7630-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.8.0-7630-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

update-initramfs...........(bad exit status: 1)
Warning: There was a problem remaking your initrd.  You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (--configure):
 installed broadcom-sta-dkms package post-installation script subprocess returne
d error exit status 7
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-7630-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=c754d0e6-74e5-476b-aa10-d6afb650939b)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block 
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.8.0-7630-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 broadcom-sta-dkms
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

5) Finally, I tried installing initramfs-tools itself.

Output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
initramfs-tools is already the newest version (0.136ubuntu6.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up broadcom-sta-dkms (6.30.223.271-12) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...

-------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.8.0-7630-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 6.30.223.271
completely from the DKMS tree.
------------------------------
Done.
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 5.8.0-7630-generic
Building initial module for 5.8.0-7630-generic
Done.

wl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-7630-generic/updates/dkms/

depmod...

Backing up initrd.img-5.8.0-7630-generic to /boot/initrd.img-5.8.0-7630-generic.
old-dkms
Making new initrd.img-5.8.0-7630-generic
(If next boot fails, revert to initrd.img-5.8.0-7630-generic.old-dkms image)
update-initramfs...........(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  5.8.0-7630-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.8.0-7630-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

update-initramfs...........(bad exit status: 1)
Warning: There was a problem remaking your initrd.  You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (--configure):
 installed broadcom-sta-dkms package post-installation script subprocess returne
d error exit status 7
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...

------------------------------
Deleting module version: 6.30.223.271+bdcom
completely from the DKMS tree.
------------------------------
Done.
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-7630-generic
Building for architecture x86_64
Building initial module for 5.8.0-7630-generic
Error! Bad return status for module build on kernel: 5.8.0-7630-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more informati
on.
dpkg: error processing package bcmwl-kernel-source (--configure):
 installed bcmwl-kernel-source package post-installation script subprocess retur
ned error exit status 10
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-7630-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=c754d0e6-74e5-476b-aa10-d6afb650939b)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block 
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.8.0-7630-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 broadcom-sta-dkms
 bcmwl-kernel-source
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

6) Output of «inxi -Fxxxrz» is as below:

Code: Select all

System:
  Kernel: 5.8.0-7630-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 4.6.7 info: plank wm: muffin 4.6.3 dm: LightDM 1.30.0 
  Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Portable System: Dell product: Inspiron 3543 v: A13 serial: <filter> 
  Chassis: type: 8 serial: <filter> 
  Mobo: Dell model: 04XW3R v: A00 serial: <filter> UEFI [Legacy]: Dell 
  v: A13 date: 09/02/2020 
Battery:
  ID-1: BAT0 charge: 47.0 Wh condition: 48.4/48.8 Wh (99%) volts: 12.5/11.1 
  model: SANYO DELL 6HY5932 type: Unknown serial: <filter> status: Charging 
CPU:
  Topology: Dual Core model: Intel Core i5-5200U bits: 64 type: MT MCP 
  arch: Broadwell rev: 4 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 17559 
  Speed: 2494 MHz min/max: 500/2700 MHz Core speeds (MHz): 1: 2494 2: 2515 
  3: 2494 4: 2497 
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:1616 
  Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 
  620M/625M/630M/720M] 
  vendor: Dell driver: N/A bus ID: 08:00.0 chip ID: 10de:1140 
  Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 20.0.8 
  direct render: Yes 
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 chip ID: 8086:160c 
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:9ca0 
  Sound Server: ALSA v: k5.8.0-7630-generic 
Network:
  Device-1: Broadcom and subsidiaries BCM43142 802.11b/g/n 
  vendor: Dell Wireless 1704 802.11n + BT 4.0 driver: bcma-pci-bridge v: N/A 
  port: 5040 bus ID: 06:00.0 chip ID: 14e4:4365 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell 
  driver: r8169 v: kernel port: 4000 bus ID: 07:00.0 chip ID: 10ec:8136 
  IF: enp7s0 state: down mac: <filter> 
  IF-ID-1: usb0 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 337.04 GiB (72.4%) 
  ID-1: /dev/sda vendor: Western Digital model: WD5000LPVX-75V0TT0 
  size: 465.76 GiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
  rev: 1A01 scheme: MBR 
Partition:
  ID-1: / size: 27.38 GiB used: 14.97 GiB (54.7%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot size: 471.7 MiB used: 392.4 MiB (83.2%) fs: ext2 
  dev: /dev/sda1 
  ID-3: /home size: 422.05 GiB used: 160.85 GiB (38.1%) fs: ext4 
  dev: /dev/sda4 
  ID-4: swap-1 size: 7.54 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 66.0 C mobo: 56.0 C 
  Fan Speeds (RPM): cpu: 2326 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-focal.list 
  1: deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com ulyana main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/system76-pop-focal.list 
  1: deb http://ppa.launchpad.net/system76/pop/ubuntu focal main
Info:
  Processes: 242 Uptime: 8m Memory: 7.69 GiB used: 1.43 GiB (18.6%) 
  Init: systemd v: 245 runlevel: 5 target: graphical.target Compilers: 
  gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal 
  inxi: 3.0.38 

Any help in resolving the issue will be highly appreciated. Thank you for taking the time out to go through the issue I posted.

P.S: Tried dpkg —configure -a —force-depends as well, not fixing the issue.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Good day

Earlier today, I had a VirtualBox update, which I proceeded to install:

granwille@granwille-PC:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  cups-bsd keditbookmarks kinit libexiv2-14 libkf5bookmarks-data libkf5bookmarks5 libkf5js5 libkf5jsapi5
  libkf5kexiv2-15.0.0 libkf5kiogui5 libkf5parts-data libkf5parts-plugins libkf5parts5 libkf5pty-data libkf5pty5
  libkf5threadweaver5 libokular5core8 libpoppler-qt5-1 libqca-qt5-2 libqca-qt5-2-plugins libqmobipocket2
  libspectre1 linux-compiler-gcc-8-x86 linux-headers-5.3.0-3-amd64 linux-headers-5.3.0-3-common linux-headers-amd64
  linux-image-unsigned-5.3.0-42-generic linux-kbuild-5.3 linux-modules-5.3.0-42-generic org.kde.okular
The following packages will be upgraded:
  virtualbox-6.1
1 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 133 MB of archives.
After this operation, 167 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

However, after doing so, I got an error related to DKMS:

granwille@granwille-PC:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-headers-5.10.5-amd64-desktop+
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-unsigned-5.3.0-42-generic (5.3.0-42.34) ...
Setting up linux-headers-5.3.0-3-amd64 (5.3.15-6apricot) ...
/etc/kernel/header_postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-5.3.0-3-amd64.postinst line 11.
dpkg: error processing package linux-headers-5.3.0-3-amd64 (--configure):
 installed linux-headers-5.3.0-3-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-5.3.0-3-amd64 (= 5.3.15-6apricot); however:
  Package linux-headers-5.3.0-3-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-unsigned-5.3.0-42-generic (5.3.0-42.34) ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-unsigned-5.3.0-42-generic (--configure):
 installed linux-image-unsigned-5.3.0-42-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-headers-5.3.0-3-amd64
 linux-headers-amd64
 linux-image-unsigned-5.3.0-42-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
granwille@granwille-PC:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-5.10.5-amd64-desktop+
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 51.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 275203 files and directories currently installed.)
Removing linux-headers-5.10.5-amd64-desktop+ (5.10.5-amd64-desktop+-1) ...
dpkg: warning: while removing linux-headers-5.10.5-amd64-desktop+, directory '/lib/modules/5.10.5-amd64-desktop+' not empty so not removed
Setting up linux-image-unsigned-5.3.0-42-generic (5.3.0-42.34) ...
Setting up linux-headers-5.3.0-3-amd64 (5.3.15-6apricot) ...
/etc/kernel/header_postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-5.3.0-3-amd64.postinst line 11.
dpkg: error processing package linux-headers-5.3.0-3-amd64 (--configure):
 installed linux-headers-5.3.0-3-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-5.3.0-3-amd64 (= 5.3.15-6apricot); however:
  Package linux-headers-5.3.0-3-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-unsigned-5.3.0-42-generic (5.3.0-42.34) ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-unsigned-5.3.0-42-generic (--configure):
 installed linux-image-unsigned-5.3.0-42-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-headers-5.3.0-3-amd64
 linux-headers-amd64
 linux-image-unsigned-5.3.0-42-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

With no luck, I played around a little and decided to remove the `/var/lib/dkms/bbswitch/0.8` directory and now when I run `—fix-broken install` I now get this error:

granwille@granwille-PC:/var/lib/dkms/bbswitch$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up ndiswrapper-dkms (1.60-8) ...
Removing old ndiswrapper-1.60 DKMS files...

------------------------------
Deleting module version: 1.60
completely from the DKMS tree.
------------------------------
Done.
Loading new ndiswrapper-1.60 DKMS files...
Building for 5.7.7-amd64-desktop
Building initial module for 5.7.7-amd64-desktop
Error! Bad return status for module build on kernel: 5.7.7-amd64-desktop (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.
dpkg: error processing package ndiswrapper-dkms (--configure):
 installed ndiswrapper-dkms package post-installation script subprocess returned error exit status 10
Setting up anbox-modules-dkms (13-1) ...
Removing old anbox-1 DKMS files...

------------------------------
Deleting module version: 1
completely from the DKMS tree.
------------------------------
Done.
Loading new anbox-1 DKMS files...
Building for 5.7.7-amd64-desktop
Building initial module for 5.7.7-amd64-desktop
Error! Bad return status for module build on kernel: 5.7.7-amd64-desktop (x86_64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
dpkg: error processing package anbox-modules-dkms (--configure):
 installed anbox-modules-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 ndiswrapper-dkms
 anbox-modules-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can someone please help me, I do not understand what DKMS is and why this issue is happening. What can I do to solve the problem? Any help will be appreciated, please?

Как правильно задавать вопросы

Правильно сформулированный вопрос и его грамотное оформление способствует высокой вероятности получения достаточно содержательного и по существу ответа. Общая рекомендация по составлению тем: 1. Для начала воспользуйтесь поиском форума. 2. Укажите версию ОС вместе с разрядностью. Пример: LM 19.3 x64, LM Sarah x32 3. DE. Если вопрос касается двух, то через запятую. (xfce, KDE, cinnamon, mate) 4. Какое железо. (достаточно вывод inxi -Fxz в спойлере (как пользоваться спойлером смотрим здесь)) или же дать ссылку на hw-probe 5. Суть. Желательно с выводом консоли, логами. 6. Скрин. Просьба указывать 2, 3 и 4 независимо от того, имеет ли это отношение к вопросу или нет. Так же не забываем об общих правилах Как пример вот

Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

20 апр 2021, 15:30

LM 19 MATE Х64
dpkg: ошибка при обработке пакета grub-pc (—configure):
installed grub-pc package post-installation script subprocess returned error exit status 10
При обработке следующих пакетов произошли ошибки:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Подскажите,кроме отката есть решение проблемы?

Решение r33 » 21 апр 2021, 16:24


rogoznik писал(а): ↑

21 апр 2021, 06:45

r33 писал(а): ↑

20 апр 2021, 22:53


Зашёл под админом, но всё равно пишет недостаточно прав.

Куда зашел? Под каким админом? Тебе команду дали, нужно было скопировать, вставить в терминал и нажать enter.

Я думал вручную нужно переименовать…..Сделал как нужно, ошибка ушла. Спасибо.


Перейти к ответу ➙


Аватара пользователя

Chocobo

Сообщения: 9954
Зарегистрирован: 27 авг 2016, 22:57
Решено: 214
Откуда: НН
Благодарил (а): 795 раз
Поблагодарили: 2980 раз
Контактная информация:

Ошибка grub-pc

#2

20 апр 2021, 15:59

r33, Во время какой операции проявилась эта ошибка?
Что ставил или перенастраивал в тот момент?)

Изображение

   

Изображение


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#3

20 апр 2021, 16:09

Chocobo писал(а): ↑

20 апр 2021, 15:59


r33, Во время какой операции проявилась эта ошибка?
Что ставил или перенастраивал в тот момент?)

Долго не пользовался ноутом, решил откатиться до точки восстановления(systemback),т.к нельзя было свернуть работающую программу. Система загружается нормально. А после ввода
sudo apt-get update && apt-get autoremove && apt-get upgrade && apt-get install -f && aptitude purge ~c && apt-get dist-upgrade —fix-missing
обнаружил эту ошибку.


Аватара пользователя

Chocobo

Сообщения: 9954
Зарегистрирован: 27 авг 2016, 22:57
Решено: 214
Откуда: НН
Благодарил (а): 795 раз
Поблагодарили: 2980 раз
Контактная информация:

Ошибка grub-pc

#4

20 апр 2021, 16:18

r33, Покажи что выдает apt install -f например

Изображение

   

Изображение


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#5

20 апр 2021, 16:24

Chocobo писал(а): ↑

20 апр 2021, 16:18


r33, Покажи что выдает apt install -f например

Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Установлено или удалено не до конца 1 пакетов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
Настраивается пакет grub-pc (2.02-2ubuntu8.21) …
dpkg: ошибка при обработке пакета grub-pc (—configure):
installed grub-pc package post-installation script subprocess returned error exit status 10
При обработке следующих пакетов произошли ошибки:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)


Аватара пользователя

Chocobo

Сообщения: 9954
Зарегистрирован: 27 авг 2016, 22:57
Решено: 214
Откуда: НН
Благодарил (а): 795 раз
Поблагодарили: 2980 раз
Контактная информация:

Ошибка grub-pc

#6

20 апр 2021, 16:29

r33, можно попробовать sudo dpkg-reconfigure grub-pc

Ну или если не поможет, просто переустановить сам битый пакет. Удалить и поставить обратно.

Изображение

   

Изображение


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#8

20 апр 2021, 22:19

Chocobo писал(а): ↑

20 апр 2021, 16:29


r33, можно попробовать sudo dpkg-reconfigure grub-pc

Ну или если не поможет, просто переустановить сам битый пакет. Удалить и поставить обратно.

sudo dpkg-reconfigure grub-pc
/usr/sbin/dpkg-reconfigure: Пакет grub-pc сломан или установлен не полностью
Попробую переустановить.


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#9

20 апр 2021, 22:21

Переустановка не получается: E: Internal Error, No file name for grub-pc:amd64


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#10

20 апр 2021, 22:25

Chocobo писал(а): ↑

20 апр 2021, 16:29


r33, можно попробовать sudo dpkg-reconfigure grub-pc

Ну или если не поможет, просто переустановить сам битый пакет. Удалить и поставить обратно.

Удалил, поставил обратно-ошибку ту же выдаёт. А если выбрать полное удаление?


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#11

20 апр 2021, 22:36

Chocobo писал(а): ↑

20 апр 2021, 16:38

переименовать

На что переименовать? Добавить buggy?

Последний раз редактировалось пользователем 1 r33; всего редактировалось раз: 20


Аватара пользователя

Chocobo

Сообщения: 9954
Зарегистрирован: 27 авг 2016, 22:57
Решено: 214
Откуда: НН
Благодарил (а): 795 раз
Поблагодарили: 2980 раз
Контактная информация:

Ошибка grub-pc

#12

20 апр 2021, 22:37

r33 писал(а): ↑

20 апр 2021, 22:36


На что переименовать?

на что угодно, главное чтоб не подцепился. например
sudo mv /var/lib/dpkg/info/grub-pc.postinst /var/lib/dpkg/info/grub-pc.postinst.old

Изображение

   

Изображение


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#13

20 апр 2021, 22:53

Chocobo писал(а): ↑

20 апр 2021, 22:37

r33 писал(а): ↑

20 апр 2021, 22:36


На что переименовать?

на что угодно, главное чтоб не подцепился. например
sudo mv /var/lib/dpkg/info/grub-pc.postinst /var/lib/dpkg/info/grub-pc.postinst.old

Зашёл под админом, но всё равно пишет недостаточно прав.


Аватара пользователя

rogoznik

Сообщения: 9443
Зарегистрирован: 27 июн 2017, 13:36
Решено: 119
Откуда: Нижний Тагил
Благодарил (а): 716 раз
Поблагодарили: 1816 раз
Контактная информация:

Birthday

Ошибка grub-pc

#14

21 апр 2021, 06:45

r33 писал(а): ↑

20 апр 2021, 22:53


Зашёл под админом, но всё равно пишет недостаточно прав.

Куда зашел? Под каким админом? Тебе команду дали, нужно было скопировать, вставить в терминал и нажать enter.

Изображение

Изображение


Аватара пользователя

r33

Сообщения: 148
Зарегистрирован: 05 июн 2018, 15:49
Решено: 2
Благодарил (а): 15 раз
Контактная информация:

Ошибка grub-pc

#15

21 апр 2021, 16:24

rogoznik писал(а): ↑

21 апр 2021, 06:45

r33 писал(а): ↑

20 апр 2021, 22:53


Зашёл под админом, но всё равно пишет недостаточно прав.

Куда зашел? Под каким админом? Тебе команду дали, нужно было скопировать, вставить в терминал и нажать enter.

Я думал вручную нужно переименовать…..Сделал как нужно, ошибка ушла. Спасибо.


Аватара пользователя

Whowka

Сообщения: 1899
Зарегистрирован: 20 июл 2018, 19:50
Решено: 13
Откуда: Питер
Благодарил (а): 777 раз
Поблагодарили: 945 раз

Ошибка grub-pc

#16

21 апр 2021, 16:43

:close:


Вернуться в «Иные системные ошибки»


Перейти

  • Новости
  • ↳   Новости Linux Mint
  • ↳   Другие новости
  • Документация, FaQ и Видеоматериалы
  • ↳   Руководства
  • ↳   Руководство пользователя LM 18 Cinnamon
  • ↳   Видеоматериалы
  • ↳   Вопрос новичка и FaQ
  • Установка, настройка, оптимизация
  • ↳   Установка Linux Mint
  • ↳   Загрузка системы, бэкапы и восстановление
  • ↳   Параметры и оптимизация
  • ↳   Иные системные ошибки
  • ↳   Неофициальные сборки
  • ↳   Общие вопросы по системе
  • Дистрибутивы
  • ↳   Linux Mint
  • ↳   Cinnamon
  • ↳   Mate
  • ↳   Xfce
  • ↳   KDE
  • ↳   Другие среды рабочего стола
  • ↳   LMDE
  • Программное обеспечение
  • ↳   Мультимедиа
  • ↳   Офис и документы
  • ↳   Системные утилиты
  • ↳   Консольные плюшки
  • ↳   Программирование, скриптинг, виртуализация
  • ↳   Работа с сетью
  • ↳   Безопасность
  • ↳   Wine
  • ↳   Игры
  • ↳   Иное программное обеспечение
  • Поддержка железа
  • ↳   Видеокарты
  • ↳   Звуковые карты
  • ↳   Принтеры, Сканеры, МФУ
  • ↳   Жесткие диски, SSD, Flash-накопители, разделы на них
  • ↳   Сетевые карты, модемы, Wi-Fi, bluetooth
  • ↳   Прочие устройства
  • Другие дистрибутивы
  • ↳   Deb-based [Debian / Neon / Ubuntu]
  • ↳   Arch-based [Arch / Manjaro / Antegros]
  • ↳   Rpm-based [Suse / Fedora / CentOS]
  • ↳   Прочие [Gentoo/Slackware/*BSD]
  • Разное
  • ↳   Болталка: Оффтоп, разбор полетов
  • ↳   Песочница
  • ↳   Корзина

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 0 гостей

Понравилась статья? Поделить с друзьями:
  • Installed amdgpu dkms package post installation script subprocess returned error exit status 10
  • Installed addons can cause problems or crashes anomaly как исправить
  • Installation success or error status 1603
  • Installation script error kaspersky
  • Installation path is too long forza horizon 5 как исправить