PDA

View Full Version : Updating Repositories



Lemon2135
2021-12-07, 12:26
Hello Guys

I am trying to update my repository, i have done this cmds so far
1. grep -v '#' /etc/apt/sources.list | sort -u
deb http://http.kali.org/kali kali-rolling main contrib non-free
2. echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" | sudo tee /etc/apt/sources.list
3. echo "deb http://http.kali.org/kali kali-bleeding-edge main contrib non-free" | sudo tee /etc/apt/sources.list.d/kali-bleeding-edge.list
4. sudo rm /etc/apt/sources.list.d/kali-bleeding-edge.list
5. sudo tee -a /etc/apt/sources.list<<EOF
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
EOF
6. sudo add-apt-repository --remove ppa.launchpad.net/qbittorrent-team/qbittorrent



but I am getting this result on terminal


Ign:1 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
Err:3 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy Release
404 Not Found [IP: 91.189.95.85 80]
Hit:2 http://kali.download/kali kali-last-snapshot InRelease
Hit:4 http://kali.download/kali kali-rolling InRelease
Hit:5 http://kali.download/kali kali-experimental 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 0x8a in position 58: invalid start byte
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (contrib/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (contrib/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
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
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (contrib/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3
W: Target Contents-deb (contrib/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:3


Any help will be appreciated. Thank you and have a nice day.