RobertCNelson / ti-linux-kernel-dev

vendor bsp...
MIT License
87 stars 76 forks source link

When using 'sudo apt-get update", "Writing more data than expected (631844 > 631714)" error happens! #26

Closed HomeLH closed 6 years ago

HomeLH commented 6 years ago

debian@beaglebone:~$ sudo apt-get update Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://ftp.debian.org/debian stretch-backports InRelease
Get:3 http://repos.rcn-ee.com/debian stretch InRelease [3,058 B]
Ign:4 http://ftp.us.debian.org/debian stretch InRelease
Hit:5 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.us.debian.org/debian stretch Release Get:7 http://124.202.164.13/files/211600000C58CC15/httpredir.debian.org/debian stretch/main armhf Packages [632 kB]
Err:7 http://124.202.164.13/files/211600000C58CC15/httpredir.debian.org/debian stretch/main armhf Packages
Writing more data than expected (631844 > 631714) Hashes of expected file:

RobertCNelson commented 6 years ago

@HomeLH we don't use "httpredir.debian.org" anymore, change it to: deb.debian.org

It's still a mirror network, so their cane be delays...

Regards,

HomeLH commented 6 years ago

Thank you very much! Could you tell the detailed method to change the"httpredir.debian.org".

RobertCNelson commented 6 years ago
sudo nano /etc/apt/sources.list
HomeLH commented 6 years ago
debian@beaglebone:~$ cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian stretch main contrib non-free
#deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://ftp.us.debian.org/debian stretch-updates main contrib non-free
#deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
#deb-src http://deb.debian.org/debian-security stretch/updates main contrib non-free

deb http://ftp.debian.org/debian stretch-backports main contrib non-free
##deb-src http://deb.debian.org/debian stretch-backports main contrib non-free

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main 
#deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main
debian@beaglebone:~$ 

Here is my sources.list. I still can not revise it.