apt-get update and install does not work

Hi there I have a problem with apt-get command not working.
My output is this

┌─[root@tkr-30g6]─[/home/tkr]
└──╼ #sudo apt-get update
Err:1 https://packages.sury.org/php n/a InRelease
Temporary failure resolving ‘packages.sury.org
Err:2 https://mirror.parrot.sh/mirrors/parrot rolling InRelease
Temporary failure resolving ‘mirror.parrot.sh’
Err:3 https://mirror.parrot.sh/mirrors/parrot rolling-security InRelease
Temporary failure resolving ‘mirror.parrot.sh’
Reading package lists… Done
Building dependency tree
Reading state information… Done
2 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
W: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling/InRelease Temporary failure resolving ‘mirror.parrot.sh’
W: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling-security/InRelease Temporary failure resolving ‘mirror.parrot.sh’
W: Failed to fetch https://packages.sury.org/php/dists/n/a/InRelease Temporary failure resolving ‘packages.sury.org
W: Some index files failed to download. They have been ignored, or old ones used instead.
┌─[root@tkr-30g6]─[/home/tkr]
└──╼ #sudo apt-get install thunderbird
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
cryptsetup-nuke-password dwarfdump golang-1.14 golang-1.14-doc
golang-1.14-go golang-1.14-src libarmadillo9 libasync-mergepoint-perl
libcdio18 libcfitsio8 libcollectdclient1 libdc1394-22 libdistorm3-3
libdwarf1 libfuture-perl libilmbase24 libio-async-loop-epoll-perl
libio-async-perl liblinux-epoll-perl libmdb2 libmdbsql2 libmetrics-any-perl
libobjc-9-dev libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0
libpgm-5.2-0 libplacebo29 libpoppler82 libpython2.7 libraw19 libsereal-perl
libsnmp35 libstd-rust-1.45 libstruct-dumb-perl libtest-metrics-any-perl
libtest-refcount-perl libtsk13 libusrsctp1 libyara3 python-attr python-cairo
python-certifi python-contextlib2 python-crypto python-gevent
python-gobject-2 python-greenlet python-html5lib python-idna
python-ipaddress python-libxml2 python-libxslt1 python-lxml python-numpy
python-olefile python-packaging python-pil python-pkg-resources python-py
python-pyparsing python-six python-urllib3 python-wcwidth
python-webencodings python-yara python3-chameleon python3-flask-restless
python3-grequests python3-mimeparse python3-mimerender python3-waitress
python3-webtest python3-zope.component python3-zope.event
python3-zope.hookable ruby-arel ruby-chunky-png ruby-rqrcode
volatility-tools
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
lightning
The following NEW packages will be installed:
lightning thunderbird
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 35.9 MB of archives.
After this operation, 149 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 https://mirror.parrot.sh/mirrors/parrot rolling/main amd64 thunderbird amd64 1:68.12.0-1
Temporary failure resolving ‘mirror.parrot.sh’
Err:2 https://mirror.parrot.sh/mirrors/parrot rolling/main amd64 lightning all 1:68.12.0-1
Temporary failure resolving ‘mirror.parrot.sh’
E: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/pool/main/t/thunderbird/thunderbird_68.12.0-1_amd64.deb Temporary failure resolving ‘mirror.parrot.sh’
E: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/pool/main/t/thunderbird/lightning_68.12.0-1_all.deb Temporary failure resolving ‘mirror.parrot.sh’
E: Unable to fetch some ar

I would appreciate it if I could hear your support.

Sincerey
To sh

1 Like

Can you ping your router IP or 8.8.8.8?

1 Like

The good news is that there are no updates for about a week now. Parrot moved into “appliace” territory and a lot of things don’t work. Some of other package managers like gnome-softwere were in my opinion a better idea.
Try Synaptic to see if that works first. See if you start anon-surf will get you some relief when you try apt or synaptic. If a VPN does not work either it is time to backup your data after a bleachbit (root) with wipe free space and start from scratch.

1 Like

Hi sorry for such a late reply.
This is my output of ping. Am I doing it right ??
┌─[tkr@tkr-30g6]─[~]
└──╼ $sudo ping mirror.parrot.sh/parrot/misc/openbooks/
[sudo] password for tkr:
ping: mirror.parrot.sh/parrot/misc/openbooks/: Name or service not known
┌─[✗]─[tkr@tkr-30g6]─[~]
└──╼ $

Tosh

1 Like

Try

┌─[tkr@tkr-30g6]─[~]
└──╼ $ping 8.8.8.8

Since the Parrot repository is up, I’m thinking you don’t have a network connection.

BTW, with Parrot we don’t do sudo apt-get update, we do
┌─[tkr@tkr-30g6]─[~]
└──╼ $sudo parrot-upgrade

