sources list repair

Asked by Royalist

roy@roy-desktop:~$ sudo grep -R proxy /etc/apt/*
roy@roy-desktop:~$ sudo fuser -vvv /var/lib/dpkg/lock
roy@roy-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
roy@roy-desktop:~$ uname -a
Linux roy-desktop 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
roy@roy-desktop:~$ sudo rm /var/lib/apt/lists/lock
roy@roy-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
roy@roy-desktop:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
roy@roy-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
roy@roy-desktop:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
roy@roy-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
roy@roy-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
roy@roy-desktop:~$ sudo rm -rf /var/lib/apt/lists
roy@roy-desktop:~$ sudo rm /var/cache/apt/*.bin
roy@roy-desktop:~$ sudo mkdir /var/lib/apt/lists
roy@roy-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
roy@roy-desktop:~$ LANG=C;sudo apt-get clean
roy@roy-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
roy@roy-desktop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
roy@roy-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://security.ubuntu.com precise-security InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://gb.archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Get:1 http://archive.canonical.com precise Release.gpg [198 B]
Ign http://gb.archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com quantal-updates InRelease
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:3 http://archive.canonical.com precise Release [7078 B]
Get:4 http://gb.archive.ubuntu.com precise Release.gpg [198 B]
Get:5 http://archive.ubuntu.com quantal Release.gpg [933 B]
Get:6 http://security.ubuntu.com quantal-security Release.gpg [933 B]
Get:7 http://gb.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:8 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:9 http://archive.ubuntu.com quantal-updates Release.gpg [933 B]
Get:10 http://gb.archive.ubuntu.com precise Release [49.6 kB]
Get:11 http://archive.ubuntu.com quantal Release [49.6 kB]
Get:12 http://security.ubuntu.com quantal-security Release [49.6 kB]
Get:13 http://archive.canonical.com precise/partner Sources [4867 B]
Get:14 http://gb.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:15 http://security.ubuntu.com precise-security/main Sources [100 kB]
Get:16 http://archive.canonical.com precise/partner i386 Packages [8932 B]
Get:17 http://archive.ubuntu.com quantal-updates Release [49.6 kB]
Get:18 http://gb.archive.ubuntu.com precise/main Sources [934 kB]
Get:19 http://security.ubuntu.com precise-security/restricted Sources [2494 B]
Get:20 http://security.ubuntu.com precise-security/universe Sources [30.9 kB]
Get:21 http://archive.ubuntu.com quantal/main i386 Packages [1136 kB]
Get:22 http://security.ubuntu.com precise-security/multiverse Sources [1789 B]
Ign http://archive.canonical.com precise/partner Translation-en
Get:23 http://security.ubuntu.com precise-security/main i386 Packages [399 kB]
Get:24 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:25 http://security.ubuntu.com precise-security/universe i386 Packages [96.2 kB]
Get:26 http://gb.archive.ubuntu.com precise/restricted Sources [5470 B]
Get:27 http://gb.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:28 http://security.ubuntu.com precise-security/multiverse i386 Packages [2646 B]
Get:29 http://security.ubuntu.com precise-security/main Translation-en [174 kB]
Get:30 http://archive.ubuntu.com quantal/universe i386 Packages [5285 kB]
Get:31 http://security.ubuntu.com precise-security/multiverse Translation-en [1299 B]
Get:32 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:33 http://security.ubuntu.com precise-security/universe Translation-en [56.6 kB]
Get:34 http://gb.archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:35 http://gb.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:36 http://security.ubuntu.com quantal-security/universe i386 Packages [71.8 kB]
Get:37 http://security.ubuntu.com quantal-security/main i386 Packages [199 kB]
Get:38 http://gb.archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:39 http://gb.archive.ubuntu.com precise-updates/main Sources [453 kB]
Get:40 http://security.ubuntu.com quantal-security/restricted i386 Packages [3531 B]
Get:41 http://security.ubuntu.com quantal-security/main Translation-en [103 kB]
Get:42 http://security.ubuntu.com quantal-security/restricted Translation-en [1066 B]
Get:43 http://security.ubuntu.com quantal-security/universe Translation-en [41.8 kB]
Get:44 http://gb.archive.ubuntu.com precise-updates/restricted Sources [8028 B]
Get:45 http://gb.archive.ubuntu.com precise-updates/multiverse Sources [8900 B]
Get:46 http://gb.archive.ubuntu.com precise-updates/main i386 Packages [783 kB]
Get:47 http://gb.archive.ubuntu.com precise-updates/restricted i386 Packages [12.2 kB]
Get:48 http://gb.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.5 kB]
Get:49 http://gb.archive.ubuntu.com precise-updates/main Translation-en [339 kB]
Get:50 http://gb.archive.ubuntu.com precise-updates/multiverse Translation-en [9010 B]
Get:51 http://gb.archive.ubuntu.com precise-updates/restricted Translation-en [2988 B]
Get:52 http://archive.ubuntu.com quantal/restricted i386 Packages [8387 B]
Get:53 http://archive.ubuntu.com quantal/main Translation-en [660 kB]
Get:54 http://archive.ubuntu.com quantal/restricted Translation-en [2575 B]
Get:55 http://archive.ubuntu.com quantal/universe Translation-en [3648 kB]
Get:56 http://archive.ubuntu.com quantal-updates/universe i386 Packages [218 kB]
Get:57 http://archive.ubuntu.com quantal-updates/main i386 Packages [326 kB]
Get:58 http://archive.ubuntu.com quantal-updates/restricted i386 Packages [4841 B]
Get:59 http://archive.ubuntu.com quantal-updates/main Translation-en [164 kB]
Get:60 http://archive.ubuntu.com quantal-updates/restricted Translation-en [1477 B]
Get:61 http://archive.ubuntu.com quantal-updates/universe Translation-en [113 kB]
Fetched 17.8 MB in 19s (914 kB/s)
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
Reading package lists... Error!
E: Unable to increase the size of the MMap as the limit of 25165824 bytes is already reached.
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing eclipse-cdt-valgrind (NewDescription1)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_quantal_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
roy@roy-desktop:~$ sudo dpkg --configure -a
roy@roy-desktop:~$ sudo dpkg --clear-avail
roy@roy-desktop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 485 not upgraded.
roy@roy-desktop:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 485 not upgraded.
roy@roy-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://gb.archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com quantal-updates InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Hit http://archive.canonical.com precise Release.gpg
Ign http://gb.archive.ubuntu.com precise-updates InRelease
Hit http://archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://archive.ubuntu.com quantal-updates Release.gpg
Hit http://gb.archive.ubuntu.com precise Release.gpg
Hit http://security.ubuntu.com quantal-security Release.gpg
Hit http://archive.ubuntu.com quantal Release
Hit http://gb.archive.ubuntu.com precise-updates Release.gpg
Hit http://security.ubuntu.com precise-security Release
Hit http://archive.canonical.com precise/partner Sources
Hit http://archive.ubuntu.com quantal-updates Release
Hit http://gb.archive.ubuntu.com precise Release
Hit http://security.ubuntu.com quantal-security Release
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://gb.archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com quantal/main i386 Packages
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com quantal/universe i386 Packages
Hit http://archive.ubuntu.com quantal/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://gb.archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com quantal/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com quantal/restricted Translation-en
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://gb.archive.ubuntu.com precise/restricted Sources
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com quantal/universe Translation-en
Hit http://gb.archive.ubuntu.com precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com quantal-updates/universe i386 Packages
Hit http://gb.archive.ubuntu.com precise/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://archive.ubuntu.com quantal-updates/main i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com quantal-updates/restricted i386 Packages
Hit http://gb.archive.ubuntu.com precise/main Translation-en
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com quantal-updates/main Translation-en
Hit http://gb.archive.ubuntu.com precise/restricted Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com quantal-updates/restricted Translation-en
Hit http://archive.ubuntu.com quantal-updates/universe Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://security.ubuntu.com quantal-security/universe i386 Packages
Hit http://security.ubuntu.com quantal-security/main i386 Packages
Hit http://security.ubuntu.com quantal-security/restricted i386 Packages
Hit http://security.ubuntu.com quantal-security/main Translation-en
Hit http://security.ubuntu.com quantal-security/restricted Translation-en
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/main Sources
Hit http://gb.archive.ubuntu.com precise-updates/restricted Sources
Hit http://gb.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://gb.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://gb.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://gb.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com precise-updates/main Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/restricted Translation-en
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
Reading package lists... Error!
E: Unable to increase the size of the MMap as the limit of 25165824 bytes is already reached.
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing eclipse-cdt-valgrind (NewDescription1)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_quantal_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Royalist
Solved:
Last query:
Last reply:
Revision history for this message
Royalist (royalist10-2) said :
#1

Please could you use your diagnostic skills on the foregoing?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Your system reports that it is Quantal, yet your sources show Precise. What have you being doing?

Revision history for this message
Royalist (royalist10-2) said :
#3

In January I upgraded from 12.04 to 12.10

That is all I know about!

apt seems to going fine now and I have taken your advice. Libre office
now seems to be fine. The menus are now visible again. This was just one
of the previous symptons.

Thanks for your help

R
On 18/03/14 17:11, actionparsnip wrote:
> Your question #245683 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/245683
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Your system reports that it is Quantal, yet your sources show Precise.
> What have you being doing?
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Please mark as solved if it is so.
Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Please provide the output of the terminal command

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

that we can verify your sources.list setting and eventually can recommend how to correct it to prevent re-occurence of "Dynamic MMap ran out of room" errors.

Revision history for this message
Royalist (royalist10-2) said :
#6

Will do!

I quite like the vanilla flavour.

Regards

R

Revision history for this message
Royalist (royalist10-2) said :
#7

Thanks for your help. I quite like the vanilla flavour!