Installed libc bin package post installation script subprocess returned error exit status 135

[SOLVED]openmediavault package post-installation script subprocess error I’ve upgraded OMV according to ryecoaarons post although I hadn’t any (extra) plugins installed at all and run into the following error: First, with omv-extras installed as the update instructions suggest I’ve got these errors during apt operations: As I’ve also just got a blank page after logging […]

Содержание

  1. [SOLVED]openmediavault package post-installation script subprocess error
  2. Joe Foster May 6th 2020
  3. Joe Foster May 6th 2020
  4. Linux Mint Forums
  5. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  6. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  7. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  8. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  9. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  10. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  11. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  12. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  13. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  14. Re: Update problem: » . . . 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. «Post-installation script subprocess returned error» on Ubuntu 18.04 #733
  22. Comments
  23. Как решить ошибку “sub process usr bin dpkg returned an error code 1″ в Ubuntu
  24. Решение проблемы Sub-process /usr/bin/dpkg returned an error code (1)
  25. Способ 1: переконфигурировать базу данных пакетов
  26. Способ 2: Использовать принудительную установку
  27. Способ 3. Попробуйте удалить проблемный пакет.
  28. Способ 4. Удалите информационные файлы с информацией о проблемном пакете

[SOLVED]openmediavault package post-installation script subprocess error

I’ve upgraded OMV according to ryecoaarons post although I hadn’t any (extra) plugins installed at all and run into the following error:

First, with omv-extras installed as the update instructions suggest I’ve got these errors during apt operations:

As I’ve also just got a blank page after logging on to OMV I’ve also tried fixing the /var/lib/php/sessions permissions according to hugns post

and also checked my PHP version according to votdevs post and also reinstalled the package.

Unfortunately nothing helped to get the GUI running. Tested in three different browsers.

SMB and SSH access both worked. So I called it a day.

After powering up today at least the GUIs working again(maybe due to executing apt autoremove ), though the apt errors persist.

So I tried getting rid of omv-extras via GUI at first and just getting an error from openmediavault package now

I was wondering if omv-extras got removed correctly as it still shows up in the GUI and throws an error when i try to access it

dpkg -l | grep openmediavault also still lists the package

Purging the package is not possible as it doesn’t seem to be available.

I’m looking for a way to fix the «openmediavault package post-installation script subprocess returned error exit status 1» error

and reinstalling omv-extras. The system was initially installed with OMV 3 if that’s important to know.

I had the exact same problem after upgrading from 4.x to 5.x the way you did. The problem was in fact in the post-install script, a line couldn’t execute properly.

I was able to solve it by opening the post-install script (openmediavault.postinst) in /var/lib/dpkg/info with a text editor, finding the faulty line in the script and commenting it. When I ran apt-get upgrade again, no error showed up and the package was installed correctly. Then I ran the commented line which didn’t return any error. For me, the problematic line in he script was the following : «omv-salt deploy run —quiet collectd chrony postfix». Don’t know why it was failing and didn’t look out why it was failing though.

After that, everything was working fine and I could install omv-extras without any probem. Don’t have any problem in GUI or whith sstem in general.

Hope that this can help you !

Joe Foster May 6th 2020

thanks a lot for sharing this knowledge!

After commenting the line in the post-install script you mentioned apt-get update succeeded without any errors.

I haven’t tried installing omv-extras yet, but I don’t think this will cause any troubles.

Joe Foster May 6th 2020

I got the same issue on a ARM-based hosted server (OVH ARM-2T).

My solution was to run «omv-salt deploy run —quiet collectd chrony postfix» without the «—quiet» option

I could see that chrony was the culprit, and it needed a configuration update on my system. See Chronyd fails to start service (chronyd[4458]: Fatal error : Failed to load seccomp rules) — General — openmediavault

After that fix, post-install script of openmediavault went smoothly.

I had the exact same problem after upgrading from 4.x to 5.x the way you did. The problem was in fact in the post-install script, a line couldn’t execute properly.

I was able to solve it by opening the post-install script (openmediavault.postinst) in /var/lib/dpkg/info with a text editor, finding the faulty line in the script and commenting it. When I ran apt-get upgrade again, no error showed up and the package was installed correctly. Then I ran the commented line which didn’t return any error. For me, the problematic line in he script was the following : «omv-salt deploy run —quiet collectd chrony postfix». Don’t know why it was failing and didn’t look out why it was failing though.

After that, everything was working fine and I could install omv-extras without any probem. Don’t have any problem in GUI or whith sstem in general.

Hope that this can help you !

This solved my problem too, except it was «omv-salt deploy run —no-color —quiet apt cronapt» which failed in the script. So I did like Aiki, commened the line and ran it manually.

Hardware:
Chassis: Fractal Design Node 304
Board: ASROCK Z87E-ITX
CPU: Intel Core i5-4670T
CPU Cooler Noctua NH-U12S
System storage: 30GB — Kingston SMS200S3/30G
Data storage: 4 x 4TB — WD Red WD40EFRX 4TB
RAM: 16GB
Ethernet Adapter TP-Link TG-3468 (PCIe)

Источник

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

Источник

«Post-installation script subprocess returned error» on Ubuntu 18.04 #733

Do you want to request a feature or report a bug?
bug
What is the current behavior?
software update fails with an error
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
I have an Ubuntu 18.04 server, with an onlyoffice 5.4.1-39. When I try to upgrade it to the next version (5.4.2-46), via APT, I get an error:

When I try to configure it:

What is the expected behavior?
updating without any problem

Did this work in previous versions of DocumentServer?
I had the same problem earlier

DocumentServer version:
olnyoffice 5.4.1-39. upgrade to 5.4.2-46

Operating System:
Ubuntu 18.04 server (up to date)

The text was updated successfully, but these errors were encountered:

@joskapista44 Hi, please make sure that Postgresql, rabbitmq and redis are started and working correctly (no errors in logs)

Hey ShockwaveNN, thanks for the tip.
So before I try the upgrade all of them looks fine. I could find only a minor log entry in the Postgresql log:
«2020-01-07 10:42:55.268 UTC 11551 [unknown] [unknown] LOG: incomplete startup packet»
I tried to find any solution to resolve it, but read everywhere it’s harmless: «this message is printed in the log if a client makes a TCP connection to the PG server, but sends no traffic». I’m not a professional but I don’t think this is the source of the problem.

@joskapista44 Try to run bash /var/lib/dpkg/info/onlyoffice-documentserver.postinst

I run it and got this:
Use of uninitialized value $action in string eq at /usr/share/debconf/frontend line 27.
postinst called with unknown argument $1

These are the first few rows of the frontend, I did not change anything:

1 #!/usr/bin/perl -w
2 # This file was preprocessed, do not edit!
3
4
5 use strict;
6 use Debconf::Db;
7 use Debconf::Template;
8 use Debconf::AutoSelect qw(:all);
9 use Debconf::Log qw(:all);
10
11 Debconf::Db->load;
12
13 debug developer => «frontend started»;
14
15 my $frontend=make_frontend();
16
17 shift @argv if $ARGV[0] eq ‘—‘;
18
19 my $package;
20 my $no_title=0;
21 if ($ENV) <
22 $package=$ENV;
23 >
24 elsif ($ARGV[0]=

m!^./(.?).(?:postinst|postrm|prerm)$!) <
25 $package=$1;
26 my $action=$ARGV[1];
27 $no_title=1 if $action eq ‘triggered’;
28 >
29

Источник

Как решить ошибку “sub process usr bin dpkg returned an error code 1″ в Ubuntu

Если вы столкнулись с ошибкой с «sub process usr bin dpkg returned an error code 1» при установке программного обеспечения на Ubuntu Linux, вот как вы можете это исправить.

