Linux Lite Forums

Software - Support => Installing Software => Topic started by: thoughtinstinct on September 22, 2018, 04:57:40 AM

Title: Update error: File unexpected size
Post by: thoughtinstinct on September 22, 2018, 04:57:40 AM
Hi


I did an update 2 days ago and shut down laptop after although it was asking for a restart after update. On starting computer yesterday it booted directly to the screen where i was to chose boot options and stuff but all worked well afterwards. Tried an update today and seems not to be working, please see error log below


Code: [Select]
===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.linuxliteos.com/forums/ and paste the log below into a new or existing thread for assistance.


============ Log ===========


Hit:1 http://archive.canonical.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Get:3 https://repo.skype.com/deb stable InRelease [4 487 B]
Hit:4 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Get:8 https://download.sublimetext.com apt/stable/ InRelease [2 562 B]
Get:9 https://repo.skype.com/deb stable/main amd64 Packages [2 475 B]
Err:9 https://repo.skype.com/deb stable/main amd64 Packages
  File has unexpected size (2248 != 2475). Mirror sync in progress? [IP: 2.20.73.42 443]
  Hashes of expected file:
   - Filesize:2475 [weak]
   - SHA512:dc177d46272531b00bb2a40be46bdf7d9cf8420707528ac7f8ee5dc6f4957201337152c30b3f9cda86d847fa628299de30db87fd00644c12a9402e06e7999d4e
   - SHA256:cc855650be0533bd6f97f9db783864f3553a973d9418d92b0bf112609874b1d8
   - SHA1:32467cb1d7c892531c875a9d00da35cc2a3e541a [weak]
   - MD5Sum:737e940e3617ff841675feade9f744e4 [weak]
  Release file created at: Sat, 22 Sep 2018 08:36:19 +0000
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:12 https://download.sublimetext.com apt/stable/ Packages [967 B]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [328 kB]
Hit:14 http://repo.linuxliteos.com/linuxlite diamond InRelease
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [292 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [199 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [199 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [2 852 B]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [2 848 B]
Fetched 1 278 kB in 2s (558 kB/s)
Reading package lists...
E: Failed to fetch https://repo.skype.com/deb/dists/stable/main/binary-amd64/Packages.bz2  File has unexpected size (2248 != 2475). Mirror sync in progress? [IP: 2.20.73.42 443]
   Hashes of expected file:
    - Filesize:2475 [weak]
    - SHA512:dc177d46272531b00bb2a40be46bdf7d9cf8420707528ac7f8ee5dc6f4957201337152c30b3f9cda86d847fa628299de30db87fd00644c12a9402e06e7999d4e
    - SHA256:cc855650be0533bd6f97f9db783864f3553a973d9418d92b0bf112609874b1d8
    - SHA1:32467cb1d7c892531c875a9d00da35cc2a3e541a [weak]
    - MD5Sum:737e940e3617ff841675feade9f744e4 [weak]
   Release file created at: Sat, 22 Sep 2018 08:36:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 22, 2018, 10:41:28 AM
Hello thoughtinstinct,

have you tried - Menu>System>Lite Tweaks
tick the box named "package cache" and click begin.

If this does not solve it try -

Hold down Ctrl and Alt keys and press t key, to open your terminal.

Copy/paste or type in to your terminal

Code: [Select]
sudo apt-get clean
type in your password when requested and then press enter.
Title: Re: Update error: File unexpected size
Post by: thoughtinstinct on September 22, 2018, 04:44:17 PM
Thanks bitsnpcs, i did sudo apt-get clean and had to try several times but now it says my system is up to date. Have a nice weekend.
Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 22, 2018, 05:33:34 PM
You are Welcome @thoughtinstinct  :)
Enjoy your weekend too.
Title: Re: Update error: File unexpected size
Post by: Jerry on September 23, 2018, 02:10:11 AM
If Skype related, also try:

Code: [Select]
wget https://repo.skype.com/data/SKYPE-GPG-KEY
Code: [Select]
sudo apt-key add SKYPE-GPG-KEY
Title: Re: Update error: File unexpected size
Post by: thoughtinstinct on September 23, 2018, 04:29:05 PM
Thanks for the reply Jerry. It looks like its indeed skype related, as i had skype installed and i dont know what happened but skype was removed from my laptop after last update as far i know. Tried your solution without much luck and have removed the skype ppa and im waiting to see if evertyhing is alright now. But the question is how and why did skype get removed? Anyway to know that? Thanks in advance.
Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 23, 2018, 04:33:39 PM
Hello thoughtinstinct,
Skype was removed as the clean removes partially downloaded packages, as per the error info, which says it is Skype that was partially downloaded.
If you reinstall Skype then using @Jerry solution.

Title: Re: Update error: File unexpected size
Post by: Jerry on September 23, 2018, 04:35:26 PM
Make sure you use Lite Software if you decide to install Skype again, no PPA's.

Sent from my Mobile phone using Tapatalk

Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 23, 2018, 04:39:50 PM
@Jerry will it be needed to purge the removed PPA in this instance before using Lite Software install to prevent issues in future ?If so I am unsure of the command to suggest for this.
Title: Re: Update error: File unexpected size
Post by: Jerry on September 23, 2018, 04:41:33 PM
Yes, remove PPA first.

Sent from my Mobile phone using Tapatalk

Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 23, 2018, 04:43:13 PM
Thank You @Jerry  :)
Title: Re: Update error: File unexpected size
Post by: thoughtinstinct on September 23, 2018, 04:45:02 PM
Code: [Select]
Thanks bitsnpcs


I had to think really hard if skype was installed before or not so i won't be reinstalling it since i don't use it that often it seems haha. Anyway i was just worried it might be something else causing the file size differences.


Btw i enjoy your music selections a lot, hope you have some playlist you can share. All the best in your quest to master linux, im inspired to try myself.


Thanks Jerry


Will remember that if i ever need skype again.
Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 23, 2018, 04:48:40 PM
I had to think really hard if skype was installed before or not so i won't be reinstalling it since i don't use it that often it seems haha. Anyway i was just worried it might be something else causing the file size differences.Btw i enjoy your music selections a lot, hope you have some playlist you can share. All the best in your quest to master linux, im inspired to try myself.
Thanks @Jerry
Will remember that if i ever need skype again.
No it was Skype  ;)

