ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

File has unexpected size

asked 2019-05-30 02:53:19 -0500

jimy gravatar image

updated 2019-05-30 03:16:13 -0500

gvdhoorn gravatar image

An error occurred when I installed ros,Here's what I do:

$ sudo sh -c '. /etc/lsb-release && echo "deb $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'

$ sudo apt-key adv --keyserver hkp:// --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

$ sudo apt update

Then report an error. May I ask who knows the reason?Is it the ros mirror source that is wrong?

Get:3 bionic/main amd64 Packages [481 kB]
Err:3 bionic/main amd64 Packages
  File has unexpected size (1343916 != 480706). Mirror sync in progress? [IP: 80]
  Hashes of expected file:
   - Filesize:480706 [weak]
   - SHA256:a3b8443a822d1005b5a4577ede042691e4600e6597de0e76004b84678688481b
   - SHA1:d9aabcc8dcda723e7bde45f8bacbc765865edeb5 [weak]
   - MD5Sum:4f2fd4debc4d8381ac97f972a79c7286 [weak]
  Release file created at: Fri, 17 May 2019 19:32:55 +0000

Edit: Thank you for your reply. I tried to update the ros mirror source on May 28, May 29, and May 30. And i have tried using the following three mirror sources:


But it's all the same mistake.I even installed a new ubuntu system to try.

I used the system: ubuntu18.04

It's hard to believe that all three mirror sources are having problems at the same time,So are there any other possible causes?

edit retag flag offensive close merge delete



As it is, this does not appear to be a ROS related problem. If you cannot solve it, I would suggest to post on a forum such as Ask Ubuntu.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-30 03:09:52 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-05-30 03:04:09 -0500

gvdhoorn gravatar image

updated 2019-05-30 03:19:02 -0500


I tried to update the ros mirror source on May 28, May 29, and May 30.

The problem is not the ROS mirrors.

The repository at is the problem.

Perhaps a grep '' -r /etc/apt could help.


Is it the ros mirror source that is wrong?

The problem does not appear to be the ROS mirror (ie: USTC), but the package repository which is located at:

Get:3 bionic/main amd64 Packages [481 kB]
Err:3 bionic/main amd64 Packages

Notice how the error message mentions, which is not the USTC ROS mirror.

I'm not sure what is exactly, you should probably know. Is that the mirror you use for Ubuntu Bionic itself?

If this problem persists (ie: even after retrying a few times, for instance tomorrow), you should contact the administrator of the Ubuntu mirror and ask them.

edit flag offensive delete link more


Thank you for your help. I went to check the website of “” “” this IP is not a mirror IP,Then I looked up the location of the IP, which was very close to my company, and I thought it might be a problem with the company network, maybe some wrong domain name mapping or something.

Finally I switched to my phone's Internet connection, and I've solved the problem。

Your advice is very helpful. Thank you very much。

jimy gravatar image jimy  ( 2019-05-30 20:13:46 -0500 )edit

Question Tools

1 follower


Asked: 2019-05-30 02:53:19 -0500

Seen: 3,787 times

Last updated: May 30 '19