View Issue Details

IDProjectCategoryView StatusLast Update
0008464Kali LinuxKali Package Bugpublic2024-06-14 15:14
Reportertaki Assigned To 
PriorityimmediateSeverityblockReproducibilityalways
Status closedResolutionopen 
Product Version2023.3 
Summary0008464: E: Sub-process /usr/bin/dpkg returned an error code (1)
Description

So when i update kali linux with sudo apt update it shows this

Get:1 file:/run/live/medium kali-last-snapshot InRelease
Ign:1 file:/run/live/medium kali-last-snapshot InRelease
Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B]
Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B]
Get:3 file:/run/live/medium kali-last-snapshot Release.gpg
Ign:3 file:/run/live/medium kali-last-snapshot Release.gpg
Get:4 http://kali.download/kali kali-rolling InRelease [41.2 kB]
Reading package lists... Done
E: Release file for file:/run/live/medium/dists/kali-last-snapshot/Release is not valid yet (invalid for another 24d 7h 37min 13s). Updates for this repository will not be applied.
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 47d 21h 22min 3s). Updates for this repository will not be applied.

and when i upgrade with sudo apt full-upgrade -y it shows me this

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
binutils : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
binutils-x86-64-linux-gnu : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
libbinutils : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
libc6-dev : Depends: libc6 (= 2.37-7) but 2.37-6 is installed
libc6-i386 : Depends: libc6 (= 2.37-7) but 2.37-6 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

and when i try sudo apt --fix-broken install show me this

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
binutils-common libc6
Suggested packages:
glibc-doc libnss-nis libnss-nisplus
The following packages will be upgraded:
binutils-common libc6
2 upgraded, 0 newly installed, 0 to remove and 452 not upgraded.
39 not fully installed or removed.
Need to get 0 B/5,265 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 418244 files and directories currently installed.)
Preparing to unpack .../libc6_2.37-7_amd64.deb ...
Unpacking libc6:amd64 (2.37-7) over (2.37-6) ...
Setting up libc6:amd64 (2.37-7) ...
Setting up libstdc++6:amd64 (13.2.0-2) ...
(Reading database ... 418244 files and directories currently installed.)
Preparing to unpack .../binutils-common_2.41-4_amd64.deb ...
Unpacking binutils-common:amd64 (2.41-4) over (2.40.90.20230714-2) ...
dpkg: error processing archive /var/cache/apt/archives/binutils-common_2.41-4_amd64.deb (--unpack):
unable to make backup link of './usr/share/locale/ms/LC_MESSAGES/gprof.mo' before installing new version: Input/output error
Errors were encountered while processing:
/var/cache/apt/archives/binutils-common_2.41-4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

i have a kali live boot with persistence and this the third time reinstall it
i need ur help

Relationships

has duplicate 0008475 closeddaniruiz 0008464: E: Sub-process /usr/bin/dpkg returned an error code (1) 

Activities

Gamb1t

Gamb1t

2023-09-15 20:31

manager   ~0018483

Can you change your system time to be accurate and try again?

taki

taki

2023-09-16 08:43

reporter   ~0018484

i change the time it shows me this

┌──(kali㉿kali)-[~]
└─$ sudo apt update
Get:1 file:/run/live/medium kali-last-snapshot InRelease
Ign:1 file:/run/live/medium kali-last-snapshot InRelease
Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B]
Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B]
Get:3 file:/run/live/medium kali-last-snapshot Release.gpg
Ign:3 file:/run/live/medium kali-last-snapshot Release.gpg
Get:4 http://kali.download/kali kali-rolling InRelease [41.2 kB]
Get:5 http://kali.download/kali kali-rolling/main Sources [15.8 MB]
Get:6 http://kali.download/kali kali-rolling/contrib Sources [79.0 kB]
Get:6 http://kali.download/kali kali-rolling/contrib Sources [79.0 kB]
Get:8 http://kali.download/kali kali-rolling/main amd64 Packages [19.3 MB]
Get:9 http://kali.download/kali kali-rolling/main amd64 Contents (deb) [45.5 MB]
Get:10 http://kali.download/kali kali-rolling/contrib amd64 Packages [117 kB 2,483 kB/s 3s]
Get:11 http://kali.download/kali kali-rolling/contrib amd64 Contents (deb) [226 kB]
Get:12 http://kali.download/kali kali-rolling/non-free amd64 Packages [218 kB]
Get:13 http://kali.download/kali kali-rolling/non-free amd64 Contents (deb) [908 kB]
Fetched 82.2 MB in 42s (1,961 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
481 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Conflicting distribution: file:/run/live/medium kali-last-snapshot Release (expected kali-last-snapshot but got kali-rolling)

when i upgrade it shows me this

┌──(kali㉿kali)-[~]
└─$ sudo apt full-upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
binutils : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
binutils-x86-64-linux-gnu : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
libbinutils : Depends: binutils-common (= 2.41-4) but 2.40.90.20230714-2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

and i try sudo apt --fix-broken install it shows me this

┌──(kali㉿kali)-[~]
└─$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
binutils-common
The following packages will be upgraded:
binutils-common
1 upgraded, 0 newly installed, 0 to remove and 470 not upgraded.
40 not fully installed or removed.
Need to get 0 B/2,504 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
Setting up libsmartcols1:amd64 (2.39.2-1) ...
(Reading database ... 418244 files and directories currently installed.)
Preparing to unpack .../binutils-common_2.41-5_amd64.deb ...
Unpacking binutils-common:amd64 (2.41-5) over (2.40.90.20230714-2) ...
dpkg: error processing archive /var/cache/apt/archives/binutils-common_2.41-5_amd64.deb (--unpack):
unable to make backup link of './usr/share/locale/ms/LC_MESSAGES/gprof.mo' before installing new version: Input/output error
Errors were encountered while processing:
/var/cache/apt/archives/binutils-common_2.41-5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Cyberwhiz

Cyberwhiz

2023-09-18 02:35

reporter   ~0018489

Well, your error is probably caused by the kali ISO you installed it could be broken or something. So I guess you have to first point the sources.list file to match the official one for the USB live boot. Then try the update and full-upgrade command again. Use this page for reference https://www.kali.org/docs/usb/updating-kali-on-usb/

taki1

taki1

2023-09-27 00:39

reporter   ~0018512

ANY TIPS TO FIX THIS PROBLEME ??
THANKS

g0tmi1k

g0tmi1k

2024-06-14 15:14

administrator   ~0019436

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2023-09-14 09:49 taki New Issue
2023-09-15 20:31 Gamb1t Note Added: 0018483
2023-09-16 08:43 taki Note Added: 0018484
2023-09-18 02:35 Cyberwhiz Note Added: 0018489
2023-09-27 00:39 taki1 Note Added: 0018512
2023-09-27 11:38 daniruiz Relationship added has duplicate 0008475
2024-06-14 15:14 g0tmi1k Note Added: 0019436
2024-06-14 15:14 g0tmi1k Status new => closed