Hello evryone!
I tryed to update and got the following:
apt update
Hit:1
http://old.kali.org/kali sana InRelease
Hit:3
http://old.kali.org/kali moto InRelease
Hit:2
http://kali.koyanet.lv/kali kali-rolling InRelease
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 27, in <module>
col.create(db)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 95, in create
self._fill_commands(con)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 143, in _fill_commands
self._parse_single_contents_file(con, f, fp.stdout)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 239, in _parse_single_contents_file
l = l.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 19: invalid continuation byte
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
┌──(root㉿kali)-[/etc/apt/apt.conf.d]
└─# ls
01autoremove 02autoremove-postgresql 50apt-file.conf 50command-not-found 50kali 70debconf 80debtags
┌──(root㉿kali)-[/etc/apt/apt.conf.d]
└─# cat 50command-not-found
## This file is provided by command-not-found(1) to download
## Commands metadata files.
Acquire::IndexTargets {
# The deb822 metadata files
deb::CNF {
MetaKey "$(COMPONENT)/cnf/Commands-$(NATIVE_ARCHITECTURE)";
ShortDescription "Commands-$(NATIVE_ARCHITECTURE)";
Description "$(RELEASE)/$(COMPONENT) $(NATIVE_ARCHITECTURE) c-n-f Metadata";
DefaultEnabled "false";
};
};
# Refresh AppStream cache when APT's cache is updated (i.e. apt update)
APT::Update::Post-Invoke-Success {
"if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db /dev/null; fi";
};