sudo apt-get update - Connection Failed Error

Asked by Guru

Hi,

I am using Ubuntu Mate 18.04 in Rasberry PI 3B+. I am trying to install qt5(sudo apt-get install qt5-default), in order to do so, I gave the command sudo apt-get update. I encounter the following error:

ioz@ioz-desktop:~/Desktop$ sudo apt-get update
[sudo] password for ioz:
Hit:1 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.31 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.88.31 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.31 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.31 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Then, I tried to ping the following IPs/URL, as per the instruction from Ubuntu Forum

ioz@ioz-desktop:~/Desktop$ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=13.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=55 time=13.4 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=55 time=13.4 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 13.417/13.479/13.595/0.082 ms

ioz@ioz-desktop:~/Desktop$ ping -c 3 archive.ubuntu.com
^[[3~PING archive.ubuntu.com (91.189.88.162) 56(84) bytes of data.
64 bytes from yukinko.canonical.com (91.189.88.162): icmp_seq=1 ttl=50 time=164 ms
64 bytes from yukinko.canonical.com (91.189.88.162): icmp_seq=2 ttl=50 time=164 ms
64 bytes from yukinko.canonical.com (91.189.88.162): icmp_seq=3 ttl=50 time=164 ms

--- archive.ubuntu.com ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 164.784/164.816/164.848/0.469 ms
ioz@ioz-desktop:~/Desktop$ ^C
ioz@ioz-desktop:~/Desktop$ ping -c 3 91.189.88.162
PING 91.189.88.162 (91.189.88.162) 56(84) bytes of data.
64 bytes from 91.189.88.162: icmp_seq=1 ttl=50 time=164 ms
64 bytes from 91.189.88.162: icmp_seq=2 ttl=50 time=164 ms
64 bytes from 91.189.88.162: icmp_seq=3 ttl=50 time=164 ms

--- 91.189.88.162 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 164.611/164.770/164.903/0.120 ms

ioz@ioz-desktop:~/Desktop$ ping -c 3 91.189.88.31
PING 91.189.88.31 (91.189.88.31) 56(84) bytes of data.
64 bytes from 91.189.88.31: icmp_seq=1 ttl=49 time=172 ms
64 bytes from 91.189.88.31: icmp_seq=2 ttl=49 time=165 ms
64 bytes from 91.189.88.31: icmp_seq=3 ttl=49 time=165 ms

--- 91.189.88.31 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 165.345/167.868/172.526/3.330 ms

I have also tried to install the key, assuming that it could be missing.

ioz@ioz-desktop:~/Desktop$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192
Executing: /tmp/apt-key-gpghome.uaF5lhMEA9/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192
gpg: key 16126D3A3E5C1192: 3 signatures not checked due to missing keys
gpg: key 16126D3A3E5C1192: public key "Ubuntu Extras Archive Automatic Signing Key <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1

Post this, As per the instruction from Ubuntu forum, again, I executed the following commands, Please find the response:

ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ ubuntu-support-status

ioz@ioz-desktop:~/Desktop$ Support status summary of 'ioz-desktop':
Support: command not found
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ You have 1920 packages (97.9%) that can not/no-longer be downloaded
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ You have 41 packages (2.1%) that are unsupported
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ Run with --show-unsupported, --show-supported or --show-all to see more details

Command 'Run' not found, did you mean:

  command 'zun' from deb python-zunclient
  command 'zun' from deb python3-zunclient

Try: sudo apt install <deb name>

ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ cat /etc/dpkg/dpkg.cfg.d/multiarch
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory

Command 'cat:' not found, did you mean:

  command 'cat' from deb coreutils

Try: sudo apt install <deb name>

ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ dpkg --print-foreign-architectures
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo grep -R roxy /etc/apt/*
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ grep roxy /etc/environment
p://archive.ubuntu.com/ubuntu bionibash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ echo $http_proxy
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ echo $ftp_proxy
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ grep roxy /etc/bash.bashrc
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ grep roxy ~/.bashrc
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ cat /etc/apt/apt.conf
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ cat: /etc/apt/apt.conf: No such file or directory

Command 'cat:' not found, did you mean:

  command 'cat' from deb coreutils

Try: sudo apt install <deb name>

ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo fuser -vvv /var/lib/dpkg/lock
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo fuser -vvv /var/cache/apt/archives/lock
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ cat /etc/lsb-release
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ DISTRIB_ID=Ubuntu
ioz@ioz-desktop:~/Desktop$ DISTRIB_RELEASE=18.04
ioz@ioz-desktop:~/Desktop$ DISTRIB_CODENAME=bionic
ioz@ioz-desktop:~/Desktop$ DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ uname -a
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ Linux ioz-desktop 4.15.0-1032-raspi2 #34-Ubuntu SMP PREEMPT Wed Feb 6 11:50:42 UTC 2019 armv7l armv7l armv7l GNU/Linux
Linux: command not found
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm /var/lib/apt/lists/lock
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm /var/cache/apt/archives/lock
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm /var/lib/dpkg/lock
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory

Command 'cp:' not found, did you mean:

  command 'cpu' from deb cpu
  command 'cpp' from deb cpp
  command 'cp' from deb coreutils
  command 'cpm' from deb cpm
  command 'cpr' from deb node-cpr

Try: sudo apt install <deb name>

ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm -rf /var/lib/dpkg/updates/*
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm -rf /var/lib/apt/lists
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo rm /var/cache/apt/*.bin
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo mkdir /var/lib/apt/lists
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo mkdir /var/lib/apt/lists/partial
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get clean
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get autoclean
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Building dependency tree
Building: command not found
ioz@ioz-desktop:~/Desktop$ Reading state information... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo dpkg --configure -a
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ Setting up python-pip-whl (9.0.1-2) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Setting up python-keyring (3.5-1) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Setting up python-dbus-dev (1.2.0-2build2) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Setting up python-wheel (0.30.0-0.2) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Setting up python-dbus (1.2.0-2build2) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Remove stale byte-compiled files...
Remove: command not found
ioz@ioz-desktop:~/Desktop$ Setting up python-pip (9.0.1-2) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ Setting up python-secretstorage (2.0.0-1ubuntu1.1) ...
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ sudo dpkg --clear-avail
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get -f install
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Building dependency tree
Building: command not found
ioz@ioz-desktop:~/Desktop$ Reading state information... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0: command not found
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get --fix-missing install
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Building dependency tree
Building: command not found
ioz@ioz-desktop:~/Desktop$ Reading state information... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0: command not found
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get --purge autoremove
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Building dependency tree
Building: command not found
ioz@ioz-desktop:~/Desktop$ Reading state information... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0: command not found
do apt-get --fix-missing update -o APT::Cache-Limit=100000000sud
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Hit:1 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Ign:6 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Get:7 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Ign:8 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Get:9 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3584 B]
Ign:10 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Ign:12 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Get:13 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Ign:6 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:8 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:10 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:12 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:6 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:8 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:10 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:12 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Err:6 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
  404 Not Found [IP: 91.189.88.31 80]
Ign:8 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:10 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:12 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Reading package lists... Done
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 22h 34min 44s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 22h 35min 34s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 22h 34min 8s). Updates for this repository will not be applied.
ioz@ioz-desktop:~/Desktop$ Get:1 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease [15.9 kB]
Get:1: command not found
ioz@ioz-desktop:~/Desktop$ Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
ed.
ioz@iGet:2: command not found
ioz@ioz-desktop:~/Desktop$ Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3: command not found
ioz@ioz-desktop:~/Desktop$ Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4: command not found
ioz@ioz-desktop:~/Desktop$ Get:5 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic/main Sources [10.7 kB]
Get:5: command not found
ioz@ioz-desktop:~/Desktop$ Get:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6: command not found
ioz@ioz-desktop:~/Desktop$ Get:7 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic/main armhf Packages [17.6 kB]
Get:7: command not found
ioz@ioz-desktop:~/Desktop$ Ign:8 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:8: command not found
ioz@ioz-desktop:~/Desktop$ Get:9 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:9: command not found
ioz@ioz-desktop:~/Desktop$ Get:10 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic/main Translation-en [9368 B]
Get:10: command not found
ioz@ioz-desktop:~/Desktop$ Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:11: command not found
ioz@ioz-desktop:~/Desktop$ Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3584 B]
Get:12: command not found
ioz@ioz-desktop:~/Desktop$ Ign:13 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:13: command not found
ioz@ioz-desktop:~/Desktop$ Get:14 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:14: command not found
ioz@ioz-desktop:~/Desktop$ Ign:15 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:15: command not found
ioz@ioz-desktop:~/Desktop$ Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:16: command not found
ioz@ioz-desktop:~/Desktop$ Ign:8 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:8: command not found
ioz@ioz-desktop:~/Desktop$ Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:11: command not found
ioz@ioz-desktop:~/Desktop$ Ign:13 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:13: command not found
ioz@ioz-desktop:~/Desktop$ Ign:15 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:15: command not found
ioz@ioz-desktop:~/Desktop$ Ign:8 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:8: command not found
ioz@ioz-desktop:~/Desktop$ Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:11: command not found
ioz@ioz-desktop:~/Desktop$ Ign:13 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:13: command not found
ioz@ioz-desktop:~/Desktop$ Ign:15 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:15: command not found
ioz@ioz-desktop:~/Desktop$ Err:8 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
uErr:8: command not found
ioz@ioz-desktop:~/Desktop$ 404 Not Found [IP: 91.189.88.162 80]
404: command not found
ioz@ioz-desktop:~/Desktop$ Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
ionic-updates multiverse
    29 # debIgn:11: command not found
ioz@ioz-desktop:~/Desktop$ Ign:13 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:13: command not found
ioz@ioz-desktop:~/Desktop$ Ign:15 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:15: command not found
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 22h 36min 14s). Updates for this repository will not be applied.
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 22h 37min 5s). Updates for this repository will not be applied.
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 22h 35min 39s). Updates for this repository will not be applied.
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.24 80]
Hit:2 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.31 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.88.24 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.88.31 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.31 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.31 80]
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
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ioz@ioz-desktop:~/Desktop$ Err:1 http://archive.ubuntu.com/ubuntu bionic InReleaseErr:1: command not found
ioz@ioz-desktop:~/Desktop$ Connection failed [IP: 91.189.88.31 80]
Connection: command not found
ioz@ioz-desktop:~/Desktop$ Hit:2 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Hit:2: command not found
ioz@ioz-desktop:~/Desktop$ Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:3: command not found
ioz@ioz-desktop:~/Desktop$ Connection failed [IP: 91.189.88.162 80]
Connection: command not found
ioz@ioz-desktop:~/Desktop$ Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Err:4: command not found
ioz@ioz-desktop:~/Desktop$ Connection failed [IP: 91.189.88.31 80]
Connection: command not found
ioz@ioz-desktop:~/Desktop$ Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Err:5: command not found
ioz@ioz-desktop:~/Desktop$ Connection failed [IP: 91.189.88.162 80]
Connection: command not found
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.31 80]
W:: command not found
ioz@ioz-desktop:~/Desktop$ W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.162 80]
W:: command not found
ioz@ioz-desktop:~/Desktop$ W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.31 80]
W:: command not found
ioz@ioz-desktop:~/Desktop$ W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.162 80]
W:: command not found
ioz@ioz-desktop:~/Desktop$ W: Some index files failed to download. They have been ignored, or old ones used instead.
W:: command not found
ioz@ioz-desktop:~/Desktop$ Reading package lists... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Building dependency tree
Building: command not found
ioz@ioz-desktop:~/Desktop$ Reading state information... Done
Reading: command not found
ioz@ioz-desktop:~/Desktop$ Calculating upgrade... Done
Calculating: command not found
ioz@ioz-desktop:~/Desktop$ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0: command not found
ioz@ioz-desktop:~/Desktop$ ioz@ioz-desktop:~/Desktop$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
bash: ioz@ioz-desktop:~/Desktop$: No such file or directory
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
ioz@ioz-desktop:~/Desktop$
ioz@ioz-desktop:~/Desktop$ 1# deb cdrom:[Xubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main multiverse restricted universe
bash: syntax error near unexpected token `('
ioz@ioz-desktop:~/Desktop$ 2to3-2.7
At least one file or directory argument required.
Use --help to show usage.
ioz@ioz-desktop:~/Desktop$ 3# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
3#: command not found
ioz@ioz-desktop:~/Desktop$ 411toppm # newer versions of the distribution.
411toppm: Reading (64x48): -

Can you please help me resolve this issue.

Thanks
Guru

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

1. Apparently you have pasted the output that we would like to see, into the command window, which caused much meaningless output.

2. The first error message "Connection failed [IP: 91.189.88.162 80]" indicates a network problem. I assume that this was only temporary. because further down in your output there are successful connections to the repository servers shown.

3. The error message "E: Release file for (...) is not valid yet (invalid for another 22h 35min 39s)." indicates that your system clock is wrong (probably set to yesterday).

I suggest that you:

a. correct the system clock to show correct time and time zone

b. re-run the command
sudo apt update

c. copy/paste the output that you receive as a new message into this question document.

Revision history for this message
Guru (guruioz) said :
#2

Hi,

Please note, I corrected the time and executed the update command, Please find the results

ioz@ioz-desktop:~/Desktop$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.31 80]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.24 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.88.24 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.31 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.24 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
ioz@ioz-desktop:~/Desktop$ sudo apt update
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  Connection failed [IP: 91.189.88.162 80]
Hit:2 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Connection failed [IP: 91.189.88.24 80]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  Connection failed [IP: 91.189.88.24 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.24 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
ioz@ioz-desktop:~/Desktop$

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

There seems to be a network connection problem.

Can you successfully ping archive.ubuntu.com immediately before and after the failed connection?

What do you get for the command
wget --verbose http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease

Have you tried reconfiguring your package management system to use a different repository server and do you get similar errors then?

Revision history for this message
Guru (guruioz) said :
#4

Hi,

Yes, I edited the sources.list file and added "us.archive.ubuntu.com ", instead of archive.ubuntu.com. I am from India, Can I try in.archive.ubuntu.com

Please find the results:

ioz@ioz-desktop:~/Desktop$ ping us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.26) 56(84) bytes of data.
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=48 time=247 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=48 time=247 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=4 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=5 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=6 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=7 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=8 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=9 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=10 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=11 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=12 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=13 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=14 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=15 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=16 ttl=48 time=246 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=17 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=18 ttl=48 time=246 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=19 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=20 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=21 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=22 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=23 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=24 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=25 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=26 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=27 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=28 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=29 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=30 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=31 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=32 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=33 ttl=48 time=247 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=34 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=35 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=36 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=37 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=38 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=39 ttl=48 time=245 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=40 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=41 ttl=48 time=243 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=42 ttl=48 time=244 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=43 ttl=48 time=245 ms
^C
--- us.archive.ubuntu.com ping statistics ---
44 packets transmitted, 43 received, 2% packet loss, time 43053ms

ioz@ioz-desktop:~/Desktop$ wget --verbose http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease
--2019-07-26 15:39:29-- http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease
Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.88.149, 91.189.88.162, 91.189.88.24, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.88.149|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88724 (87K)
Saving to: ‘InRelease’

InRelease 100%[======>] 86.64K 191KB/s in 0.5s

2019-07-26 15:39:30 (191 KB/s) - ‘InRelease’ saved [88724/88724]

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Your output shows, that both ping and wget work correctly.
I do not see any reason, that apt update should fail.

I suggest that you re-try "sudo apt update", and if it fails, try a ping on the failing server immediately afterwards.

Revision history for this message
Guru (guruioz) said :
#6

Hi,

I have changed the internet connection as well, but still getting the error, but I am able to ping the url.

I am not sure, why it is happening, Can you please suggest me any ideas to rectify this issue? I am using Rasberry PI 3b+, its arm7l architecture, 32 bit.

ioz@ioz-desktop:~/Desktop$ ping us.archive.ubuntu.com
PING us.archive.ubuntu.com(hanger.canonical.com (2001:67c:1562::19)) 56 data bytes
64 bytes from hanger.canonical.com (2001:67c:1562::19): icmp_seq=1 ttl=48 time=247 ms
64 bytes from hanger.canonical.com (2001:67c:1562::19): icmp_seq=2 ttl=48 time=258 ms
64 bytes from hanger.canonical.com (2001:67c:1562::19): icmp_seq=3 ttl=48 time=261 ms
64 bytes from hanger.canonical.com (2001:67c:1562::19): icmp_seq=4 ttl=48 time=268 ms
^C
--- us.archive.ubuntu.com ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 4000ms
rtt min/avg/max/mdev = 247.809/259.237/268.706/7.551 ms
ioz@ioz-desktop:~/Desktop$ clear

ioz@ioz-desktop:~/Desktop$ sudo apt update
[sudo] password for ioz:
Hit:1 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages [968 kB]
Ign:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages [3,592 B]
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages [3,592 B]
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
Ign:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Ign:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages [3,824 B]
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
Err:6 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages
  404 Not Found [IP: 91.189.91.23 80]
Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages [3,327 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages [3,327 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages [3,327 kB]
Err:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
  404 Not Found [IP: 91.189.91.23 80]
Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:31 http://us.archive.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:32 http://us.archive.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:33 http://us.archive.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Ign:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:31 http://us.archive.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:32 http://us.archive.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:33 http://us.archive.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Err:24 http://us.archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
  404 Not Found [IP: 91.189.91.23 80]
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:31 http://us.archive.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:32 http://us.archive.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:33 http://us.archive.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Err:30 http://us.archive.ubuntu.com/ubuntu bionic-security/main armhf Packages
  404 Not Found [IP: 91.189.91.23 80]
Ign:31 http://us.archive.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:32 http://us.archive.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:33 http://us.archive.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Fetched 494 kB in 12s (43.0 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-security/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ioz@ioz-desktop:~/Desktop$

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The message no longer is an unexpected"Connection failed" but now it is "404 Not Found" which is correct.
If you are using a processor architecture different from i386 and amd64, then you have to use specific repository servers.

The repository servers archive.ubuntu.com and *.archive.ubuntu.com have only software for Intel/AMD processors, and for all other architectures (arm, ppc, s390) you have to use the repository server ports.ubuntu.com

To be able to tell how to change the configuration of your package management system to use the correct repository servers, please provide the output of the following commands:

uname -a
lsb_release -crid
dpkg --print-architecture
dpkg --print-foreign-architectures
cat /etc/apt/sources.list

(This still does not explain, why you had "Connection failed" in the past.)

Revision history for this message
Guru (guruioz) said :
#8

Hi,

Thanks for correcting me.

I will replace all the URL strings, archive.ubuntu.com to ports.ubuntu.com and test again tomorrow.

Thanks
Guru

Revision history for this message
Guru (guruioz) said :
#9

Hi,

Please find the output for the following commands:

ioz@ioz-desktop:~/Desktop$ uname -a
Linux ioz-desktop 4.15.0-1032-raspi2 #34-Ubuntu SMP PREEMPT Wed Feb 6 11:50:42 UTC 2019 armv7l armv7l armv7l GNU/Linux
ioz@ioz-desktop:~/Desktop$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
ioz@ioz-desktop:~/Desktop$ dpkg --print-architecture
armhf
ioz@ioz-desktop:~/Desktop$ dpkg --print-foreign-architectures
ioz@ioz-desktop:~/Desktop$ cat /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ trusty main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main
ioz@ioz-desktop:~/Desktop$

Note:I have changed the sources.list based on the following link:

https://askubuntu.com/questions/705895/how-to-fix-a-failed-to-fetch-binary-armhf-packages-error-during-apt-get-update

Revision history for this message
Guru (guruioz) said :
#10

Hi,

And Now, If I try to install anything, I get the following error

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

For Example: I want to Install Qt5-Default:

ioz@ioz-desktop:~/Desktop$ sudo apt-get install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qt5-default : Depends: qtbase5-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ioz@ioz-desktop:~/Desktop$ sudo apt-get install qtbase5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qtbase5-dev : Depends: libgles2-mesa-dev or
                        libgles2-dev but it is not installable
               Depends: libqt5concurrent5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5core5a (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5dbus5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5gui5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5network5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5printsupport5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5sql5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5test5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5widgets5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libqt5xml5 (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: libxext-dev but it is not going to be installed
               Depends: qt5-qmake (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Depends: qtbase5-dev-tools (= 5.9.5+dfsg-0ubuntu1) but 5.9.5+dfsg-0ubuntu2.1 is to be installed
               Recommends: libqt5opengl5-dev (= 5.9.5+dfsg-0ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ioz@ioz-desktop:~/Desktop$

Can you please advise me to fix this issue as well.

Thanks
Guru

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

What you have done was a good idea, but was wrong.
You are running Ubuntu bionic, but have overwritten your sources.list file with a version for Ubuntu trusty.

Unfortunately you have not shown the contents of the sources.list file before that modification, and I do not know for sure which repositories you had activated.

I guess the contents of the sources.list file should be:

deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe mutiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe mutiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updares main restricted universe mutiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe mutiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe mutiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe mutiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe mutiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe mutiverse

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#12

Sorry, typo error, again:

deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

Revision history for this message
Guru (guruioz) said :
#13

Hi,

I will try to update sources.list by tomorrow and check again

Thanks
Guru

Revision history for this message
Guru (guruioz) said :
#14

Thanks Manfred Hampl, that solved my question.