Hi there, i have another Problem and dont know where it comes from. My system is a persistent USB HDD 64bit with Kali 2019.2 on it.
When i run apt update this is the output:
root@whoami:~# apt update
Hit:1 http://deb.i2p2.no unstable InRelease
Hit:2 http://ftp.halifax.rwth-aachen.de/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
after apt install -f the error occurs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-headers-5.2.0-kali2-common
The following packages will be upgraded:
linux-headers-5.2.0-kali2-common
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
Need to get 0 B/8,894 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 691895 files and directories currently installed.)
Preparing to unpack .../linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb ...
Unpacking linux-headers-5.2.0-kali2-common (5.2.9-1kali2) over (5.2.9-1kali1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb (--unpack):
unable to stat './usr/src/linux-headers-5.2.0-kali2-common/arch/arm' (which I was about to install): Structure needs cleaning
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-headers-5.2.0-kali2-common
The following packages will be upgraded:
linux-headers-5.2.0-kali2-common
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
Need to get 0 B/8,894 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 691895 files and directories currently installed.)
Preparing to unpack .../linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb ...
Unpacking linux-headers-5.2.0-kali2-common (5.2.9-1kali2) over (5.2.9-1kali1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb (--unpack):
unable to stat './usr/src/linux-headers-5.2.0-kali2-common/arch/arm' (which I was about to install): Structure needs cleaning
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-5.2.0-kali2-common_5.2.9-1kali2_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
I dont know how to solve this problem and hope some of you can help me....
I tried this one,too. But every time the same failure Message.
dpkg -i --force-overwrite path-to-the-deb-file