LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2022, 08:56 AM   #1
isd
LQ Newbie
 
Registered: Nov 2022
Posts: 1

Rep: Reputation: 0
Problev to update.


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";
};
 
Old 12-11-2022, 04:40 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,966

Rep: Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332
Exactly what os do you have?
 
1 members found this post helpful.
Old 12-11-2022, 06:18 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,382

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Welcome to LQ, isd.

OP has Kali Linux, to judge by the links. He may not have read this, although it's in the same forum
using-kali-linux-please-read

@OP, you are better viewing Kali Linux as a pen-testing tool, and not an OS. If you want to learn linux, install an OS. Kali is a tool for a specific job, and even the experts who use it don't get everything working. They just use it's suite of programs.
 
1 members found this post helpful.
Old 12-11-2022, 06:55 AM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Post

I recommend Sid, nicknamed after the kid who breaks toys: https://cdimage.debian.org/images/un...d_d-i/current/

Kali Linux, *buntu, Mint, antiX,,, &sea are Debian-derivatives why not cut out the meddle-people ^netinst it?

I think even Slackware has a netinst but that's been years for me!

(I got into Debian because it was said more developers used it than any other Linux? More links in my "signature.":)

Last edited by jamison20000e; 12-11-2022 at 06:57 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Fedora2 using "yum update" problem chinaundead Fedora 9 04-27-2004 09:25 AM
Yum Update complains of missing file to do update, but file exists! davidas Linux - Newbie 0 03-28-2004 11:14 AM
KDE update and RH 9.0 Kernel update massacre Linux - Newbie 1 02-02-2004 06:13 PM
GENTOO.. "etc-update" versus Manual update opinions.. l0f33t Linux - Distributions 2 09-17-2003 04:16 AM
Slackware Security Update: GDM security update phoeniXflame Slackware 2 08-26-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration