[Solved] Cannot update the cache of Software Sources, Update Manager

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Leauqis

[Solved] Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

Hi Guys! I am posting my first post here because i am facing annoying problems right now. I can't seem to update the cache of Software Sources. I try to type sudo apt-get update into terminal but it throws me lots of errors. I can't use Update Manager it says Couldn't refresh the list of updates.

sudo apt-get update

Code: Select all

seckin@Seckin:~$ sudo apt-get update
[sudo] password for seckin:             
Sorry, try again.
[sudo] password for seckin:            
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]      
Ign:3 http://packages.linuxmint.com tessa InRelease                            
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://packages.linuxmint.com tessa Release                              
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]    
Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]    
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]               
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [557 kB]
Err:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
  File has unexpected size (4704 != 556576). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:556576 [weak]
   - SHA256:d0df0cf1c2de449f33ba8dedd2ed8634c8c19a96bbc3b81bedadcd5066f0d94b
   - SHA1:d167d20513a43a1bffc5f302a7f592c669322d07 [weak]
   - MD5Sum:7fc84c0216d605f6a3e04a72149f8c5a [weak]
  Release file created at: Wed, 20 Mar 2019 07:00:47 +0000
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3.076 B]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [744 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [3.460 B]
Err:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
  File has unexpected size (4704 != 3460). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:3460 [weak]
   - SHA256:aca17995dfdd31397286ed9916440fb43e759ac5d61e3d05ad1bc2fee767358d
   - SHA1:33dcb8333dda8092aa36f15a39c3712d65d2934e [weak]
   - MD5Sum:a93105fbb0fe7c7ee5aa14f1301133fe [weak]
  Release file created at: Wed, 20 Mar 2019 03:23:37 +0000
Get:32 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8.531 kB]
Err:32 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages          
  File has unexpected size (4704 != 8530788). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:8530788 [weak]
   - SHA256:7c8564212bb5bfa6b8beabe1ec10a590688c458acc42d2700397838c1b60e5ec
   - SHA1:61d93f8ece468b794ca2dd462380011fd15cb218 [weak]
   - MD5Sum:343e562b63af0c2ec6b1c33b15245658 [weak]
  Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
Fetched 494 kB in 12s (40,6 kB/s)                                              
Reading package lists... Done
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 556576). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:556576 [weak]
    - SHA256:d0df0cf1c2de449f33ba8dedd2ed8634c8c19a96bbc3b81bedadcd5066f0d94b
    - SHA1:d167d20513a43a1bffc5f302a7f592c669322d07 [weak]
    - MD5Sum:7fc84c0216d605f6a3e04a72149f8c5a [weak]
   Release file created at: Wed, 20 Mar 2019 07:00:47 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 3460). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:3460 [weak]
    - SHA256:aca17995dfdd31397286ed9916440fb43e759ac5d61e3d05ad1bc2fee767358d
    - SHA1:33dcb8333dda8092aa36f15a39c3712d65d2934e [weak]
    - MD5Sum:a93105fbb0fe7c7ee5aa14f1301133fe [weak]
   Release file created at: Wed, 20 Mar 2019 03:23:37 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 8530788). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:8530788 [weak]
    - SHA256:7c8564212bb5bfa6b8beabe1ec10a590688c458acc42d2700397838c1b60e5ec
    - SHA1:61d93f8ece468b794ca2dd462380011fd15cb218 [weak]
    - MD5Sum:343e562b63af0c2ec6b1c33b15245658 [weak]
   Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Some index files failed to download. They have been ignored, or old ones used instead.
I get "Failed to download repository information" trying to restore default settings and changing mirrors in Software Sources. Any additional PPAs, repositories is unticked (only official repositories). I tried to Fix MergeList problems and purge residual configuration but nothing changed after that.

Code: Select all

E:Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 4940820). Mirror sync in progress? [IP: 10.106.7.14 80]
Hashes of expected file:
 - Filesize:4940820 [weak]
 - SHA256:9fc21dfcc2639dc719471cdc93179e47479a193e9b8fc46e55e90c87f2ca0122
 - SHA1:4d360e4f87adc149a7832a73e367fd9717e782a8 [weak]
 - MD5Sum:481a75f2fc2f4a02df60bcde8604a788 [weak]
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
, E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 556576). Mirror sync in progress? [IP: 10.106.7.14 80]
Hashes of expected file:
 - Filesize:556576 [weak]
 - SHA256:d0df0cf1c2de449f33ba8dedd2ed8634c8c19a96bbc3b81bedadcd5066f0d94b
 - SHA1:d167d20513a43a1bffc5f302a7f592c669322d07 [weak]
 - MD5Sum:7fc84c0216d605f6a3e04a72149f8c5a [weak]