https://docs.parrotlinux.org/faq

1 Like

here’s my output.
It’s not upgraded yet,

┌─[tkr@tkr-30g6]─[~]
└──╼ $sudo parrot-upgrade
[sudo] password for tkr: 
Sorry, try again.
[sudo] password for tkr: 
Ign:1 https://packages.sury.org/php n/a InRelease                              
Err:2 https://mirror.parrot.sh/mirrors/parrot rolling InRelease
  403  Forbidden [IP: 104.27.130.193 443]
Err:3 https://packages.sury.org/php n/a Release
  404  Not Found [IP: 104.31.95.169 443]
Err:4 https://mirror.parrot.sh/mirrors/parrot rolling-security InRelease
  403  Forbidden [IP: 104.27.130.193 443]
Reading package lists... Done
E: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling/InRelease  403  Forbidden [IP: 104.27.130.193 443]
E: The repository 'https://mirror.parrot.sh/mirrors/parrot rolling InRelease' is no longer signed.
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.
E: The repository 'https://packages.sury.org/php n/a 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.
E: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling-security/InRelease  403  Forbidden [IP: 104.27.130.193 443]
E: The repository 'https://mirror.parrot.sh/mirrors/parrot rolling-security InRelease' is no longer signed.
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.
failed to update index lists
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cryptsetup-nuke-password dwarfdump golang-1.14 golang-1.14-doc
  golang-1.14-go golang-1.14-src libarmadillo9 libasync-mergepoint-perl
  libcdio18 libcfitsio8 libcollectdclient1 libdc1394-22 libdistorm3-3
  libdwarf1 libfuture-perl libilmbase24 libio-async-loop-epoll-perl
  libio-async-perl liblinux-epoll-perl libmdb2 libmdbsql2 libmetrics-any-perl
  libobjc-9-dev libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0
  libpgm-5.2-0 libplacebo29 libpoppler82 libpython2.7 libraw19 libsereal-perl
  libsnmp35 libstd-rust-1.45 libstruct-dumb-perl libtest-metrics-any-perl
  libtest-refcount-perl libtsk13 libusrsctp1 libyara3 python-attr python-cairo
  python-certifi python-contextlib2 python-crypto python-gevent
  python-gobject-2 python-greenlet python-html5lib python-idna
  python-ipaddress python-libxml2 python-libxslt1 python-lxml python-numpy
  python-olefile python-packaging python-pil python-pkg-resources python-py
  python-pyparsing python-six python-urllib3 python-wcwidth
  python-webencodings python-yara python3-chameleon python3-flask-restless
  python3-grequests python3-mimeparse python3-mimerender python3-waitress
  python3-webtest python3-zope.component python3-zope.event
  python3-zope.hookable ruby-arel ruby-chunky-png ruby-rqrcode
  volatility-tools
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cryptsetup-nuke-password dwarfdump golang-1.14 golang-1.14-doc
  golang-1.14-go golang-1.14-src libarmadillo9 libasync-mergepoint-perl
  libcdio18 libcfitsio8 libcollectdclient1 libdc1394-22 libdistorm3-3
  libdwarf1 libfuture-perl libilmbase24 libio-async-loop-epoll-perl
  libio-async-perl liblinux-epoll-perl libmdb2 libmdbsql2 libmetrics-any-perl
  libobjc-9-dev libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0
  libpgm-5.2-0 libplacebo29 libpoppler82 libpython2.7 libraw19 libsereal-perl
  libsnmp35 libstd-rust-1.45 libstruct-dumb-perl libtest-metrics-any-perl
  libtest-refcount-perl libtsk13 libusrsctp1 libyara3 python-attr python-cairo
  python-certifi python-contextlib2 python-crypto python-gevent
  python-gobject-2 python-greenlet python-html5lib python-idna
  python-ipaddress python-libxml2 python-libxslt1 python-lxml python-numpy
  python-olefile python-packaging python-pil python-pkg-resources python-py
  python-pyparsing python-six python-urllib3 python-wcwidth
  python-webencodings python-yara python3-chameleon python3-flask-restless
  python3-grequests python3-mimeparse python3-mimerender python3-waitress
  python3-webtest python3-zope.component python3-zope.event
  python3-zope.hookable ruby-arel ruby-chunky-png ruby-rqrcode
  volatility-tools
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  linux-headers-amd64 linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Am I supposed to be not using anonsurf ?

Sincerely

Toshi

1 Like

Yeah. Shut off anonsurf for mirror upgrades\installs.

Some users can use AnonSurf to update and upgrade successfully. Some couldnt. It is the firewall problem. But why? We had to use firewall because of some naughty “friends” tried ddosing our server.