Одной из распространенных проблем в Ubuntu и других дистрибутивах на основе Debian являются ломанные пакеты.

Вы пытаетесь обновить систему или установить новый пакет, и столкиваеиесь с такой ошибкой, как «Sub-process /usr/bin/dpkg returned an error code 1.

Вот что случилось на днях.

Я пытался установить радио приложение на Ubuntu, и система вернула мне эту ошибку:

Здесь важны последние три строки:

Это говорит мне, что пакет полярная polar-bookshelf является причиной . Это может иметь решающее значение для устранения этой ошибки.

Решение проблемы Sub-process /usr/bin/dpkg returned an error code (1)

Попробуем исправить этот сломанный пакет.

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

Они простые в использовании и просто без проблем осуществимы.

Вы должны попытаться запустить sudo apt update, а затем попытаться установить новый пакет или обновиться после каждого из описанных здесь методов.

Способ 1: переконфигурировать базу данных пакетов

Первый метод, который вы можете попробовать, – перенастроить базу данных пакетов.

Вероятно, база данных повреждена при установке пакета.

Реконфигурация часто устраняет проблему.

Способ 2: Использовать принудительную установку

Если установка ранее прервалась, вы можете попробовать установить пакет принудительно:

Способ 3. Попробуйте удалить проблемный пакет.

Способ 4. Удалите информационные файлы с информацией о проблемном пакете

Это должно быть вашим последним прибежищем.

Вы можете попробовать удалить файлы, связанные с пакетом, из /var/lib/dpkg/info.

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

В моем случае у меня была проблема с polar-bookhelof.

Источник

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Cannot Set Up Wifi or Update Kernel

I’m a Linux newbie setting up a PC for my students. The PC is a Dell Latitude D630, 32 bit. It came with Win XP, was upgraded to Win7, and crashed when I tried to clean it up. It wouldn’t take Widows again, but I was able to install Linux Mint Tricia (32 bit.)

I can only access the internet with a cable, but the students use wifi through their phones at home, so it needs the wifi operational. I am following this guide: https://www.unixmen.com/how-to-get-wifi … x-mint-19/. I get the same error message both when I try to update the kernel (Step 2) and when I try to install the wifi through the command line (Step 3):

Bus error (core dumped)
dpkg: error processing package libc-bin (—configure) :
installed libc-bin package post-installation script subprocess returned exit status 135
Errors were encountered while procssing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Do I need to burn a new Linux disk? I’m running out of ideas. Thank you.

[I tried to load a screen shot of the error code, but kept getting a message that the file was too large? Even when I cropped it down to 436 kb? Could someone point me to the attachment limits, please? Thanks.]

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

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

sleeper12

Level 20
Level 20
Posts: 11632
Joined: Thu May 25, 2017 3:22 pm

Re: Cannot Set Up Wifi or Update Kernel

Post

by sleeper12 » Tue Apr 06, 2021 8:54 pm

On a machine that old, you should try Mint 19.2 Xfce 32 bit. Test it before you install it to see if wifi works for you. 19.2 has the older 4.15 kernel (better on older hardware), whereas 19.3 has the unsupported 5.0 kernel.

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Fri Apr 09, 2021 9:35 am

Thank you, Sleeper12.

I have Xfce running in the machine from a live disk now and I seem to be hitting the same problem.

The wireless card is broadcom bcm94311mcg. I somehow got to this page while looking for help: https://help.ubuntu.com/community/WifiD … er/bcm43xx

I used these commands to retrieve the driver with an ethernet connection:
sudo apt-get update
sudo apt-get —reinstall install bcmwl-kernel-source

This seemed to run fine.

Then I ran the test command
sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma

And received:
modprobe: FATAL: module ssb is in use

The command sudo modprobe wl gave no response.

Ugh. I’d really appreciate any help. The students I’m rehabilitating this machine for use a cell phone for their data. I work in Thailand and I don’t think they even have a wired option where they live. If possible, I will stop into a shop tomorrow and see if they have any USB Wifi adapters, which was recommended as a last resort.

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Fri Apr 09, 2021 10:12 pm

Thank you for the fast replies!

This machine lists the card as a BRCM94311MCG (with an R between B&C) on the back (but see below). I haven’t opened it to confirm, and I’m reluctant to do so. The parents are somewhere between thinking I’m a tech genius for reviving the machine and an idiot because it crashed shortly after I installed software on the old Widows drive to clean it.

As far as distro, Mint is the only one I’ve used. I like it a lot, but I’ll put anything on this machine to get it working.

I’m typing in the network info from the inxi command. Please let me know if you need the whole file.

Network:
Device-1: Broadcom and subsidiaries NetXtreme BCM5755M Gigabit Ethernet PCI Express
Vendor: Dell driver: tg3 v: 3.137 port: 10c0 bus ID: 09:00.0 chip ID: 14e4:4311
Device-2: Broadcom and subsidiaries BCM4311 802.11b/g WLAN
Vendor: Dell Wireless 1390 driver b43-pci-bridge v: N/A port: 10c0 bus ID: 0c:00.0 chip ID: 14e4:4311
.
.
.
0: dell-wifi: Wireless Lan
Soft blocked: no
Hard blocked: no
1: dell-bluetooth: Bluetooth
soft blocked: yes
hard blocked: no
enp9s0: no wireless extensions.

lo no wireless extensions.

EFI variables are not supported on this system

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Sat Apr 10, 2021 3:00 am

I ran that reinstall command on 19.2 and rebooted. There was no change.

I then ran the command on the 19.3 and received the earlier error:

Bus error (core dumped)
dpkg: error processing package libc-bin (—configure):
installed libc-bin package post-installation script subprocess returned error exit status 135
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned and error code (1)

I feel like I’m running around in circles. Is it possible that the Wifi card went bad?

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Sat Apr 10, 2021 5:52 am

Hi,

Yes, it’s certainly possible that the wifi card is bad.. any hardware can develop faults. Unfortunately it’s a fact of life..

The problem is this… is the card faulty, some other hardware faulty or is the problem caused by software. i.e. incorrect drivers/ missing firmware etc.

Some of the earlier Broadcom wifi chipsets are/were slightly «problematic» to get working in Linux. Some even caused trouble in Windows.. I remember some cards wouldn’t work at all as Windows 7 had mis-identified the chipset. The installation of the Broadcom drivers fixed this. I’ve got some older Realtek cards that work very poorly in Windows 7 but perfectly fine in Linux.

I’d guess that your hardware is O.K. and you have driver problems.
I’ve located a card which seems to be the same as yours.. If you wish, I’ll ask for it to be sent here and I’ll have a look for you.

As a «workaround» for now, you could either use a USB wifi dongle or you could use (if you have access to one) a wifi router.
Here, you can use the lan ports as a network switch (you ignore the WAN side, if it’s not an ethernet port). The wifi is then used as a wifi access point.

If you want to change the wifi card for a different one, then there are two things that you need to check:
Does your system «Bios lock» any wifi cards? . Some HP laptops only allow certain «approved» cards to be used..
Any replacement card will need to be a «full height» card.. unless you can source an adapter plate. e.g. https://www.ebay.co.uk/itm/143729673206 … b38ae7b12

Bodge99

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Sun Apr 11, 2021 2:04 am

(Sorry for abbreviated message. I’m starting a class in 2 min. ..)

I bought a USB Wifi dongle last night. I’m getting the same errors as with the Wifi card:

dpkg: error processing package locales (—configure)

also, repeated errors that the i386 file (or is it a library?) is missing. I looked up how to reinstall it, but keep getting similar errors to before (the Bus error . . . . exit status 135 . . . )

Also,

E: Internal Error, nor file name for libc-bin:i386

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Sun Apr 11, 2021 4:45 am

There is another peculiarity that I’ve found which may be related:

When I go to the Software Manager, I cannot install any programs that require downloading additional programs. It will ask to download the additional packages, but it does not install the additional packages or the programs.

@Bodge99,
I appreciate your patience and willingness to walk through the logic of the problem with me.

My gut feels that it’s probably a software issue.

I’ve thought about making another ISO, but both the 19.3 Cinnamon and 19.2 Xfce disks are giving the same errors. Maybe I should try a much earlier version?

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Sun Apr 11, 2021 5:36 am

Hi,
Is this your laptop?? https://www.8bitmammoth.com/linux-mint- … nd-review/
I realise that the wifi card is different..
If so, then I’ll use the images from this site to see if I can locate one for testing purposes. I’ve asked one of my contacts to send me one of his spare BCM94311MCG cards (these are pulls from scrapped laptops).

Just for confirmation purposes.. I’ve found a test report for a BRCM94311MCG wifi card.. It is recognised as a BCM94311MCG within the test system.
I mention this because some Broadcom wifi chips have very similar names, but require different drivers and/or setup.

More later.

Bodge99

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Sun Apr 11, 2021 5:41 am

Hi,

Re: Cannot install packages that require anything to be downloaded..
Does this still happen if you boot from a Live Mint flashdrive? Is your ethernet is working properly at this time?
Does the laptop have a wifi on/off switch?

Bodge99

sleeper12

Level 20
Level 20
Posts: 11632
Joined: Thu May 25, 2017 3:22 pm

Re: Cannot Set Up Wifi or Update Kernel

Post

by sleeper12 » Sun Apr 11, 2021 2:29 pm

Try this, one line at a time:

Code: Select all

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install --reinstall libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/ 

Reboot

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Tue Apr 13, 2021 4:39 pm

Hi,

The BRCM94311MCG wifi card arrived this morning.. I fitted it to an old netbook and installed Mint 19.3 Xfce 32-bit edition.
I installed Mint (Initially not updated) to the netbook. I then made a partition copy so that I could return the machine to a known state quickly.

Round 1: Fully updated the installation and started investigations. I was «lead up the garden path» by following some info from a few quite old posts..
I obtained some Windows XP drivers that were supposed to support this card, installed them into an XP installation in a VM so that I could see how Windows XP handles things. Long story short.. Wrong drivers for this card… incompatible firmware.
I then dug out some old notes which covered the troubles that I had with Broadcom chipsets a few years ago.. A little help, but hopelessly outdated. Wiped & replaced Mint.

Round 2: Fully updated the installation. Further reading lead me to believe that certain legacy Broadcom firmware was required. All of the sites that I looked at for this firmware no longer existed.
I then found a site that had some pre extracted firmware.. supposedly for this card and several others (other manufacturers etc.). I installed the full package.. just to see if anything would work. «lshw» was still reporting the card as «Unclaimed» after a reboot. I then tried a series of «depmod» commands with various modules..
«depmod b43» worked!. The Wifi started working. On reboot, the «depmod b43» was needed again.. Progress! I guessed here that the b43 module was blacklisted and that no b43-legacy firmware was used.

Round 3: Replaced the installation again. I didn’t update the installation this time. I got the card working by performing the following commands:
Open a terminal and enter the following:
Comments are within braces and are not to be entered.

Code: Select all

sudo su					{Become Root}
apt install firmware-b43-installer	{Install these packages}
apt install bcmwl-kernel-source

{Force dkms to rebuild all modules for any installed kernels. A "belt & braces" approach}
ls /var/lib/initramfs-tools | xargs -n1 /usr/lib/dkms/dkms_autoinstaller start	

Now edit (as Root), /etc/modprobe.d/blacklist-bcm43.conf
Comment out the «blacklist b43» line.
i.e. Change the line

to

Reboot and test..
I’m sending this post from the netbook using the Broadcom wifi card..

I hope that this works for you.

Bodge99

EDIT: The wifi still works after performing a full system update and cold boot.

Ninpodeshi

Level 1
Level 1
Posts: 22
Joined: Fri Mar 08, 2019 4:56 am

Re: Cannot Set Up Wifi or Update Kernel

Post

by Ninpodeshi » Sun Apr 18, 2021 12:51 am

Thank you, everyone, for your help so far.

I’ve been off a few days because I had to reinstall Widows on my machine. (Ugh. I hate MS Windows, but this machine’s BIOS didn’t support my last Linux install. :oops: Anyway . . .)

I sent the laptop home with the students for a few days. I will try the suggested solutions when they come for their English lesson today. {Fingers crossed}

I also appreciate the little tips you provide, like clarifying to enter commands one line at a time or giving extra info in {braces}.
Thank you very much.

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Sun Apr 18, 2021 4:30 am

Hi,

One further tip.. If you want to use a GUI text editor to edit config files then run it using sudo, not as Root.

For Xed:

sudo xed

Good luck!

Bodge99

bodge99

Re: Cannot Set Up Wifi or Update Kernel

Post

by bodge99 » Sun Apr 18, 2021 2:45 pm

Hi,

I’ve been off a few days because I had to reinstall Widows on my machine. (Ugh. I hate MS Windows, but this machine’s BIOS didn’t support my last Linux install. :oops: Anyway . . .)

If I can ask… what was the problem you had installing Linux… I **like** a challenge!!

Bodge99

This PC (Dell Optiplex 755) is running Ubuntu 16.04. A week ago, I tried to upgrade to 18.04, but it failed with the «Aborting. Restoring Original state» message. Ever since then, Software Updater has failed, with errors like E: Internal Error, No file name for libc-bin:amd64. (Several other packages updated successfully.) It all worked perfectly before the upgrade attempt.
My most recent attempt to fix things went as follows:

$ apt-get download libc-bin
$ sudo dpkg -x libc-bin*.deb /
$ sudo apt-get install --reinstall libc-bin
Reading package lists... Done
Building dependency tree        
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 3 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for libc-bin:amd64
~$

I also tried «sudo dpkg --configure -a» based on other threads here. That also errors:

~$ sudo dpkg --configure -a
Setting up libc-bin (2.23-0ubuntu10) ...
Bus error (core dumped)
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
    libfakeroot-0.so -> libfakeroot-tcp.so
/lib/i386-linux-gnu:
Bus error (core dumped)
dpkg: error processing package libc-bin (--configure):
 subprocess installed post-installation script returned error exit status 135
Errors were encountered while processing:
 libc-bin
~$

My goal is not to upgrade to 18.04, but just to get 16.04 working again.

OptiPlex-755:~$ apt-cache policy libc-bin:amd64 libc6:i386
libc-bin:
  Installed: 2.23-0ubuntu10
  Candidate: 2.23-0ubuntu10
  Version table:
 *** 2.23-0ubuntu10 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libc6:i386:
  Installed: 2.23-0ubuntu10
  Candidate: 2.23-0ubuntu10
  Version table:
 *** 2.23-0ubuntu10 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages

OptiPlex-755:~$ dpkg -S /lib/i386-linux-gnu
libuuid1:i386, libc6:i386, libsystemd0:i386, libpng12-0:i386, libglib2.0-0:i386, libncurses5:i386, libusb-1.0-0:i386, libjson-c2:i386, libgcrypt20:i386, libcomerr2:i386, libgcc1:i386, libpcre3:i386, libselinux1:i386, libtinfo5:i386, libgpg-error0:i386, zlib1g:i386, libexpat1:i386, libdbus-1-3:i386, libudev1:i386, libssl1.0.0:i386, libbsd0:i386, libcap2:i386, libwrap0:i386, libkeyutils1:i386, liblzma5:i386: /lib/i386-linux-gnu

