PDA

View Full Version : Problem to upgrade Kali Linux (hope no redundant)



Hortiks
2020-08-25, 11:30
Hi,
i'm a new user of Kali Linux, starting with the Kali Linux Training guide.

I'm trying to upgrade with
sudo apt-get upgrade
but i've got this error

ldconfig: Writing of cache data failed: No space left on device
dpkg: erreur de traitement du paquet libc-bin (--configure) :
installed libc-bin package post-installation script subprocess returned error exit status 1
Des erreurs ont ?t? rencontr?es pendant l'ex?cution :
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Following some advice on internet, i've this result after the command
sudo df -h | grep G

udev 3,8G 0 3,8G 0% /dev
/dev/mapper/user--pc--vg-root 11G 11G 0 100% /
tmpfs 3,9G 38M 3,8G 1% /dev/shm
/dev/mapper/user--pc--vg-tmp 1,8G 5,7M 1,7G 1% /tmp
/dev/mapper/user--pc--vg-var 2,3G 933M 1,2G 44% /var
/dev/mapper/user--pc--vg-home 899G 70G 784G 9% /home

for the ls -l /dev/mapper

total 0
crw------- 1 root root 10, 236 ao?t 25 09:38 control
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 sda3_crypt -> ../dm-0
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 user--pc--vg-home -> ../dm-5
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 user--pc--vg-root -> ../dm-1
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 user--pc--vg-swap_1 -> ../dm-3
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 user--pc--vg-tmp -> ../dm-4
lrwxrwxrwx 1 root root 7 ao?t 25 09:38 user--pc--vg-var -> ../dm-2


and for du --exclude="/home" -x -h -a / | sort -r -h | head -10

11G /usr
11G /
5,4G /usr/lib
4,5G /usr/share
1,6G /usr/lib/x86_64-linux-gnu
1,2G /usr/share/seclists
829M /usr/lib/python3/dist-packages
829M /usr/lib/python3
796M /usr/bin
564M /usr/lib/dradis

to be honest, here, i'm a little confused,
on forums, i can see to delete files, or to increase storage.

As the problems seems to be from /usr i would avoid to delete something, and as my Kali distrib is a new one, i just installed gedit on it + a dictionnary to test some bruteforces on my own devices, so i don't know why i should have a problem with space disk.