Update/Upgrade Issues

[Edited by Mod keeping main content]. Moving any current upgrade issues to this post. Please do not make new thread unless there is no upgrade/update thread open.

Hello everyone, I’m having issue while trying to upgrade my parrot.

When I try to upgrade using any option (like bellow)
apt-get upgrade
apt upgrade
apt dist-upgrade
apt full-upgrade

Redirection from https to 'http://sft.if.usp.br/parrot/pool/main/p/python-bleach/python3-bleach_3.1.2-0+deb10u1_all.deb' is forbidden [IP: 104.27.131.193 443]
Err:12 https://deb.parrot.sh/parrot rolling-security/main amd64 bluez-hcidump amd64 5.50-1.2~deb10u1
 E: Failed to fetch https://deb.parrot.sh/parrot/pool/main/c/chromium/chromium_80.0.3987.149-1~deb10u1_amd64.deb  Redirection from https to 'http://sft.if.usp.br/parrot/pool/main/c/chromium/chromium_80.0.3987.149-1~deb10u1_amd64.deb' is forbidden [IP: 104.27.131.193 443]

…content suppressed to make this post short…

TL;DR Trying to update I’ve receive this error message: Redirection from https to ‘http:…’ is forbidden

Content of sources.list

cat /etc/apt/sources.list.d/parrot.list
# this file was automatically generated by parrot-mirror-selector
deb https://deb.parrot.sh/parrot/ rolling main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling main contrib non-free
deb https://deb.parrot.sh/parrot/ rolling-security main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling-security main contrib non-free

Version:
uname -a
Linux parrot 5.4.0-4parrot1-amd64 #1 SMP Parrot 5.4.19-4parrot1 (2020-02-27) x86_64 GNU/Linux.

I’ve read some other users have similar issues, and they were advice to stop anonsurf or adding another DNS server on resolv.conf.

**I’m NOT using anonsiurf, and never use it **

also I verified if I can resolve the FQDN properly:

host deb.parrot.sh
deb.parrot.sh has address 104.27.130.193
deb.parrot.sh has address 104.27.131.193
deb.parrot.sh has IPv6 address 2606:4700:3037::681b:83c1
deb.parrot.sh has IPv6 address 2606:4700:3033::681b:82c1

Anyone knows how to solve this issue??

Thanks

[ Topic Pinned For A week ]

Apt sources list was just being updated on the servers (check docs.parrotlinux.org for current apt parrot.list) For now leaving upgrade/update questions in this thread as way too many posts were made today on essentially the same subject: update/forbidden errors. It confuses ppl.

Try parrot-upgrade command after making sure /etc/apt/sources.list.d/parrot.list is current with online docs.

Not fixed yet. It still shows the same error.

I had similar issue, solved it yesterday.
apt update didn’t work with anonsurf and couldn’t connect to clearnet even though I had an IP, resolvconf was fine, could ping to IPs but not URLs. Even though I tried several times to stop anonsurf.

The solution was to do:
$ sudo anonsurf dns
I think it’s the same as selecting from the menu “AnonSurf-> Set/Unset OpenNIC DNS service” (but someone who knows better can correct me if I’m wrong).
After that you can go make your updates. Hope it helps.

Finally solved by removing all content of /etc/apt/sources.list.d/parrot.list and adding one of the repo from https://docs.parrotlinux.org/mirror-list/ other than that was already there

No, it doesnt fix the error.
Beside parrot-upgrade is running apt.

Anyone has found a workaround to fix this?

└──╼ $cat /usr/bin/parrot-upgrade
#!/bin/bash
set -e
DEBIAN_FRONTEND=“noninteractive”
DEBIAN_PRIORITY=“critical”
DEBCONF_NOWARNINGS=“yes”
export DEBIAN_FRONTEND DEBIAN_PRIORITY DEBCONF_NOWARNINGS
apt update || echo failed to update index lists
dpkg --configure -a || echo failed to fix interrupted upgrades
apt --fix-broken --fix-missing install || echo failed to fix conflicts
apt -y --allow-downgrades --fix-broken --fix-missing dist-upgrade && echo “SO updated”
apt -y autoclean ; apt -y autoremove

Did you see @sudipghimire comment? Clear parrot.sh ones from your
/etc/apt/sources.list.d/parrot.list file. Replace with current:

deb https://deb.parrotlinux.org/parrot/ rolling main contrib non-free
#deb-src https://deb.parrotlinux.org/parrot/ rolling main contrib non-free
deb https://deb.parrotlinux.org/parrot/ rolling-security main contrib non-free
#deb-src https://deb.parrotlinux.org/parrot/ rolling-security main contrib non-free

try parrot-upgrade again.

I am noticing most of the posts above mention parrot.sh. parrotlinux.org apt list should work even if you happen to see a few forbidden mirror responses during the upgrade. It should finish if you have updated the apt list before parrot-upgrade.

Remember to check docs for current apt list changes. Hope this works for you.

Thanks for trying…but still having same error…
I’ve changed my parrot.list file. Same error :confused:
image

I have the solution

After spending the night looking for how to resolve this “Forbidden IP” error, I managed to add a specific repository.
I am Brazilian and not even the server that is hosted here was able to download the update repositories.

What I did, follow the steps.

nano /etc/apt/sources.list.d/parrot.list

erase everything that is written and paste this:

### Content of /etc/apt/sources.list.d/parrot.list:

deb https://deb.parrotlinux.org/parrot/ rolling main contrib non-free
#deb-src https://deb.parrotlinux.org/parrot/ rolling main contrib non-free
deb https://deb.parrotlinux.org/parrot/ rolling-security main contrib non-free
#deb-src https://deb.parrotlinux.org/parrot/ rolling-security main contrib non-free
deb https://deb.parrot.sh/parrot/ rolling main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling main contrib non-free
deb https://deb.parrot.sh/parrot/ rolling-security main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling-security main contrib non-free

after the last line add some directory from the list: https://docs.parrotlinux.org/mirror-list/

in my case I put:

deb http://mirrors.mit.edu/parrot/ rolling main contrib non-free

Ctrl + X,
Save.

Try again:

sudo apt-get update

and

sudo apt dist-upgrade

I hope I was helpfull.

2 Likes

Hi, I’m also from Brazil, and just adding

deb http://mirrors.mit.edu/parrot/ rolling main contrib non-free

on the last line of

/etc/apt/sources.list.d/parrot.list

I managed to update my system.
This solved my problem of forbidden IP and https to http convertion.

Try This:
sudo apt-get full-upgrade

Better use

sudo parrot-upgrade

3 Likes

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.