Release file created at: Wed, 20 Mar 2019 07:00:47 +0000
, E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 743840). Mirror sync in progress? [IP: 10.106.7.14 80]
Hashes of expected file:
 - Filesize:3468 [weak]
 - SHA256:3822e1d7e2dae1b051ff6de1f61cfe729648758d75e125a0bf982ca5c6ebd29a
 - SHA1:cf8ec71057cf408e2388c5da9e6c014040d7d885 [weak]
 - MD5Sum:b0f4e2a393f18ec42d92d24cffd17faa [weak]
Release file created at: Wed, 20 Mar 2019 03:23:37 +0000
, E:Failed to fetch http://10.106.7.14/  , E:Failed to fetch http://10.106.7.14/  , E:Some index files failed to download. They have been ignored, or old ones used instead.
inxi -Sr

Code: Select all

seckin@Seckin:~$ inxi -Sr
System:
  Host: Seckin Kernel: 4.15.0-46-generic x86_64 bits: 64 
  Desktop: Cinnamon 4.0.9 Distro: Linux Mint 19.1 Tessa 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  No active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  No active apt repos in: /etc/apt/sources.list.d/brave-browser-release-bionic.list 
  No active apt repos in: /etc/apt/sources.list.d/brave-browser.list 
  No active apt repos in: /etc/apt/sources.list.d/lumas-photoqt-bionic.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com tessa main upstream import backport
  2: deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ bionic partner
And i wonder if these errors has anything to do with BleachBit ?. I used it to clean some of my stuff.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
karlchen
Level 23
Level 23
Posts: 18229
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Cannot update the cache of Software Sources, Update Manager

Post by karlchen »

Hello, Leauqis.

The screen output displayed by the command sudo apt-get update, which you had posted, reveals that your system tries to connect to an address http://10.106.7.14/, when trying to query the software repositories.
The IP address 10.10.6.7.14, however, is not a public IP address. IP addresses 10.xx.xx.xx are always local IP addresses in a local area network. You cannot connect to them from outside.
Suggests that your network configuration has been messed up.
Whether this has been done by bleachbit, I cannot tell. Maybe.

Hm. Did you connect to this forum and submit your post from the Mint system, which fails to update its cached list of available software?
In case you can still connect from the affected machine to this forum, then this would be a hint that not your whole network configuration has been messed up, but maybe just the APT configuration under /etc/apt.

Best regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

I didn't post this with any other device and using the internet (wifi) without any problems. The only problem i am facing is that i can't use anything about Update Manager and Software Sources.

iwconfig

Code: Select all

seckin@Seckin:~$ iwconfig
lo        no wireless extensions.

enp2s0    no wireless extensions.

wlp3s0    IEEE 802.11  ESSID:"KYKWIFI"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 04:DA:D2:8B:AF:20   
          Bit Rate=72.2 Mb/s   Tx-Power=16 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
          Link Quality=64/70  Signal level=-46 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:199   Missed beacon:0
Last edited by Leauqis on Wed Mar 20, 2019 10:01 am, edited 1 time in total.
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

Well,i have installed firejail yesterday to make firefox more secure in general. Does that affect my whole network configuration ?. Edited firefox from panel to always use firejail w/o having to type from terminal everytime to use it. I didn't change any of the default settings in firejail.

Code: Select all

seckin@Seckin:~$ firejail --list
1812:seckin::firejail firefox 
Last edited by Leauqis on Wed Mar 20, 2019 9:13 am, edited 1 time in total.
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

there is only this one line in sources.list.

Code: Select all

#deb cdrom:[Linux Mint 19.1 _Tessa_ - Release amd64 20181217]/ bionic contrib main non-free
I unticked additional repositories in Software Sources but wine repositories are still here because i can't update the cache.
additional-repositories.list

Code: Select all

# deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt xenial main
# deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
# deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
official-package-repositories.list

Code: Select all

deb http://packages.linuxmint.com tessa main upstream import backport 

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
User avatar
karlchen
Level 23
Level 23
Posts: 18229
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Cannot update the cache of Software Sources, Update Manager