Thank You, I enjoy trying to learn Linux. I hope you do too  :)
Glad you are enjoying the music selections  :) , I really enjoy choosing them.
These are playlists I began on YouTube, have not updated for a while, what do you think ? -

https://www.youtube.com/playlist?list=PLYjch275vFeb8z6WaqQwFXr3SwLrlrjQu (https://www.youtube.com/playlist?list=PLYjch275vFeb8z6WaqQwFXr3SwLrlrjQu)

https://www.youtube.com/playlist?list=PLYjch275vFeZWrEyDddRkxVBooqvshLzx (https://www.youtube.com/playlist?list=PLYjch275vFeZWrEyDddRkxVBooqvshLzx)

https://www.youtube.com/playlist?list=PLYjch275vFeb3Si-wengijfons3BeSQ5a (https://www.youtube.com/playlist?list=PLYjch275vFeb3Si-wengijfons3BeSQ5a)

https://www.youtube.com/playlist?list=PLYjch275vFeZd6C3sAC7nD0wlyDTHmegW (https://www.youtube.com/playlist?list=PLYjch275vFeZd6C3sAC7nD0wlyDTHmegW)

https://www.youtube.com/playlist?list=PLYjch275vFeZdPOIUX1_OqyRAthRG2YIb (https://www.youtube.com/playlist?list=PLYjch275vFeZdPOIUX1_OqyRAthRG2YIb)
Title: Re: Update error: File unexpected size
Post by: thoughtinstinct on September 23, 2018, 05:01:55 PM
Perfect @bitsnpcs

Saving all playlists, i'm sorted for a while thanks very much. This song currently on replay Khalia & I-Octane - One Dance.
Title: Re: Update error: File unexpected size
Post by: bitsnpcs on September 23, 2018, 05:09:10 PM
You are welcome @thoughtinstinct

great taste its #1 in the playlist, I listen to it a lot of times.
The biggest playlist I made is on the Linux Lite forum  8) Music thread though and I update it more often.