Error in binutils package processing

Briefly describe your issue below:
sudo parrot-upgrade -y
Reading the package lists… Done.
Building a dependency tree
Reading the status information… Done.
One package can be updated. Run “apt list --upgradable” to show.
dpkg: package dependencies do not allow configuring the binutils package:
binutils depends on binutils-x86-64-linux-gnu (= 2.31.1-16), however:
The binutils-x86-64-linux-gnu version of the system is 2.31.1-15.

dpkg: an error when processing the binutils package (–configure):
Dependency issues - leave it unconfigured
Errors occurred in the processing of the following packages:
binutils
failed to fix interrupted upgrades
Reading the package lists… Done.
Building a dependency tree
Reading the status information… Done.
Correction of addictions… Done.
The following additional packages will be installed
binutils-x86-64-linux-gnu
Proposed packages:
binutils-doc
The following packages will be updated:
binutils-x86-64-linux-gnu
Updated 1 package, installed 0 new packages, marked 0 packages for uninstallation, and 0 packages not updated.
Installed or uninstalled up to the end of 1 package.
You need to download 0 B/1 823 kB of archives.
After this operation, the amount of disk space occupied will increase by 0 B.
Do you want to continue? R/C] y
apt-listchanges: Reading change logs…
(Reading the database … currently installed 244654 file and directory.)
Preparing for unpacking …/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb …
Unpack binutils-x86-64-linux-gnu (2.31.1-16) to replace (2.31.1-15) …
dpkg: error while processing /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb (–unpack):
failed to get information about “./usr/lib/x86_64-linux-gnu/ldscripts/elf_k1om.xdwe” (which must be installed): The structure must be cleaned
Errors occurred in the processing of the following packages:
/var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb
Configuring sandbox profiles.
Sandbox profiles updated!
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to fix conflicts
Reading the package lists… Done.
Building a dependency tree
Reading the status information… Done.
Correction of addictions… Done.
Update calculation… Done.
The following packages will be updated:
binutils-x86-64-linux-gnu
Updated 1 package, installed 0 new packages, marked 0 packages for uninstallation, and 0 packages not updated.
Installed or uninstalled up to the end of 1 package.
You need to download 0 B/1 823 kB of archives.
After this operation, the amount of disk space occupied will increase by 0 B.
apt-listchanges: Reading change logs…
(Reading of a database … at present it is established 244654 files and the catalogue.)
Preparing for unpacking …/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb …
Unpack binutils-x86-64-linux-gnu (2.31.1-16) to replace (2.31.1-15) …
dpkg: error while processing /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb (–unpack):
failed to get information about “./usr/lib/x86_64-linux-gnu/ldscripts/elf_k1om.xdwe” (which must be installed): The structure must be cleaned
Errors occurred in the processing of the following packages:
/var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb
Configuring sandbox profiles.
Sandbox profiles updated!
E: Sub-process /usr/bin/dpkg returned an error code (1)

What version of Parrot are you running? (include version, edition, and architecture)
4.5.1
Linux parrot 4.19.0-parrot4-28t-amd64 #1 SMP Parrot 4.19.28-2parrot4.28t (2019-04-18) x86_64 GNU/Linux

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
debian standart

Configured to multiboot with other systems? (yes / no)
no

If there are any error messages or relevant logs, post them below:
sudo apt upgrade
Reading the package lists… Done.
Building a dependency tree
Reading the status information… Done.
You can run “apt --fix-broken install” to fix these errors.
The following packages have unsatisfied dependencies:
binutils : Depends: binutils-x86-64-linux-gnu (= 2.31.1-16) but 2.31.1-15 is already installed
binutils-x86-64-linux-gnu : Depends: binutils-common (= 2.31.1-15) but 2.31.1-16 is already installed
Depends: libbinutils (= 2.31.1-15) but 2.31.1-16 is already installed
E: Unsatisfied addictions. Try “apt --fix-broken install” without specifying the package name (or solution).

I not able to Understand This language
But maybe you have broken packages
Which will you manually remove first & then
Try parrot-upgrade

Edit : ohk i see binutils packages ,
Simple purge and remove it

sudo apt remove --purge PackageName -y

Then try to

Parrot-upgrade

sudo apt remove --purge binutils
Reading package lists… Done
Building a dependency tree
Reading state information… Ready
You can run “apt --fix-broken install” to fix these errors.
The following packages have unsatisfied dependencies:
binutils-x86-64-linux-gnu : Depends: binutils-common (= 2.31.1-15) but 2.31.1-16 must be installed
Depends: lib binutils (= 2.31.1-15) but 2.31.1-16 must be installed
dpkg-dev : Depends: binutils but it will not be installed
gcc-8 : Depends: binutils (>= 2.31.1) but it will not be installed
lintian : Depends: binutils but it will not be installed
E: Unmet dependencies. Try running “apt --fix-broken install” without specifying a package name (or specifying a solution).