Post by karlchen »

Hello, Leauqis.

The fact that using your browser - even through firejail - works suggests that indeed your network configuration cannot have been broken completely, if at all.
So it should be something limited to the APT software management system.
By the way, the APT management system configuration has got a few more components than the sources list files. :wink:
The sources list files name the http(s) addresses of the software repositories, which your system will query for the lists of available software packages; but the sources list files do not instruct the APT management system how to connect to the server addresses.
You software sources files do not seem to hold any reference to the local IP address 10.10.6.7.14. Nonetheless "sudo apt-get update" tries to connect to precisely 10.10.6.7.14 in order to query any repo address.

Some questions/tasks trying to figure out what may be wrong:
  • When did "sudo apt-get update" last work correctly? If ever.
  • What did you change before it stopped working?
  • Do you connect to the internet directly e.g. via a DSL router?
  • Or do you connect to the internet through a proxy server?
  • Or did you connect through a proxy server in the past? But now you connect directly?
  • Could you, please, post the content of the file /etc/apt/apt.conf? Terminal command to be executed:

    Code: Select all

    cat /etc/apt/apt.conf
  • Could please post what the terminal command

    Code: Select all

    nslookup archive.ubuntu.com
    displays?
  • Could please post what the terminal command

    Code: Select all

    ping -c 4 archive.ubuntu.com
    displays?
Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

cat /etc/apt/apt.conf

Code: Select all

seckin@Seckin:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
nslookup archive.ubuntu.com

Code: Select all

seckin@Seckin:~$ nslookup archive.ubuntu.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	archive.ubuntu.com
Address: 91.189.88.149
Name:	archive.ubuntu.com
Address: 91.189.88.152
Name:	archive.ubuntu.com
Address: 91.189.88.161
Name:	archive.ubuntu.com
Address: 91.189.88.162
Name:	archive.ubuntu.com
Address: 2001:67c:1360:8001::21
Name:	archive.ubuntu.com
Address: 2001:67c:1360:8001::17
Name:	archive.ubuntu.com
Address: 2001:67c:1560:8001::14
Name:	archive.ubuntu.com
Address: 2001:67c:1560:8001::11
ping -c 4 archive.ubuntu.com

Code: Select all

seckin@Seckin:~$ ping -c 4 archive.ubuntu.com
PING archive.ubuntu.com (91.189.88.162) 56(84) bytes of data.
From yukinko.canonical.com (91.189.88.162) icmp_seq=1 Destination Port Unreachable
From yukinko.canonical.com (91.189.88.162) icmp_seq=3 Destination Port Unreachable
From yukinko.canonical.com (91.189.88.162) icmp_seq=4 Destination Port Unreachable

--- archive.ubuntu.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3007ms
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

I have only used wireless connection since i bought this laptop.
Yesterday i was able to successfully execute sudo apt-get update command via terminal.
I didn't use any wired connection even once with this computer. Also i couldn't find apt.conf file anywhere in file system.
User avatar
karlchen
Level 23
Level 23
Posts: 18229
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Cannot update the cache of Software Sources, Update Manager

Post by karlchen »

Hello, Leauqis.

The file /etc/apt/apt.conf does not have to exist. In case it exists, it might hold a proxy name and port, through which APT would try to connect to the repo servers. So a non-existent /etc/apt/apt.conf file is ok.

So the command "nslookup" works and returns a correct list of IP addresses for the server pool archive.ubuntu.com.

Yet, ping archive.ubuntu.com fails, telling the server port were unreachable. This might be a routing error. This might also be a temporary problem, caused by the server itself, I assume.

If I ping the same IP address 91.189.88.162, then the result is this (successful):

Code: Select all

$ ping -c 4 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=57 time=21.2 ms
64 bytes from 91.189.88.162: icmp_seq=2 ttl=57 time=21.4 ms
64 bytes from 91.189.88.162: icmp_seq=3 ttl=57 time=22.9 ms
64 bytes from 91.189.88.162: icmp_seq=4 ttl=57 time=20.9 ms

--- 91.189.88.162 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 20.986/21.669/22.991/0.783 ms
Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

i executed iwconfig to check if power management is on or off. I changed this to off.
sudo xed /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf changed wifi.powersave = 3 to 2.
User avatar
karlchen
Level 23
Level 23
Posts: 18229
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Cannot update the cache of Software Sources, Update Manager

