└─$ sudo apt update
Hit:1 http://kali.download/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 282, in _parse_single_contents_file
priority = component_priorities[component]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'non-free-firmware'
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
From kali-tweaks
└─$ kali-tweaks
> Writing changes to /etc/apt/sources.list
> New repository: deb http://kali.download/kali kali-experimental main contrib non-free
> Installing to: '/etc/apt/sources.list.d/kali-experimental.list'
>>> Updating APT cache
> $ sudo apt-get update
Get:1 http://kali.download/kali kali-rolling InRelease [30.6 kB]
Get:2 http://kali.download/kali kali-experimental InRelease [23.0 kB]
Get:3 http://kali.download/kali kali-rolling/non-free Sources [132 kB]
Get:4 http://kali.download/kali kali-rolling/main Sources [15.7 MB]
Get:5 http://kali.download/kali kali-rolling/contrib Sources [77.9 kB]
Get:6 http://kali.download/kali kali-rolling/main amd64 Packages [19.5 MB]
Get:7 http://kali.download/kali kali-rolling/main amd64 Contents (deb) [45.4 MB]
Get:8 http://kali.download/kali kali-rolling/contrib amd64 Packages [116 kB]
Get:9 http://kali.download/kali kali-rolling/contrib amd64 Contents (deb) [172 kB]
Get:10 http://kali.download/kali kali-rolling/non-free amd64 Packages [222 kB]
Get:11 http://kali.download/kali kali-rolling/non-free amd64 Contents (deb) [931 kB]
Get:12 http://kali.download/kali kali-experimental/main amd64 Packages [59.2 kB]
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 282, in _parse_single_contents_file
priority = component_priorities[component]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'non-free-firmware'
Fetched 82.4 MB in 11s (7,592 kB/s)
Reading package lists...
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
> Error, restoring original sources.list files
┏━(Something went wrong!)
┃ Couldn't update the APT cache
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> Press Enter to continue...
I initially thought I broke my install somehow, so I did a fresh install, and I get this error. I've done nothing but install kali and try to update.