OptiPlex-755:~$ grep -r 86 /etc/ld.so.conf.d
/etc/ld.so.conf.d/i386-linux-gnu.conf:/lib/i386-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/lib/i386-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/lib/i686-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/lib/i686-linux-gnu
/etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu/libfakeroot
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu
OptiPlex-755:~$ 

OptiPlex-755:~$ sudo ldconfig --verbose 
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
    libfakeroot-0.so -> libfakeroot-tcp.so
/lib/i386-linux-gnu:
Bus error (core dumped)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

byroniac opened this issue

Dec 15, 2019

· 75 comments


Closed

libc-bin update error

#4760

byroniac opened this issue

Dec 15, 2019

· 75 comments

Comments

@byroniac

Please use the following bug reporting template to help produce issues which are actionable and reproducible, including all command-line steps necessary to induce the failure condition. Please fill out all the fields! Issues with missing or incomplete issue templates will be closed.

If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.

Important: Do not open GitHub issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to secure@microsoft.com. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from «C:Windowsminidump».

See our contributing instructions for assistance.

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.18363.535]

  • What you’re doing and what’s happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
    sudo apt-get update; sudo apt-get dist-upgrade

  • What’s wrong / what should be happening instead:
    libc-bin update fails with errors (maybe a Canonical problem, not sure)
    Only solution I know of at this point is to reset the app and reinstall everything into Ubuntu WSL so I can do apt-get updates in the future.

Copy paste what is on my screen:
sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
dmeventd dmsetup libdevmapper-event1.02.1 libdevmapper1.02.1 liblvm2app2.2 liblvm2cmd2.02 lvm2
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2191 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc-bin (2.27-3ubuntu1) …
Aborted (core dumped)
/sbin/ldconfig.real: Can’t stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path /lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu’ given more than once
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (—configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).

  • For WSL launch issues, please collect detailed logs.

Annotation 2019-12-14 184607

paulirwin, avinoamsn, Botvinkin, yanisallouch, 4soos, kai-ma, lyh543, flxxyz, gregolsky, rraadd88, and 6 more reacted with thumbs up emoji
danielcristian2599 reacted with thumbs down emoji

@byroniac

@sirredbeard

Are you upgrading from 16.04 or performing a routine upgrade on an existing 18.04?

@byroniac

Routine upgrade on 18.04.

@byroniac

I usually just go ahead and reset the app when I get this error (about every few weeks, roughly once a month). I decided to just wait and see if anyone had any ideas that I could look at, first. Weird thing is, it seems to have resolved itself(?) and I have no idea why. I was able to install libc-bin and a few other packages and looking at my /var/log/dpkg.log seems to confirm it. So now I feel like the boy who cried wolf, only there was a real wolf before it disappeared.
Annotation 2019-12-16 071856

@byroniac

I think a reboot is essentially «fixing» the problem, at least partially. It just cropped up in a Windows 10 VM I have (1909, 18363.535). Before the reboot I did (in a sudo -i session): «rm /var/cache/ldconfig/aux-cache» and «ldconfig». The ldconfig aborted with error. After VM reboot, I was able to do a «sudo apt-get install —reinstall libc-bin» and it complained that «W: APT had planned for dpkg to do more than it reported back (0 vs 4)» but I had also tried to install aptitude somewhere in the mix. Anyways, that reinstall of libc-bin finished successfully. So, rebooting resets or fixes something. For what it is worth, this WSL has been upgraded (wslconfig /upgrade ubuntu) but I had this problem occasionally before the upgrade process was available.

@Geker

I reboot the computer,but the problem just still there

@byroniac

This happened again to me recently, and this time, a reboot no longer fixed the issue (in this particular circumstance, I received an update for «wslu», and I believe that it is the offending package, or at least is the package where the error occurred). I was forced to reset the app and do all apt updates and customization again.

@therealkenc

Do you want to continue? [Y/n] y
Setting up libc-bin (2.27-3ubuntu1) ...
Aborted (core dumped)
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path /lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu' given more than once
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)

That fail (particularly the segfault) is all in userspace so there is (unfortunately) no WSL actionable. Standard operating procedure is doing various apt rain dances of questionable efficacy and reinstall when all else fails. Hat tip for the ubuntu forum link above.

@byroniac

I suspect this is a Canonical problem? Not sure. I wish someone could figure it out and resolve it. I for sure can’t, other than resetting the app which works great, but have to start all over again of course.

@therealkenc

I suspect this is a Canonical problem?

Probably not, narrowly speaking. I imagine the problem, educated guess, applies to any Debian based distro (ubuntu or otherwise). Whatever (scary quote) «the problem» is/was. Once a distro is hooped down at the ldconfig and libc system layer that’s a deep hole to climb out of. It is almost certainly possible to recover without resorting to a reinstall (because anything possible), but likely you would be chasing diminishing returns in the effort. Note you can get the equivalent of a reboot with a wsl.exe --shutdown if you (or anyone else) bangs on it further. You don’t need to resort to the red button. Bonne chance.

@byroniac

Thank you for that explanation. I didn’t think of that. Makes sense. I love Windows 10. I love Ubuntu. I really like the entire idea behind Ubuntu WSL, and I’d actually love it, if I wasn’t cursed with this problem (one of the few, the proud… lol). As far as I know, I’m not doing anything to cause it. I’ll try that wsl.exe —shutdown thing next time (I’d cross my fingers, but I’m not exactly hopeful).

@byroniac

Well, it just happened again, and wsl.exe —shutdown did not fix it. For what it’s worth. Why does this happen to me and almost no one else? Is no one else even trying to update their Ubuntu WSL on a regular basis? I imagine they would want to do so, for security fixes if nothing else.

@byroniac

