View Issue Details

IDProjectCategoryView StatusLast Update
0007638Kali LinuxGeneral Bugpublic2022-03-28 09:06
Reportermercolino Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2022.1 
Summary0007638: Kali 2022.1 can't upgrade packages
Description

While trying to upgrade Kali Linux 2022.1 the following error appears:

Get:1 http://kali.download/kali kali-rolling/main amd64 mc amd64 3:4.8.27-1 [541 kB]
Fetched 541 kB in 1s (698 kB/s)
(Reading database ... 316019 files and directories currently installed.)
Preparing to unpack .../mc_3%3a4.8.27-1_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/mc_3%3a4.8.27-1_amd64.deb (--unpack):
conffile name 'remove-on-upgrade /etc/mc/edit.spell.rc' is not an absolute pathname
Errors were encountered while processing:
/var/cache/apt/archives/mc_3%3a4.8.27-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The problems persists and after that there is no way to upgrade the packages, always fails in the same spot:

sudo apt upgrade 100 ⨯
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mc : Depends: mc-data (= 3:4.8.25-1) but 3:4.8.27-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt --fix-broken install does not fix the problem neither clearing the cache and updating again the repository

Steps To Reproduce

sudo apt update
sudo apt upgrade

Additional Information

cat /etc/os-release 100 ⨯
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2022.1"
VERSION_ID="2022.1"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

sudo cat /etc/apt/sources.list

See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

deb http://http.kali.org/kali kali-rolling main contrib non-free

Additional line for source packages

#deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Activities

daniruiz

daniruiz

2022-03-23 06:18

manager   ~0015930

It seems like there was an issue with the Midnight Commander version you installed. Try removing it and doing the complete update. Then install it again

sudo apt -y remove --autoremove mc
sudo apt clean
sudo apt update
sudo apt -y full-upgrade
sudo apt install mc

Issue History

Date Modified Username Field Change
2022-03-22 02:48 mercolino New Issue
2022-03-23 06:18 daniruiz Note Added: 0015930
2022-03-25 13:57 g0tmi1k Severity major => feature
2022-03-25 13:58 g0tmi1k Severity feature => minor
2022-03-28 09:06 daniruiz Assigned To => daniruiz
2022-03-28 09:06 daniruiz Status new => closed
2022-03-28 09:06 daniruiz Resolution open => no change required