Post by karlchen »

Hi, Leauqis.

As your profile specifies your location as Turkey, I have got an idea on how to try whether the Turkish Ubuntu servers work better for you.

Please, execute and post the result of:

Code: Select all

nslookup tr.archive.ubuntu.com
Next, execute and post the result of:

Code: Select all

ping -c 4 tr.archive.ubuntu.com
Provided both commands succeed, then it may be worth switching the Turkish Ubuntu mirror servers in the sources list file /etc/apt/sources.list.d/official-package-repositories.list

Including the change it would read

Code: Select all

deb http://packages.linuxmint.com tessa main upstream import backport 

deb http://tr.archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://tr.archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://tr.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
You notice that only the archive.ubuntu.com has got country specific mirrors like tr.archive.ubuntu.com or de.archive.ubuntu.com.
security.ubuntu.com and archive.canonical.com do not have such countriy specific mirrors.

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
karlchen
Level 23
Level 23
Posts: 18229
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Cannot update the cache of Software Sources, Update Manager

Post by karlchen »

Leauqis wrote: Wed Mar 20, 2019 11:40 ami executed iwconfig to check if power management is on or off. I changed this to off.
sudo xed /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf changed wifi.powersave = 3 to 2.
Good. :) Something which I had not thought of, yet. :oops:
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

nslookup tr.archive.ubuntu.com

Code: Select all

seckin@Seckin:~$ nslookup tr.archive.ubuntu.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	tr.archive.ubuntu.com
Address: 91.189.88.161
Name:	tr.archive.ubuntu.com
Address: 91.189.88.149
Name:	tr.archive.ubuntu.com
Address: 91.189.88.152
Name:	tr.archive.ubuntu.com
Address: 91.189.88.162
Name:	tr.archive.ubuntu.com
Address: 2001:67c:1560:8001::11
Name:	tr.archive.ubuntu.com
Address: 2001:67c:1560:8001::14
Name:	tr.archive.ubuntu.com
Address: 2001:67c:1360:8001::21
Name:	tr.archive.ubuntu.com
Address: 2001:67c:1360:8001::17
ping -c 4 tr.archive.ubuntu.com

Code: Select all

seckin@Seckin:~$ ping -c 4 tr.archive.ubuntu.com
PING tr.archive.ubuntu.com (91.189.88.162) 56(84) bytes of data.
From yukinko.canonical.com (91.189.88.162) icmp_seq=2 Destination Port Unreachable
From yukinko.canonical.com (91.189.88.162) icmp_seq=3 Destination Port Unreachable

--- tr.archive.ubuntu.com ping statistics ---
4 packets transmitted, 0 received, +2 errors, 100% packet loss, time 3020ms
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

/etc/apt/apt.conf.d directory
ls -al /etc/apt/apt.conf.d

Code: Select all

seckin@Seckin:~$ ls -al /etc/apt/apt.conf.d
total 84
drwxr-xr-x 2 root root 4096 Mar 17 18:10 .
drwxr-xr-x 6 root root 4096 Jan 27 17:06 ..
-rw-r--r-- 1 root root   49 Jan 22 19:56 00aptitude
-rw-r--r-- 1 root root   41 Dec 17 16:20 00cdrom
-rw-r--r-- 1 root root   34 Dec 12 17:16 00mint
-rw-r--r-- 1 root root   71 Mar 17 18:10 00recommends
-rw-r--r-- 1 root root   40 Jan 22 19:55 00trustcdrom
-rw-r--r-- 1 root root  927 Jan 25 14:51 01autoremove
-r--r--r-- 1 root root 2851 Mar  5 23:00 01autoremove-kernels
-rw-r--r-- 1 root root   42 Apr 20  2018 01-vendor-ubuntu
-rw-r--r-- 1 root root  129 Jun 27  2018 10periodic
-rw-r--r-- 1 root root  108 Jun 27  2018 15update-stamp
-rw-r--r-- 1 root root   85 Jun 27  2018 20archive
-rw-r--r-- 1 root root  243 Dec 16  2009 20dbus
-rw-r--r-- 1 root root 1040 Nov  9 04:24 20packagekit
-rw-r--r-- 1 root root 2584 Apr  4  2018 50appstream
-rw-r--r-- 1 root root  625 Mar 16  2018 50command-not-found
-rw-r--r-- 1 root root  182 Feb 28  2018 70debconf
-rw-r--r-- 1 root root   84 Feb  7 15:17 90mintsystem
-rw-r--r-- 1 root root   32 Mar 20 17:28 99synaptic
-rw-r--r-- 1 root root  305 Jun 27  2018 99update-notifier
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Cannot update the cache of Software Sources, Update Manager

