I'm trying to update my Ubuntu system, but cannot do anything with the Update Manager. I get the following error message:

Could not initialize the package information
An unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
You may want to run apt-get update to correct these problems, 
E:The package perl-base needs to be reinstalled, but I can't find an archive for it.'
  • What is your Ubuntu version?
    – Pilot6
    May 27 '15 at 17:47
  • @AFEEDSM did my answer fix your problem? May 27 '15 at 18:33
  • 12.04 ubuntu version
    – AFEED SM
    May 27 '15 at 21:27
  • Can you post the contents of /etc/apt/sources.list?
    – su do
    May 27 '15 at 22:04

TL;DR Open a terminal and run these commands:

sudo apt-get update
sudo apt-get install --reinstall perl-base
sudo apt-get upgrade


  • apt-get update

    • update

      update is used to resynchronize the package index files from their sources.

  • apt-get install --reinstall

    • install

      install is followed by one or more packages desired for installation or upgrading.

    • --reinstall

      Re-install packages that are already installed and at the newest version.

  • apt-get upgrade

    • upgrade

      upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list.

  • afeed@afeed-Vostro-1540:~$ sudo apt-get install --reinstall perl-base Reading package lists... Done Building dependency tree Reading state information... Done W: Duplicate sources.list entry archive.canonical.com/ubuntu precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages) W: You may want to run apt-get update to correct these problems E: The package perl-base needs to be reinstalled, but I can't find an archive for it.
    – AFEED SM
    May 27 '15 at 21:26
  • Please add information by editing your original post, not in comments.
    – Pilot6
    May 27 '15 at 22:13

Open a terminal and run the following:

sudo apt-get update

This should update the package lists, and the problem may have been caused a process being terminated while in the middle of updating. Make sure not to interrupt it this time.

sudo apt-get dist-upgrade

This will upgrade all packages, and hopefully there will be no errors. If this works, then chances are that when you open up Update Manager again, there won't be any errors.

To remove a broken repository, run the following in the terminal:

cd /etc/apt/sources.list.d

Extra repositories will be listed. To delete the one you don't want any more:

sudo rm <file>

For example:

sudo rm opera.list

Then, run the first two commands again (sudo apt-get update and sudo apt-get dist-upgrade). This time, there should be no errors.

  • W: Failed to fetch deb.opera.com/opera-beta/dists/stable/non-free/i18n/… Unable to connect to deb.opera.com:http: E: Some index files failed to download. They have been ignored, or old ones used instead.
    – AFEED SM
    May 27 '15 at 21:41
  • That's an old Opera repo that doesn't exist any more. The others should still work, however. May 28 '15 at 6:42
  • then how can i fix my problem ??????????
    – AFEED SM
    May 28 '15 at 9:16
  • I will update my answer, hang on... May 28 '15 at 9:17
  • updated it. BTW do you still use Opera? May 28 '15 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.