sudo apt-get update errors
Posted: Tuesday 14 May 2019 19:18
Trying to run
sudo apt-get update
do get loads of errors like
W: Failed to fetch http://raspberrypi.collabora.com/dists/ ... elease.gpg Something wicked happened resolving 'host:http' (-5 - No
address associated with hostname)
Already Tried to search the forum did not manage to solve the issue
ping google.com
responds normal
--- google.com ping statistics ---
114 packets transmitted, 114 received, 0% packet loss, time 113173ms
rtt min/avg/max/mdev = 19.390/24.136/42.980/5.536 ms
pi@raspberrypi ~ $ ping -c 1 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_req=1 ttl=53 time=22.4 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.484/22.484/22.484/0.000 ms
cat /etc/hostname
raspberrypi
hostname
raspberrypi
hostname -A
raspberrypi.local
hostname -i
127.0.1.1
hostname -I
192.168.2.58
cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
cat /etc/resolv.conf
8.8.8.8
sudo sh -c "echo 8.8.8.8 >/etc/resolv.conf"
(does not show anything)
ping -c 1 -W 5 google.com
ping: unknown host google.com
/etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://mirror.ox.ac.uk/sites/archive.ra ... /raspbian/ wheezy main contrib non-free rpi
host google.co.uk
;; connection timed out; no servers could be reached
host www.pythonforbeginners.com
;; connection timed out; no servers could be reached
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ping -c3 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_req=1 ttl=53 time=20.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=20.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=20.3 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 20.301/20.394/20.517/0.188 ms
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.2.254 (192.168.2.254) 0.636 ms 0.357 ms 0.424 ms
2 195.190.228.186 (195.190.228.186) 15.410 ms 15.705 ms 17.310 ms
3 * * *
4 145.54.47.246 (145.54.47.246) 22.802 ms 23.646 ms 25.011 ms
5 145.54.47.250 (145.54.47.250) 25.401 ms 26.269 ms 27.612 ms
6 139.156.156.133 (139.156.156.133) 28.007 ms 19.106 ms 19.797 ms
7 139.156.127.73 (139.156.127.73) 21.917 ms 20.353 ms 139.156.127.77 (139.156.127.77) 21.430 ms
8 * * *
9 8.8.8.8 (8.8.8.8) 23.468 ms 108.170.236.137 (108.170.236.137) 25.081 ms 8.8.8.8 (8.8.8.8) 24.936 ms
pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.3G 4.9G 2.1G 71% /
devtmpfs 484M 0 484M 0% /dev
tmpfs 98M 204K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 196M 0 196M 0% /run/shm
/dev/mmcblk0p1 56M 24M 33M 43% /boot
none 488M 0 488M 0% /sys/fs/cgroup
pi@raspberrypi ~ $ ls
cmake-3.2.2 homepidomoticzscriptscheck_device_online.py
cmake-3.2.2.tar.gz libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
config.json libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb.1
dead.letter libudev1_234-3_armhf.deb
domoticz node_latest_armhf.deb
homebridge node_modules
Thanks
Updated to the Latest version of Debian and re-installed Domoticz (problem solved)
sudo apt-get update
do get loads of errors like
W: Failed to fetch http://raspberrypi.collabora.com/dists/ ... elease.gpg Something wicked happened resolving 'host:http' (-5 - No
address associated with hostname)
Already Tried to search the forum did not manage to solve the issue
ping google.com
responds normal
--- google.com ping statistics ---
114 packets transmitted, 114 received, 0% packet loss, time 113173ms
rtt min/avg/max/mdev = 19.390/24.136/42.980/5.536 ms
pi@raspberrypi ~ $ ping -c 1 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_req=1 ttl=53 time=22.4 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.484/22.484/22.484/0.000 ms
cat /etc/hostname
raspberrypi
hostname
raspberrypi
hostname -A
raspberrypi.local
hostname -i
127.0.1.1
hostname -I
192.168.2.58
cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
cat /etc/resolv.conf
8.8.8.8
sudo sh -c "echo 8.8.8.8 >/etc/resolv.conf"
(does not show anything)
ping -c 1 -W 5 google.com
ping: unknown host google.com
/etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://mirror.ox.ac.uk/sites/archive.ra ... /raspbian/ wheezy main contrib non-free rpi
host google.co.uk
;; connection timed out; no servers could be reached
host www.pythonforbeginners.com
;; connection timed out; no servers could be reached
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ping -c3 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_req=1 ttl=53 time=20.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=20.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=20.3 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 20.301/20.394/20.517/0.188 ms
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.2.254 (192.168.2.254) 0.636 ms 0.357 ms 0.424 ms
2 195.190.228.186 (195.190.228.186) 15.410 ms 15.705 ms 17.310 ms
3 * * *
4 145.54.47.246 (145.54.47.246) 22.802 ms 23.646 ms 25.011 ms
5 145.54.47.250 (145.54.47.250) 25.401 ms 26.269 ms 27.612 ms
6 139.156.156.133 (139.156.156.133) 28.007 ms 19.106 ms 19.797 ms
7 139.156.127.73 (139.156.127.73) 21.917 ms 20.353 ms 139.156.127.77 (139.156.127.77) 21.430 ms
8 * * *
9 8.8.8.8 (8.8.8.8) 23.468 ms 108.170.236.137 (108.170.236.137) 25.081 ms 8.8.8.8 (8.8.8.8) 24.936 ms
pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.3G 4.9G 2.1G 71% /
devtmpfs 484M 0 484M 0% /dev
tmpfs 98M 204K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 196M 0 196M 0% /run/shm
/dev/mmcblk0p1 56M 24M 33M 43% /boot
none 488M 0 488M 0% /sys/fs/cgroup
pi@raspberrypi ~ $ ls
cmake-3.2.2 homepidomoticzscriptscheck_device_online.py
cmake-3.2.2.tar.gz libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
config.json libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb.1
dead.letter libudev1_234-3_armhf.deb
domoticz node_latest_armhf.deb
homebridge node_modules
Thanks
Updated to the Latest version of Debian and re-installed Domoticz (problem solved)