Post by thx-1138 »

Neither archive.ubuntu.com or yukinko.canonical.com times out here
(archive.ubuntu.com gets re-routed to steelix.canonical.com, danava.canonical.com etc, depending on the moment...)

...can you try the following & see if it makes any difference whatsoever?
Clean the lists first...sudo rm -rf /var/lib/apt/lists/*
Then:
sudo apt-get -o Acquire::ForceIPv4=true update
If nada, the same thing, and then force IPv6 instead:
sudo apt-get -o Acquire::ForceIPv6=true update
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

Ipv4

Code: Select all

seckin@Seckin:~$ sudo apt-get -o Acquire::ForceIPv4=true update
Get:1 http://archive.canonical.com/ubuntu bionic InRelease [10,2 kB]           
Get:2 http://tr.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]            
Ign:3 http://packages.linuxmint.com tessa InRelease                            
Get:4 http://packages.linuxmint.com tessa Release [24,1 kB]                    
Get:7 http://packages.linuxmint.com tessa Release.gpg [819 B]                  
Get:12 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]   
Get:5 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2.300 B]
Err:5 http://archive.canonical.com/ubuntu bionic/partner i386 Packages         
  File has unexpected size (4704 != 2300). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:2300 [weak]
   - SHA256:d0d8e3770bf79e894d9e61ccf8ccd143be9fe11a97e0fda73069dde4472ae7e2
   - SHA1:e18a31cb14828384afb8e3848ab53bede2b80dde [weak]
   - MD5Sum:66e050fd629c65ecd5abc8d0332f60e1 [weak]
  Release file created at: Fri, 15 Mar 2019 13:50:03 +0000
Get:6 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2.308 B]
Err:6 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages        
  
Get:8 http://archive.canonical.com/ubuntu bionic/partner Translation-en [1.272 B]
Err:8 http://archive.canonical.com/ubuntu bionic/partner Translation-en        
  
Err:18 http://tr.archive.ubuntu.com/ubuntu bionic-updates InRelease            
  502  Server Hangup [IP: 91.189.88.152 80]
Get:19 http://tr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:9 http://packages.linuxmint.com tessa/main i386 Packages [13,0 kB]         
Err:9 http://packages.linuxmint.com tessa/main i386 Packages                   
  File has unexpected size (4704 != 13006). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:13006 [weak]
   - SHA256:de71a18d1c41d13331516e00b2b9167e23ccb5a3038fce3fa7e99407eda96fd4
   - SHA1:baba731c85e4242fdb51960baf9273332452381c [weak]
   - MD5Sum:73e514e6ddeea9a40033e407f34824e8 [weak]
  Release file created at: Mon, 11 Mar 2019 14:25:02 +0000
Get:10 http://packages.linuxmint.com tessa/main amd64 Packages [13,7 kB]       
Err:10 http://packages.linuxmint.com tessa/main amd64 Packages                 
  
Get:11 http://packages.linuxmint.com tessa/upstream amd64 Packages [38,1 kB]   
Err:11 http://packages.linuxmint.com tessa/upstream amd64 Packages             
  
Get:13 http://packages.linuxmint.com tessa/upstream i386 Packages [38,1 kB]    
Err:13 http://packages.linuxmint.com tessa/upstream i386 Packages              
  
Get:14 http://packages.linuxmint.com tessa/import amd64 Packages [4.480 B]     
Err:14 http://packages.linuxmint.com tessa/import amd64 Packages               
  
Get:15 http://packages.linuxmint.com tessa/import i386 Packages [3.558 B]      
Err:15 http://packages.linuxmint.com tessa/import i386 Packages             
  
Get:16 http://packages.linuxmint.com tessa/backport amd64 Packages [29,4 kB]   
Err:16 http://packages.linuxmint.com tessa/backport amd64 Packages             
  
Get:17 http://packages.linuxmint.com tessa/backport i386 Packages [29,3 kB]    
Err:17 http://packages.linuxmint.com tessa/backport i386 Packages              
  
Get:20 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [282 kB]
Err:20 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages   
  File has unexpected size (4704 != 281572). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:281572 [weak]
   - SHA256:d120e7e36a93133560c1c993737f4b125d234781666b1ce70ee5fe46f2c87d61
   - SHA1:cfc163a280e4fda6fac814e7132d77885d23924b [weak]
   - MD5Sum:186a9a07d48d35d5eaf1a4ae014cbd16 [weak]
  Release file created at: Wed, 20 Mar 2019 10:33:54 +0000
Get:21 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [208 kB]
Err:21 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages    
  
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [103 kB]
Err:22 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en   
  
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Err:23 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata
  
Get:24 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4.296 B]
Err:24 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages
  
Get:25 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [4.280 B]
Err:25 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages
  
Get:26 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2.192 B]
Get:40 http://tr.archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3.584 B]
Err:26 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en
  
Err:40 http://tr.archive.ubuntu.com/ubuntu bionic/restricted Translation-en
  File has unexpected size (4704 != 2192). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:3584 [weak]
   - SHA256:2d706352f6df497ebe615f5ace0c7d38b34e3eceb2468049a9e05bc159b9cba6
   - SHA1:d6814c98a69e1be7a167d2b70aec2597be518532 [weak]
   - MD5Sum:59a2bfccd025f242bb95379e4a6048ff [weak]
  Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
Get:29 http://tr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1.019 kB]
Err:29 http://tr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages          
  
Get:30 http://tr.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1.007 kB]
Get:30 http://tr.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1.007 kB]
Err:30 http://tr.archive.ubuntu.com/ubuntu bionic/main i386 Packages           
  
Get:31 http://tr.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB] 
Err:31 http://tr.archive.ubuntu.com/ubuntu bionic/main Translation-en          
  
Get:33 http://tr.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Err:33 http://tr.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata
  
Get:35 http://tr.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9.184 B]
Err:35 http://tr.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages    
  
Get:36 http://tr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9.156 B]
Err:36 http://tr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages     
  
Get:50 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3.468 B]
Err:50 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages
  File has unexpected size (4704 != 3468). Mirror sync in progress? [IP: 10.106.7.14 80]
  Hashes of expected file:
   - Filesize:3468 [weak]
   - SHA256:3822e1d7e2dae1b051ff6de1f61cfe729648758d75e125a0bf982ca5c6ebd29a
   - SHA1:cf8ec71057cf408e2388c5da9e6c014040d7d885 [weak]
   - MD5Sum:b0f4e2a393f18ec42d92d24cffd17faa [weak]
  Release file created at: Wed, 20 Mar 2019 10:34:53 +0000
Get:51 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [3.460 B]
Err:51 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
  
Get:52 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1.604 B]
Err:52 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en
  
Get:53 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7.352 B]
Err:53 http://tr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata
  
Fetched 440 kB in 16s (27,5 kB/s)                                              
Reading package lists... Done
W: Failed to fetch http://tr.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  502  Server Hangup [IP: 91.189.88.152 80]
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 2300). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:2300 [weak]
    - SHA256:d0d8e3770bf79e894d9e61ccf8ccd143be9fe11a97e0fda73069dde4472ae7e2
    - SHA1:e18a31cb14828384afb8e3848ab53bede2b80dde [weak]
    - MD5Sum:66e050fd629c65ecd5abc8d0332f60e1 [weak]
   Release file created at: Fri, 15 Mar 2019 13:50:03 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 13006). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:13006 [weak]
    - SHA256:de71a18d1c41d13331516e00b2b9167e23ccb5a3038fce3fa7e99407eda96fd4
    - SHA1:baba731c85e4242fdb51960baf9273332452381c [weak]
    - MD5Sum:73e514e6ddeea9a40033e407f34824e8 [weak]
   Release file created at: Mon, 11 Mar 2019 14:25:02 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 281572). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:281572 [weak]
    - SHA256:d120e7e36a93133560c1c993737f4b125d234781666b1ce70ee5fe46f2c87d61
    - SHA1:cfc163a280e4fda6fac814e7132d77885d23924b [weak]
    - MD5Sum:186a9a07d48d35d5eaf1a4ae014cbd16 [weak]
   Release file created at: Wed, 20 Mar 2019 10:33:54 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 2192). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:3584 [weak]
    - SHA256:2d706352f6df497ebe615f5ace0c7d38b34e3eceb2468049a9e05bc159b9cba6
    - SHA1:d6814c98a69e1be7a167d2b70aec2597be518532 [weak]
    - MD5Sum:59a2bfccd025f242bb95379e4a6048ff [weak]
   Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  File has unexpected size (4704 != 3468). Mirror sync in progress? [IP: 10.106.7.14 80]
   Hashes of expected file:
    - Filesize:3468 [weak]
    - SHA256:3822e1d7e2dae1b051ff6de1f61cfe729648758d75e125a0bf982ca5c6ebd29a
    - SHA1:cf8ec71057cf408e2388c5da9e6c014040d7d885 [weak]
    - MD5Sum:b0f4e2a393f18ec42d92d24cffd17faa [weak]
   Release file created at: Wed, 20 Mar 2019 10:34:53 +0000
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
E: Failed to fetch http://10.106.7.14/  
W: Some index files failed to download. They have been ignored, or old ones used instead.
Ipv6

Code: Select all

seckin@Seckin:~$ sudo apt-get -o Acquire::ForceIPv6=true update
Ign:1 http://archive.canonical.com/ubuntu bionic InRelease
Ign:2 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Err:3 http://archive.canonical.com/ubuntu bionic Release                       
  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1562::1c). - connect (101: Network is unreachable)
Err:4 http://security.ubuntu.com/ubuntu bionic-security Release                
  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::19). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1560:8001::14). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1560:8001::11). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable)
Ign:5 http://tr.archive.ubuntu.com/ubuntu bionic InRelease                     
Ign:6 http://tr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Ign:7 http://tr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Err:8 http://tr.archive.ubuntu.com/ubuntu bionic Release
  Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::14). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::11). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unreachable)
Err:9 http://tr.archive.ubuntu.com/ubuntu bionic-updates Release
  Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::14). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::11). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unreachable)
Err:10 http://tr.archive.ubuntu.com/ubuntu bionic-backports Release
  Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::14). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1560:8001::11). - connect (101: Network is unreachable) Cannot initiate the connection to tr.archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unreachable)
Err:11 http://packages.linuxmint.com tessa InRelease
  Could not resolve 'packages.linuxmint.com'
Reading package lists... Done            
E: The repository 'http://archive.canonical.com/ubuntu bionic 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: The repository 'http://security.ubuntu.com/ubuntu bionic-security 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: The repository 'http://tr.archive.ubuntu.com/ubuntu bionic 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: The repository 'http://tr.archive.ubuntu.com/ubuntu bionic-updates 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: The repository 'http://tr.archive.ubuntu.com/ubuntu bionic-backports 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.

User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Cannot update the cache of Software Sources, Update Manager

Post by thx-1138 »

Leauqis wrote: Wed Mar 20, 2019 12:25 pm..................................
I'd try with the following parameters myself - always after cleaning the lists beforehand...

Code: Select all

sudo apt-get -o Acquire::ForceIPv4=true -o Acquire::CompressionTypes::Order::=gz -o Acquire::http::No-Cache=true -o Acquire::BrokenProxy=true -o Acquire::http::Pipeline-Depth=0 update
Such contains some workarounds for caching and/or proxy related issues, and also instructs apt to only fetch .gz archives from the mirrors.
Hopefully it does the trick, but i admit it's more or less a shot in the dark... :|

You could also try:
sudo apt-get -o Debug::Acquire::http=true -o Debug::pkgAcquire::Auth=true -o Debug::Hashs=true update 2>&1 | tee aptlog.txt
This will produce lots of output - so maybe it will help in diagnosing why you also get timeouts above...
Leauqis

Re: Cannot update the cache of Software Sources, Update Manager

Post by Leauqis »

I have solved the problem completely. Whole problem was router configuration. I tried connecting to several different wifis, it resolved rather quickly. I am currently staying in dormitory and the router's configuration was already pretty strict. It seems like they have taken it to a another level yesterday. Thanks for everyone to gather up for helping me !. I am still not sure how router's configuration can block main mirrors but that is another question !. Still thanks for everyone. :mrgreen: :mrgreen: :mrgreen:

I edited some of my post again and again to simply correct my grammar mistakes. Sorry for my bad English. :idea: :idea:
Locked

Return to “Software & Applications”