First try

  sudo apt update && sudo  apt --fix-broken install && sudo apt install -f

If error still persists then remove that packages & install again install

sudo apt update &&sudo apt --fix-broken install &&sudo apt install -f
Reading the package lists… Done.
Building a dependency tree
Reading the status information… Done.
One package can be updated. Run “apt list --upgradable” to show.
Reading the package lists… Done
Building a dependency tree
Reading the status information… Done.
Correction of addictions… Done.
The following additional packages will be installed
binutils-x86-64-linux-gnu
Proposed packages:
binutils-doc
The following packages will be updated:
binutils-x86-64-linux-gnu
Updated 1 package, installed 0 new packages, marked 0 packages for uninstallation, and 0 packages not updated.
Installed or uninstalled up to the end of 1 package.
You need to download 0 B/1 823 kB of archives.
After this operation, the amount of disk space occupied will increase by 0 B.
Do you want to continue? R/C] y
Reading change logs… Done
(Reading the database … currently installed 244654 files and directory.)
Preparing for unpacking …/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb …
Unpack binutils-x86-64-linux-gnu (2.31.1-16) to replace (2.31.1-15) …
dpkg: error while processing /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb (–unpack):
failed to get information about “./usr/lib/x86_64-linux-gnu/ldscripts/elf_k1om.xdwe” (which must be installed): The structure must be cleaned
Errors occurred in the processing of the following packages:
/var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb
Configuring sandbox profiles.
Sandbox profiles updated!
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try this:

sudo dpkg --remove --force-remove-reinstreq binutils-x86-64-linux-gnu

And then try to reinstall. I am interested what exactly have you done to get this error. Have you interrupted apt when it was installing/upgrading anything?

" sudo dpkg --remove --force-remove-reinstreq binutils-x86-64-linux-gnu

dpkg: dependency issues do not allow you to remove the binutils-x86-64-linux-gnu package:
binutils depends on binutils-x86-64-linux-gnu (= 2.31.1-16).

dpkg: bug in processing binutils-x86-64-linux-gnu (–remove) package:
Dependency issues - not removed
Errors occurred in the processing of the following packages:
binutils-x86-64-linux-gnu

I don’t remember exactly what happened after that, but I probably did interrupt the packet update process

Because of these two buggy packages, it is not possible to update / uninstall / install other packages.

This is something weird and this has to be a reason for dpkg remove error. Have you added any scripts or something?

7 days have passed since the system was installed, no scripts were installed

I can’t update the system, write a bug with this package, how do I fix it?

sudo dpkg --purge --force-all binutils* 

If still not , find out it’s deb file in /var/ and manually remive it , fhen

 sudo apt --fix-broken install && sudo apt install -f

sudo dpkg --purge --force-all binutils*
dpkg: error: --purge requires correct package name, “binutils*” is not “binutils*”: invalid package name in “binutils*” descriptor: character “*” is not allowed (Latin letters, numbers and characters “-+._” are allowed)

sudo dpkg --purge --force-all binutils-x86-64-linux-gnu
(Reading the database … currently installed 244626 files and directories.)
Removes binutils-x86-64-linux-gnu (2.31.1-15) …
dpkg: error when processing binutils-x86-64-linux-gnu (–purge) package:
failed to remove “/usr/lib/x86_64-linux-gnu/ldscripts/elf_k1om.xdwe”: The structure must be cleaned
Triggers for man-db (2.8.5-2) are processed.
Errors occurred in the processing of the following packages:
binutils-x86-64-linux-gnu


sudo rm /var/cache/apt/archives/binutils_2.31.1-16_amd64.deb
sudo rm /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb

sudo apt --fix-broken install && sudo apt install -f

Preparation for unpacking …/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb …
Unpack binutils-x86-64-linux-gnu (2.31.1-16) to replace (2.31.1-15) …
dpkg: error while processing /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb (–unpack):
failed to get information about “./usr/lib/x86_64-linux-gnu/ldscripts/elf_k1om.xdwe” (which must be installed): The structure must be cleaned
Errors occurred in the processing of the following packages:
/var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb
Configuring sandbox profiles.
Sandbox profiles updated!
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo rm -r ThisPath

Then

sudo apt  update && sudo apt install -f && sudo full-upgrade -y

Didn’t help:(
All I could do was remove the “binutils” package
sudo dpkg --purge --force-all binutils

https://pastebin.com/G8wKed6x

Is it possible for you to join some screen sharing service like Discord, so I could help you by talking? (I also saw some russian text in your logs, so if you speak russian we may speak russian)

I speak Russian, yes.
I can contact you in telegram chat and follow your instructions

Ok, my nickname is @h0tw4t3r.

Result’s will be posted here.

The problem was with the file system.

A solution:

  1. Boot from live cd
  2. decrypt the root partition
  3. run the command
    sudo xfs_repair /dev/mapper/parrot-vg-root
  4. reboot
1 Like