Quick Fix for the ‘Size Mismatch’ When Updating Ubuntu Linux

March 17, 2009 | By: UbuntuLinuxHelp | 1 Comment
Posted in Linux Fixes

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading ... Loading ...

This is just a short "quick fix" post.

For those who need it, here's a quick fix when you get an error message like this:

"W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libpostproc1d_0.cvs20070307-5ubuntu7.2_amd64.deb Size mismatch"

It's an error I received when the auto update feature was working in Ubuntu Linux. I double checked my sources.list file, but it was okay.

After a bit of tinkering, here's how to fix that.

Open a terminal and enter the following command:

sudo aptitude  clean

And then:

sudo aptitude update

After this the updates re-downloaded and everything worked. If you prefer "apt-get" you can substitute it in place of the "aptitude" command.

The logic behind this was that perhaps the downloaded files themselves, were corrupt. If they are already in the local repository, they will not download again. Hence the "clean" option. "Clean" empties the local repository of downloaded packages (but it does not delete the lock file). Using the clean option occasionally can be helpful in conserving disk space.

The second command that featured the "update" option, resynchronized the package files from their sources. This means that the .gz files (at the source) were scanned for new and updated information - if any is available. When making changes to the sources.list file, this command (update) should be run before doing any upgrading.

Hope this helps some of you out there! :)

If you like this post, why not share it?
  • StumbleUpon
  • del.icio.us
  • Digg
  • Google Bookmarks
  • Reddit
  • Mixx
  • Yahoo! Bookmarks
  • blogmarks
  • Twitter

Related posts:

  1. 20 Useful, Common Linux (Ubuntu) Commands for New Users
  2. How to Install VMware in Ubuntu Linux
  3. Google Earth and Chrome – Reader Questions
  4. Ubuntu Updates Versus Disk Space – Reader Questions
  5. 10 Things to do After Installing Ubuntu Linux


Comments

1 Comment so far

  1. HowtoMatrix » Quick Fix for the ‘Size Mismatch’ When Updating Ubuntu Linux HowtoMatrix » Quick Fix for the ‘Size Mismatch’ When Updating Ubuntu Linux on March 22, 2009 1:17 pm

    [...] Quick Fix for the ‘Size Mismatch’ When Updating Ubuntu Linux Posted by suvi under Tricks, Ubuntu This is just a short “quick fix” post. For those who need it, here’s a quick fix when you get an error message like this: “W: Failed to fetch http://security.ubuntu.com/ubu....._amd64.deb Size mismatch” It’s an error I received when the auto update feature was working in Ubuntu Linux. I double checked my sources.list file, but it was okay. Read more at Ubuntu Linux Help [...]

Name (required)

Email (required)

Website

Speak your mind