/etc/ld.so.conf:
include /etc/ld.so.conf.d/*.conf
I’m kind of curious, because I think I got a faulty /etc/ld.so.conf this time which tripped it up. It should say something like the above, but I remember it being something different. According to dpkg -S ld.so.conf, that gets installed with the libc-bin package. Also, the /etc/ld.so.conf.d/ directory got some fakeroot file which is not there on a fresh install (after doing the sudo apt update and sudo apt full-upgrade, even). Next time it crashes, in about a month, I’ll try looking up this Github comment and seeing if it fixes it (skeptical).

@byroniac

Oops. The /etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf file came in with the fakeroot package, which I think is a dependency of python3-venv (if it matters, I also tend to have python3-pip installed). Just commenting for the historical record, in case this matters.

@abdilahrf

This fix my problem 👍 :+1 if this working for you.

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/
VarunAgw, qhadron, 0it, SeveneduS, Lyrx997, smasaber, bqhuyy, eric-fleming, jiucenglou, bbllmaster, and 242 more reacted with thumbs up emoji
linkdd, DarKcyde0, francesco1119, maikka39, realmhamdy, GrayXu, burnt-melon, FrancoisCarouge, nreh, quantcola, and 22 more reacted with thumbs down emoji
nowakkamil, nreh, DV-Marco, lucasbrenner, elabdi, ssakone, profabioalvespinto, plumstone, esking, twistypigeon, and 14 more reacted with hooray emoji
jiucenglou, dani6666, scannereyefox, olfMombach, huserman, diwu1990, nowakkamil, eduardo-g-silva, jaredforth, paul-sumlock, and 40 more reacted with heart emoji
ssakone, chajath, profabioalvespinto, jackluo923, plumstone, GuillaumeDua, esking, twistypigeon, Muttsuri, bshensky, and 6 more reacted with rocket emoji

@byroniac

Thanks! I’ve already reset my Ubuntu app so I will have to wait until it happens again, which so far is roughly every two or three weeks.

@SeashellUA

This fix my problem 👍 :+1 if this working for you.

Not in my case. I used:

sudo  dpkg --remove --force-remove-reinstreq --force-remove-essential --force-depends libc-bin
sudo dpkg --purge --force-remove-reinstreq --force-remove-essential --force-depends libc-bin
sudo mv /var/lib/dpkg/info/libc6:amd64.* /tmp/
sudo apt install -f libc-bin
sudo mv /tmp/libc6:amd64.* /var/lib/dpkg/info/
spaulaus, jiucenglou, e3mark, ywdeng, Rahulelectobuddy, puerconiox009, MishaTY, rsiggi, footvaalvica, Meprisant, and 21 more reacted with thumbs up emoji
linkdd, romain145, AndyDurden, dvngn, GrayXu, Dr4kk0nnys, FrancoisCarouge, f4grx, quantcola, nihilok, and 21 more reacted with thumbs down emoji
vysakhbt-git reacted with heart emoji

@byroniac

I have not seen the problem again, thankfully, but if I ever do, I will try to remember to come back here and try those instructions. Again, I am thankful also that the Reset option in Windows 10 Apps is available.

@linkdd

I had the issue today.

Could not install anything else because apt is trying to fix the installation of libc-bin. I tried the above instructions, but it failed at the reinstallation of libc-bin, so now there is no more libc, ldconfig, or anything else to get the system working.

I had to completely reinstall the WSL distribution.

This issue should not be closed.

@alansstuff

This happened to me after trying to install nmap on WSL. In my case, ldconfig was segfaulting (choking on libpcap) and causing libc-bin to appear broken. I’ll provide my troubleshooting journey since yours will likely be slightly different:

Attempting to run ldconfig yielded the following:

[~/build/libc]$ ldconfig -v
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once

<... blah blah blah...>

/usr/lib/x86_64-linux-gnu:
[1]    1528 abort (core dumped)  ldconfig -v

Well, OK. Let’s uninstall nmap and try again:

[~]$ sudo apt remove nmap
<... etc ...>
Package 'nmap' is not installed, so not removed

That looks promising. Let’s see which of its dependencies might be naughty:

[~]$ apt show nmap
<... blah blah blah...>
Depends: libc6 (>= 2.15), libgcc1 (>= 1:3.0), liblinear3 (>= 2.01+dfsg), liblua5.3-0, libpcap0.8 (>= 0.9.8), libpcre3, libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4)

Those all look fairly innocuous with the exception of libpcap. Let’s see if it’s dropped anything in that path ldconfig was complaining about:

[~]$ mkdir /tmp/pcap
[~]$ dpkg -x /var/cache/apt/archives/libpcap0.8_1.8.1-6ubuntu1.18.04.1_amd64.deb /tmp/pcap
[~]$ ls /tmp/pcap/usr/lib/x86_64-linux-gnu
libpcap.so.0.8  libpcap.so.1.8.1

Right then. Out they go!

[~]$ sudo rm /usr/lib/x86_64-linux-gnu/libpcap.so.*
[~]$ sudo apt install libc-bin

And all was well. You probably don’t need to reinstall libc-bin unless you (like me) casually delete system files in the process of troubleshooting. Don’t forget to clean up after that partially removed package:

[~]$ sudo apt remove libpcap0.8

tl;dr:
Some libs apparently break ldconfig. Manually remove the offending library and clean up the mess. In my case it was libpcap0.8.

@jiucenglou

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

@byroniac

tl;dr:
Some libs apparently break ldconfig. Manually remove the offending library and clean up the mess. In my case it was libpcap0.8.

In my case, as far as I remember, my problems arose with clean WSL installations (I never tried to install nmap or libpcap, etc.). Though I did put in a customized ~/.bash_aliases each time, and part of me wonders if something in it caused the issue. Anyways, I have not had the problem come up again, but have also not been using WSL much at all recently. I’m interested in the «ls» trick mentioned in another comment, because it sounds too good to be true.

@byroniac

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

I almost wish I would have the issue again, so I could try this—it sounds too good to be true, to be honest.

@ButaiKirin

This fix my problem 👍 :+1 if this working for you.

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/

It works. Thank you

@VBaczynski

Faced similar problem on Kali Linux, this helped:

dpkg: warning: ‘ldconfig’ not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable


~# apt download libc-bin
~# dpkg -x libc-bin*.deb unpackdir/
~# cp unpackdir/sbin/ldconfig /sbin/
~# mv /var/lib/dpkg/info/libc6:amd64.* /tmp/
~# apt install -f libc-bin
~# mv /tmp/libc6:amd64.* /var/lib/dpkg/info/
felipegeek256, maikka39, hgouveia, ION28, Lugdunumn, serkansahinBE, Terezatvojamama, WacKEDmaN, AngeredZeus, christofkaelin, and 8 more reacted with thumbs up emoji
davystrong, rraadd88, and coskrrb2002 reacted with thumbs down emoji
serkansahinBE, Terezatvojamama, AngeredZeus, elabdi, DerGeorg, and Adrien-COSTANDI reacted with heart emoji

@felipegeek256

Faced similar problem on Kali Linux, this helped:

dpkg: warning: ‘ldconfig’ not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable


~# apt download libc-bin
~# dpkg -x libc-bin*.deb unpackdir/
~# cp unpackdir/sbin/ldconfig /sbin/
~# mv /var/lib/dpkg/info/libc6:amd64.* /tmp/
~# apt install -f libc-bin
~# mv /tmp/libc6:amd64.* /var/lib/dpkg/info/

That worked a treat and you posted it yesterday, lucky me! THANKS!

@SkyLeach

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

To my absolute shock and amazement, this is indeed the solution. Except for one caveat: ls -alh didn’t quite cut it. Instead, this is what worked for me: for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;

skbeh, TornaD-oz, staniel359, ziddey, andrew867, darklab-sh, paradoxxl, MishaTY, davystrong, diadras, and 28 more reacted with thumbs up emoji
andrew867, GraemeHarris, darklab-sh, MishaTY, davystrong, elabdi, gg-chrisd, jpmorin, MaximeRougieux, lyvius, and 3 more reacted with hooray emoji
Ceremony64 reacted with heart emoji
abhijeetsingh1704, jpmorin, and Jurrer reacted with rocket emoji
MishaTY, elabdi, jpmorin, BielMaxBR, and Jurrer reacted with eyes emoji

@GrayXu

all methods above would cause errors below
(I only found this problem on wsl ubuntu18 version)

dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

@TornaD-oz

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

To my absolute shock and amazement, this is indeed the solution. Except for one caveat: ls -alh didn’t quite cut it. Instead, this is what worked for me: for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;

This fixed it, thanks!

@mstephenson6

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

To my absolute shock and amazement, this is indeed the solution. Except for one caveat: ls -alh didn’t quite cut it. Instead, this is what worked for me: for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;

Thanks, it worked for me too with WSL1 and Debian 10 on Windows 20H2

This fixed a related issue in Ubuntu 18.04 WSL1 Windows 10 (1909) where ldconfig complains «directory listed twice» then dumps core

@wangwenqiangGitHub

Setting up libc-bin (2.31-0ubuntu9.2) …
Aborted (core dumped)
/sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /usr/lib32′ given more than once
/sbin/ldconfig.real: Path /lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path /usr/lib/x86_64-linux-gnu’ given more than once
/sbin/ldconfig.real: Path `/usr/lib’ given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so -> libfakeroot-tcp.so
/usr/local/lib:
/usr/local/lib/x86_64-linux-gnu:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (—configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

@Sinpo96

Finally I solved this by uninstalling ubuntu of WLS.

wonderful,it’s solved my problem

I must say sorry. I’m so excited that I reply for this wrong quote.

image
sudo apt autoremove can solve my problem

@wangwenqiangGitHub

Finally I solved this by uninstalling ubuntu of WLS.

wonderful,it’s solved my problem

I must say sorry. I’m so excited that I reply for this wrong quote.

image sudo apt autoremove can solve my problem

sorry , still this question when i do this

@DanaMW

It does not stop it from happening but when it does I ruin this little script i found on another post. It allows it to set back up and work. So every time it bonks out i run «fixme» shell script as follows.

#/bin/bash
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt -y install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/

It works for me. Someone a while ago posted it here, it is not my script, I just use it (a lot).

scottmando2000, mgranoski, AnaJordao, dmnapolitano, carlosmuller, dw-andrewsfasteners, kevinle-1, Pg-Pi3Gey, and contranton reacted with thumbs up emoji
scottmando2000, carlosmuller, and kevinle-1 reacted with hooray emoji
mgranoski, carlosmuller, kevinle-1, Pg-Pi3Gey, JamesCrumble, and TheTerrasque reacted with heart emoji

@dwarak-cmd

Run «sudo apt-get dist-upgrade» on root user on Ubuntu and it will fix the issue.

@wangwenqiangGitHub

sudo apt-get dist-upgrade
still this question

@carlos-delamo

Run «sudo apt-get dist-upgrade» on root user on Ubuntu and it will fix the issue.

Not solving it for me

@kongdd

I got the same error. Unable to solve

@kongdd

After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc-bin (2.31-0ubuntu9.4) ...
Aborted (core dumped)
/sbin/ldconfig.real: Path `/usr/lib32' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
        libfakeroot-0.so -> libfakeroot-tcp.so
/usr/lib/wsl/lib:
/usr/local/lib:
        libnanosleep.so -> libnanosleep.so
/lib32:
        libutil.so.1 -> libutil-2.31.so
        libthread_db.so.1 -> libthread_db-1.0.so
        libstdc++.so.6 -> libstdc++.so.6.0.28
        libSegFault.so -> libSegFault.so
        librt.so.1 -> librt-2.31.so
        libresolv.so.2 -> libresolv-2.31.so
        libpthread.so.0 -> libpthread-2.31.so
        libpcprofile.so -> libpcprofile.so
        libnss_nisplus.so.2 -> libnss_nisplus-2.31.so
        libnss_nis.so.2 -> libnss_nis-2.31.so
        libnss_hesiod.so.2 -> libnss_hesiod-2.31.so
        libnss_files.so.2 -> libnss_files-2.31.so
        libnss_dns.so.2 -> libnss_dns-2.31.so
        libnss_compat.so.2 -> libnss_compat-2.31.so
        libnsl.so.1 -> libnsl-2.31.so
        libmemusage.so -> libmemusage.so
        libm.so.6 -> libm-2.31.so
        libgcc_s.so.1 -> libgcc_s.so.1
        libdl.so.2 -> libdl-2.31.so
        libc.so.6 -> libc-2.31.so
        libBrokenLocale.so.1 -> libBrokenLocale-2.31.so
        libanl.so.1 -> libanl-2.31.so
/sbin/ldconfig.real: /lib32/ld-2.31.so is the dynamic linker, ignoring

        ld-linux.so.2 -> ld-2.31.so
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

@josemirm

After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc-bin (2.31-0ubuntu9.4) ...
Aborted (core dumped)
/sbin/ldconfig.real: Path `/usr/lib32' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
        libfakeroot-0.so -> libfakeroot-tcp.so
/usr/lib/wsl/lib:
/usr/local/lib:
        libnanosleep.so -> libnanosleep.so
/lib32:
        libutil.so.1 -> libutil-2.31.so
        libthread_db.so.1 -> libthread_db-1.0.so
        libstdc++.so.6 -> libstdc++.so.6.0.28
        libSegFault.so -> libSegFault.so
        librt.so.1 -> librt-2.31.so
        libresolv.so.2 -> libresolv-2.31.so
        libpthread.so.0 -> libpthread-2.31.so
        libpcprofile.so -> libpcprofile.so
        libnss_nisplus.so.2 -> libnss_nisplus-2.31.so
        libnss_nis.so.2 -> libnss_nis-2.31.so
        libnss_hesiod.so.2 -> libnss_hesiod-2.31.so
        libnss_files.so.2 -> libnss_files-2.31.so
        libnss_dns.so.2 -> libnss_dns-2.31.so
        libnss_compat.so.2 -> libnss_compat-2.31.so
        libnsl.so.1 -> libnsl-2.31.so
        libmemusage.so -> libmemusage.so
        libm.so.6 -> libm-2.31.so
        libgcc_s.so.1 -> libgcc_s.so.1
        libdl.so.2 -> libdl-2.31.so
        libc.so.6 -> libc-2.31.so
        libBrokenLocale.so.1 -> libBrokenLocale-2.31.so
        libanl.so.1 -> libanl-2.31.so
/sbin/ldconfig.real: /lib32/ld-2.31.so is the dynamic linker, ignoring

        ld-linux.so.2 -> ld-2.31.so
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

As other comments said, try these things:

for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;
sudo apt-get dist-upgrade
sudo apt-get autoremove

@KSpakes87

This fix my problem 👍 :+1 if this working for you.

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/

I have this issue pop up on me every now and then. Just made this a bash script and run it when it happens. Fixes every time. I just have to remember I have that script when it happens lol.

@tominal

What the hell.

For WSL Ubuntu 20.04 users on Windows 21H2:

for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;
sudo apt autoremove

@aravindselvapalani

Can’t say I understood the issue but went on a limb and did the following that fixed the issue.

ln -s /usr/lib/x86_64-linux-gnu/ /usr/bin/x86_64-linux-gnu

@withmorten

This fix my problem 👍 :+1 if this working for you.

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/

Since it’s buried so far down I’m requoting it — had this issue today randomly on debian testing, this was the only solution that worked!

@ejberrio

Just sudo apt install libc-bin did the trick — problem solved. Thanks! P.S. Removing the package didn’t work — for each I got an error «this is an essential package; it should not be removed»

pablomendezroyo

added a commit
to dappnode/DAppNodePackage-gnosis-beacon-chain-prysm
that referenced
this issue

May 15, 2022

@pablomendezroyo

@kmasila

I just ran «sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/» and apt-get update subsequently to fix this issue.

@jleaders

This worked for me

for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;
sudo apt install libc-bin -y
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo apt install libc-bin -y
XxxGHOSTX, grv87, zanna-37, adduxa, Jefferderp, lukexyz, ExecThTs, claublog, and permissionx reacted with thumbs up emoji
lukexyz, ExecThTs, samuelvgo, and danielegovetto reacted with heart emoji
permissionx and samuelvgo reacted with rocket emoji

@XxxGHOSTX

This worked for me

for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;
sudo apt install libc-bin -y
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo apt install libc-bin -y

FINALLY this was the first one out of countless error 134 thanks

@KSpakes87

So, it has now gotten to the point where I have to fix libc-bin every time I update/upgrade or install new packages. Any word on a fix for this?

@eduarddejong

So, it has now gotten to the point where I have to fix libc-bin every time I update/upgrade or install new packages. Any word on a fix for this?

I don’t understand why so few people are talking about this entire issue. I am litterally experiencing this on ALL systems that I use WSL on, both with Debian and Ubuntu.
There is clearly a general issue but updating your distro at a regular base seems to be a thing limited to a small amount of people or so. I don’t get it.

@DanaMW

It only happens for me on WSL version 1 and I just have gotten used to fixing it when I update. But yes it does happen on that version almost every time.

@zturtleman

On WSL2/Ubuntu 20.04 updating for the first time in like a year; the below let other packages update but left libc-bin as «not fully installed» and apt would try to install libc-bin, and print ldconfig messages and crash «Aborted (core dumped)», if you try to install anything else or do apt autoremove.

sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt -y install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/

Running sudo ldconfig crashed «Aborted (core dumped)».

Updating ldconfig cache while ignoring /var/cache/ldconfig/aux-cache fixed it for me. (I didn’t have the foresight to backup the binary aux-cache file so it could be attached to a bug report about ldconfig somewhere.) source

Solution:

Edit: Actually ignoring/removing aux-cache was mentioned early in the thread.

@vladimirzind

I have recently run into this problem. The solution for my case turns out to be surprisingly easy: for each Can't stat , manually run ls that directory, and then run the same apt again.

To my absolute shock and amazement, this is indeed the solution. Except for one caveat: ls -alh didn’t quite cut it. Instead, this is what worked for me: for PROBDIR in "" "/usr" "/usr/local"; do find "${PROBDIR}/lib/x86_64-linux-gnu" -type f -ls; done;

I want to confirm tha this worked for me on Ubuntu-20.04.
One note only is that I needed to execute command multiple times (3-4) untill problem was resolved.

Thank you for your help.

@Dan1138

One thing that worked for me was (temporarily) changing from WSL 1 to WSL 2.

  • Close any WSL windows
  • From CMD or Powershell run «wsl —set-version Ubuntu-22.04 2» (you can use «wsl -l -v» to get your WSL distro name if different)
  • Open WSL and run «sudo apt upgrade» or whatever was giving you the error before.
  • Once you’re happy, if you want to switch back, close WSL then run «wsl —set-version Ubuntu-22.04 1»

This worked for me and may be worth trying if the find/ls solution above does not work for you (it did not work for me, I just got no such file errors).

@eduarddejong

Has been a while ago that I replied here. In my case I was using WSL 2 and experiencing the issue, not using WSL 1.

I would like to add that I changed a few things and that I seem to be no longer having the issue.

First of all I am no longer run more than 1 distro. Just Ubuntu, because I wanted to stop fixing things. I don’t know if this matters or not (I hope distros don’t conflict with resources or something weird like that).
But there is more …

I no longer install distros from the command line using wsl --install -d <Distro>, but I installed just «Ubuntu» directly via Microsoft Store app instead. (Note: I am not talking about «Ubuntu-16.04» or «Ubuntu-18.04» or «Ubuntu-20.04», but really just «Ubuntu» in both cases, because I haven’t tested the other ones. I also stopped using Debian so I don’t know if this change would apply for that one either).

Surpisingly, it turned out that I kept getting a different version of Ubuntu from the Store than when using the command line. First of all very interesting because apparantly these things differ from each other.
Secondly it’s very weird because the distro name was exactly the same, «Ubuntu» in both cases.
The version from Store looked much newer though, also coming with default styling for the Windows Terminal, which is also new.

For some people this might all be obvious, but at least it wasn’t for me.

Most importantly, it turns out that I have no longer seen the libc-bin issue coming back after this change.
So maybe if other people read it, they can benefit from this knowlege as well.

@KSpakes87

Has been a while ago that I replied here. In my case I was using WSL 2 and experiencing the issue, not using WSL 1.

I would like to add that I changed a few things and that I seem to be no longer having the issue.

First of all I am no longer run more than 1 distro. Just Ubuntu, because I wanted to stop fixing things. I don’t know if this matters or not (I hope distros don’t conflict with resources or something weird like that). But there is more …

I no longer install distros from the command line using wsl --install -d <Distro>, but I installed just «Ubuntu» directly via Microsoft Store app instead. (Note: I am not talking about «Ubuntu-16.04» or «Ubuntu-18.04» or «Ubuntu-20.04», but really just «Ubuntu» in both cases, because I haven’t tested the other ones. I also stopped using Debian so I don’t know if this change would apply for that one either).

Surpisingly, it turned out that I kept getting a different version of Ubuntu from the Store than when using the command line. First of all very interesting because apparantly these things differ from each other. Secondly it’s very weird because the distro name was exactly the same, «Ubuntu» in both cases. The version from Store looked much newer though, also coming with default styling for the Windows Terminal, which is also new.

For some people this might all be obvious, but at least it wasn’t for me.

Most importantly, it turns out that I have no longer seen the libc-bin issue coming back after this change. So maybe if other people read it, they can benefit from this knowlege as well.

I appreciate the time you took to research and write this up. However, I am using the Windows Store «Ubuntu» version and still receive this error. I am running WSL1 though, so there could be a difference here.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [ubuntu] dpkg: subprocess post-installation script returned error exit status 135

  1. (help) dpkg: subprocess post-installation script returned error exit status 135

    I am running a fresh install of 8.10 i386 downloaded last night.
    I installed it successfully went to update manager and updated.
    downloded all the updates, but on installing them it stated

    E: dpkg was interrupted, you must manually run ‘dpkg —configure -a’ to correct the problem.
    so I ran in terminal
    sudo dpkg —configure -a
    it outputted
    Setting up libc6 (2.8~20080505-0ubuntu9) …

    Processing triggers for libc6 …
    ldconfig deferred processing now taking place
    Bus error
    dpkg: subprocess post-installation script returned error exit status 135
    ^[[C^[[B^[[Dthenor@thenor-laptop:~/Desktop$


    so I looked it up in the forums and saw a few post that might help… but none did.
    any ideas.

    Last edited by sanmannor; April 22nd, 2009 at 09:28 PM.


  2. Re: (help) dpkg: subprocess post-installation script returned error exit status 135

    Quote Originally Posted by sanmannor
    View Post

    I am running a fresh install of 8.10 i386 downloaded last night.
    I installed it successfully went to update manager and updated.
    downloded all the updates, but on installing them it stated

    E: dpkg was interrupted, you must manually run ‘dpkg —configure -a’ to correct the problem.
    so I ran in terminal
    sudo dpkg —configure -a
    it outputted
    Setting up libc6 (2.8~20080505-0ubuntu9) …

    Processing triggers for libc6 …
    ldconfig deferred processing now taking place
    Bus error
    dpkg: subprocess post-installation script returned error exit status 135
    ^[[C^[[B^[[Dthenor@thenor-laptop:~/Desktop$


    so I looked it up in the forums and saw a few post that might help… but none did.
    any ideas.

    try this

    sudo apt-get -f install

    Help it works

    Brush your teeth kissing is imminent!!!
    sources


  3. Re: dpkg: subprocess post-installation script returned error exit status 135

    ok, tried that, got this

    E: dpkg was interrupted, you must manually run ‘dpkg —configure -a’ to correct the problem.


  4. Re: dpkg: subprocess post-installation script returned error exit status 135

    sudo dpkg —configure -a
    try it again

    Brush your teeth kissing is imminent!!!
    sources


  5. Re: dpkg: subprocess post-installation script returned error exit status 135

    tried that again typed
    sudo dpkg —configure -a

    got

    Setting up libc6 (2.8~20080505-0ubuntu9) …

    Processing triggers for libc6 …
    ldconfig deferred processing now taking place
    Bus error
    dpkg: subprocess post-installation script returned error exit status 135
    thenor@thenor-laptop:~/Desktop$


  6. Re: dpkg: subprocess post-installation script returned error exit status 135

    ok lets do this
    open synaptic package manager search for libc6 mark for complete removal
    after opne terminal and run sudo apt-get install libc6
    tell me what happends

    Brush your teeth kissing is imminent!!!
    sources


  7. Re: dpkg: subprocess post-installation script returned error exit status 135

    can’t open synaptic pakage manager, it gives me the fallowing message

    E: dpkg was interrupted, you must manually run ‘dpkg —configure -a’ to correct the problem.
    E: _cache->open() failed, please report.

    then it closes… is there a way to do it through terminal


  8. Re: dpkg: subprocess post-installation script returned error exit status 135

    try sudo apt-get purge libc6
    sudo apt-get install libc6

    Brush your teeth kissing is imminent!!!
    sources


  9. Re: dpkg: subprocess post-installation script returned error exit status 135

    tried
    sudo apt-get purge libc6

    got

    E: dpkg was interrupted, you must manually run ‘dpkg —configure -a’ to correct the problem.

    so I ran
    sudo dpkg —configure -a
    got
    Setting up libc6 (2.8~20080505-0ubuntu9) …

    Processing triggers for libc6 …
    ldconfig deferred processing now taking place
    Bus error
    dpkg: subprocess post-installation script returned error exit status 135
    thenor@thenor-laptop:~/Desktop$


  10. Re: dpkg: subprocess post-installation script returned error exit status 135

    Any help would be appreciated


Bookmarks

Bookmarks


Posting Permissions

My system runs inside WSL, I upgrade it at least every few days.
I stuck with one package installation, and looking for a way to solve this:

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libbind9-161 libdns-export1107 libdns1107 libdns1109 libirs161 libisc-export1104 libisc1104 libisc1105 libisccc161
  libisccfg163 liblwres161 liboauth0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc-bin
The following packages will be upgraded:
  libc-bin
1 upgraded, 0 newly installed, 0 to remove and 882 not upgraded.
6 not fully installed or removed.
Need to get 0 B/633 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libc6:amd64 (2.31-0ubuntu6) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

What can I try next?

asked Mar 31, 2020 at 6:06

Adam Mierzwiak's user avatar

Adam MierzwiakAdam Mierzwiak

3502 gold badges6 silver badges18 bronze badges

I ran into the same problem, and this procedure from this bug report fixed it:

Edit /var/lib/dpkg/info/libc6:amd64.postinst

and comment out the line

# set -e

so $ apt-get -f install can continue.

answered May 9, 2020 at 13:08

Martijn's user avatar

MartijnMartijn

13k3 gold badges49 silver badges58 bronze badges

11

You can use this sequence of commands (up to 3) to force a re-download of the partial files of the offending packages. Remaining steps are done to merge the new files with the old one, to avoid warnings and issues on non-offending packages that do not get downloaded in this attempt.

  1. sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
  2. sudo mkdir /var/lib/dpkg/info
  3. sudo apt-get update && sudo apt-get -f install
  4. sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
  5. sudo rm -rf /var/lib/dpkg/info 
  6. sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info

Alessandro Lai's user avatar

answered Apr 20, 2020 at 15:12

OdTu 's user avatar

OdTu OdTu

1193 bronze badges

6

I ran into the same problem when upgrading Kali Linux inside WSL. I used these sequence of commands to fix the issue

  1. cd /tmp
  2. apt -y download libcrypt1
  3. dpkg-deb -x libcrypt1_1%3a4.4.27-1.1_amd64.deb .
  4. cp -av lib/x86_64-linux-gnu/* /lib/x86_64-linux-gnu/
  5. apt -y —fix-broken install

answered Jun 11, 2022 at 7:47

Cjay's user avatar

CjayCjay

215 bronze badges

  • Печать

Страницы: [1] 2  Все   Вниз

Тема: Ошибка при обновлении или установке чего либо, cupsys Sub-process /usr/bin/dpkg.  (Прочитано 116949 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
RelaxY

Setting up cupsys (1.3.2-1ubuntu7.9) ...
ln: `/usr/lib/cups/backend-available/dnssd': hard link not allowed for directory
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 cupsys
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ругается на cupsys, пробовал его удалить, тогда все нормально, но он вроде как был нужен, поетому хотелось бы его корректно установить. не подскажите что с этим делать?


Оффлайн
RelaxY

мне интерсно, это у меня ламерский вопрос? или я дал не полную информацию, или может форум мертвый?


lichtenwald

apt-get install -f && dpkg --configure -a


Оффлайн
RelaxY

apt-get install -f && dpkg --configure -a

к сожалению не помогло

uws@UwinServer:~$ sudo apt-get install -f && dpkg --configure -a
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up cupsys (1.3.2-1ubuntu7.9) ...
ln: `/usr/lib/cups/backend-available/dnssd': hard link not allowed for directory
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 cupsys
E: Sub-process /usr/bin/dpkg returned an error code (1)


lichtenwald

это 2 разные команды, второй в логе не вижу

sudo dpkg --configure -a


Оффлайн
Kwah

это 2 разные команды, второй в логе не вижу
sudo dpkg --configure -a

Второй в логе не видно, потому что первая возвращает ошибку, ты же сам написал ему использовать команда && команда, будь последователен ;)


Оффлайн
RelaxY

это 2 разные команды, второй в логе не вижу
sudo dpkg --configure -a

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


Оффлайн
RelaxY


lichtenwald

есть баг интересно
насчет библиотеки если я ничего не путаю то это что-то с печатью связанно, но могу и путать



Оффлайн
Spot

У меня такая же проблема, только я устанавливал МЬцфку server и не совсем получилось, теперь обновиться не могу. В термина kt при вводе вышеприведенной команды выдает такое:

sudo apt-get install -f && dpkg --configure -a

Чтение списков пакетов... Готово
Построение дерева зависимостей       
Чтение информации о состоянии... Готово
Пакеты, которые будут УДАЛЕНЫ:
  vmware-server
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 1 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 1 пакетов.
После данной операции, объём занятого дискового пространства уменьшится на 739MB.
Хотите продолжить [Д/н]? y
(Чтение базы данных... на данный момент установлено 137093 файлов и каталогов.)
Удаляется пакет vmware-server...
[: 64: Illegal number: remove
shift: 64: can't shift that many

dpkg: не удалось обработать параметр vmware-server (--remove):
 подпроцесс post-removal script возвратил код ошибки 2
При обработке следующих пакетов произошли ошибки:
 vmware-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Что делать не знаю помогите. :) Спасибо!


Оффлайн
c0mc4t

Подумал, может быть еще кому понадобится…
нашел ответ вот тут: http://www.linuxquestions.org/questions/debian-26/sub-process-usrbindpkg-returned-an-error-code-1-171107/
для тех кто не силен в буржуйском, объясняю:
достаточно из /var/lib/dpkg/info удалить все файлы относящиеся к пакету на который ругается dpkg
Например, если это


dpkg: не удалось обработать параметр vmware-server (--remove):
 подпроцесс post-removal script возвратил код ошибки 2
При обработке следующих пакетов произошли ошибки:
 vmware-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

то нам достаточно сделать следующее:

cd /var/lib/dpkg/info
rm vmware-server.*
apt-get -f install
В результате удаляются пре- и постинсталяционные скрипты, мд5-сумма пакета и файллист.
В /var/cache/apt/archives у меня ничего не было. Но на всякий случай, можете залезть туда и тоже там почистить всё что относится к зависшему пакету.  ;)


netzwerk


Оффлайн
kheshka

Помогите! та же проблема, но я новичок и не пойму, ГДЕ ЭТИ КОДЫ ПРОПИСЫВАТЬ НАДО?


Оффлайн
lone_wolf

Помогите! та же проблема, но я новичок и не пойму, ГДЕ ЭТИ КОДЫ ПРОПИСЫВАТЬ НАДО?

1. это не код а команды  ???
2. В Терминале надо в терминале …. :idiot2:
это в ubuntu :
Приложения→Стандартные→Терминал

« Последнее редактирование: 06 Мая 2010, 19:11:46 от lone_wolf »


  • Печать

Страницы: [1] 2  Все   Вверх

Понравилась статья? Поделить с друзьями:
  • Installed initramfs tools package post installation script subprocess returned error exit status 1
  • Installed grub pc package post installation script subprocess returned error exit status 1
  • Installed error invalid archive
  • Installed docker ce package post installation script subprocess returned error exit status 1
  • Installed bbswitch dkms package post installation script subprocess returned error exit status 10