1 Like

I shut down my anonsurf to do sudo parrot-upgrade but it still does not work,here’s my output.

┌─[tkr@tkr-30g6]─[~]
└──╼ $sudo parrot-upgrade
[sudo] password for tkr:
Err:1 https://mirror.parrot.sh/mirrors/parrot rolling InRelease
Temporary failure resolving ‘mirror.parrot.sh’
Err:2 https://packages.sury.org/php n/a InRelease
Temporary failure resolving ‘packages.sury.org
Err:3 https://mirror.parrot.sh/mirrors/parrot rolling-security InRelease
Temporary failure resolving ‘mirror.parrot.sh’
Reading package lists… Done
Building dependency tree
Reading state information… Done
2 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
W: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling/InRelease Temporary failure resolving ‘mirror.parrot.sh’
W: Failed to fetch https://mirror.parrot.sh/mirrors/parrot/dists/rolling-security/InRelease Temporary failure resolving ‘mirror.parrot.sh’
W: Failed to fetch https://packages.sury.org/php/dists/n/a/InRelease Temporary failure resolving ‘packages.sury.org
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
cryptsetup-nuke-password dwarfdump golang-1.14 golang-1.14-doc
golang-1.14-go golang-1.14-src libarmadillo9 libasync-mergepoint-perl
libcdio18 libcfitsio8 libcollectdclient1 libdc1394-22 libdistorm3-3
libdwarf1 libfuture-perl libilmbase24 libio-async-loop-epoll-perl
libio-async-perl liblinux-epoll-perl libmdb2 libmdbsql2 libmetrics-any-perl
libobjc-9-dev libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0
libpgm-5.2-0 libplacebo29 libpoppler82 libpython2.7 libraw19 libsereal-perl
libsnmp35 libstd-rust-1.45 libstruct-dumb-perl libtest-metrics-any-perl
libtest-refcount-perl libtsk13 libusrsctp1 libyara3 python-attr python-cairo
python-certifi python-contextlib2 python-crypto python-gevent
python-gobject-2 python-greenlet python-html5lib python-idna
python-ipaddress python-libxml2 python-libxslt1 python-lxml python-numpy
python-olefile python-packaging python-pil python-pkg-resources python-py
python-pyparsing python-six python-urllib3 python-wcwidth
python-webencodings python-yara python3-chameleon python3-flask-restless
python3-grequests python3-mimeparse python3-mimerender python3-waitress
python3-webtest python3-zope.component python3-zope.event
python3-zope.hookable ruby-arel ruby-chunky-png ruby-rqrcode
volatility-tools
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
cryptsetup-nuke-password dwarfdump golang-1.14 golang-1.14-doc
golang-1.14-go golang-1.14-src libarmadillo9 libasync-mergepoint-perl
libcdio18 libcfitsio8 libcollectdclient1 libdc1394-22 libdistorm3-3
libdwarf1 libfuture-perl libilmbase24 libio-async-loop-epoll-perl
libio-async-perl liblinux-epoll-perl libmdb2 libmdbsql2 libmetrics-any-perl
libobjc-9-dev libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0
libpgm-5.2-0 libplacebo29 libpoppler82 libpython2.7 libraw19 libsereal-perl
libsnmp35 libstd-rust-1.45 libstruct-dumb-perl libtest-metrics-any-perl
libtest-refcount-perl libtsk13 libusrsctp1 libyara3 python-attr python-cairo
python-certifi python-contextlib2 python-crypto python-gevent
python-gobject-2 python-greenlet python-html5lib python-idna
python-ipaddress python-libxml2 python-libxslt1 python-lxml python-numpy
python-olefile python-packaging python-pil python-pkg-resources python-py
python-pyparsing python-six python-urllib3 python-wcwidth
python-webencodings python-yara python3-chameleon python3-flask-restless
python3-grequests python3-mimeparse python3-mimerender python3-waitress
python3-webtest python3-zope.component python3-zope.event
python3-zope.hookable ruby-arel ruby-chunky-png ruby-rqrcode
volatility-tools
Use ‘sudo apt autoremove’ to remove them.
The following packages have been kept back:
linux-headers-amd64 linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Thanks
Tosh

1 Like

Please run sudo dnstool static opennic or sudo dnstool dynamic dhcp

1 Like

Here’s the output
┌─[tkr@tkr-30g6]─[~]
└──╼ $sudo dnstool static opennic
[sudo] password for tkr:
[STATUS]

  • Method: Static
  • Address: OpenNIC
    [*] Completed!
1 Like

Nah it is for fixing the dns problem on your machine. AFter this command, you should upgrade system just fine.

1 Like

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