I have installed Ubuntu 11.10 server 64 bit as a virtual machine, using Virtual Box, on my laptop.
I have already gotten past many of the issues.
I want to install the GUI tools for MySQL (MySQL Administrator and MySQL Query Browser).
Ubuntu Software center finds the packages but I get the error "Failed to download package files" asking me to "Check your Internet connection".
The Internet connection is working with no issues.
I found a link that told me the procedure for getting answers and followed it.
http://askubuntu.com/questions/73997/failed-to-download-package-files-in-virtualbox-with-11-04-and-11-10
Here is the output:
bthomson@Virtual-LAMP:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for bthomson:
bthomson@Virtual-LAMP:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
bthomson@Virtual-LAMP:~$ uname -a
Linux Virtual-LAMP 3.0.0-13-server #22-Ubuntu SMP Wed Nov 2 15:09:08 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
bthomson@Virtual-LAMP:~$ sudo rm /var/lib/apt/lists/lock
bthomson@Virtual-LAMP:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
bthomson@Virtual-LAMP:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
bthomson@Virtual-LAMP:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
bthomson@Virtual-LAMP:~$ sudo rm -rf /var/lib/dpkg/updates/*
bthomson@Virtual-LAMP:~$ sudo rm -rf /var/lib/apt/lists
bthomson@Virtual-LAMP:~$ sudo rm /var/cache/apt/*.bin
bthomson@Virtual-LAMP:~$ sudo mkdir /var/lib/apt/lists
bthomson@Virtual-LAMP:~$ sudo mkdir /var/lib/apt/lists/partial
bthomson@Virtual-LAMP:~$ LANG=C;sudo apt-get clean
bthomson@Virtual-LAMP:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
bthomson@Virtual-LAMP:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.0.0-12* linux-headers-3.0.0-12-server*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 98.2 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 170980 files and directories currently installed.)
Removing linux-headers-3.0.0-12-server ...
Removing linux-headers-3.0.0-12 ...
Processing triggers for libreoffice-common ...
Updating services.rdb...
done.
javaldx: Could not find a Java Runtime Environment!
Please ensure that a JVM and the package libreoffice-java-common
is installed.
If it is already installed then try removing ~/.libreoffice/3/user/config/javasettings_Linux_*.xml
Synchronizing repository for bundled extensions
unopkg done.
Setting up libreoffice-draw (1:3.4.4-0ubuntu1) ...
Setting up python-uno (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-emailmerge (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-gtk (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-gnome (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-impress (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-math (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-style-human (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-base-core (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-calc (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-writer (1:3.4.4-0ubuntu1) ...
Setting up libreoffice-help-en-us (1:3.4.4-0ubuntu1) ...
bthomson@Virtual-LAMP:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824Ign http://archive.canonical.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://extras.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-backports InRelease
Get:1 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:2 http://extras.ubuntu.com oneiric Release.gpg [72 B]
Ign http://archive.ubuntu.com oneiric-security InRelease
Get:3 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:4 http://archive.canonical.com oneiric Release [5922 B]
Get:5 http://extras.ubuntu.com oneiric Release [9759 B]
Get:6 http://archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:7 http://archive.ubuntu.com oneiric-backports Release.gpg [198 B]
Get:8 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:9 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:10 http://archive.canonical.com oneiric/partner Sources [1848 B]
Get:11 http://extras.ubuntu.com oneiric/main Sources [14 B]
Get:12 http://archive.canonical.com oneiric/partner amd64 Packages [3081 B]
Get:13 http://archive.canonical.com oneiric/partner i386 Packages [3512 B]
Get:14 http://extras.ubuntu.com oneiric/main amd64 Packages [14 B]
Get:15 http://extras.ubuntu.com oneiric/main i386 Packages [14 B]
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:16 http://archive.ubuntu.com oneiric-updates Release [32.4 kB]
Get:17 http://archive.ubuntu.com oneiric-backports Release [24.3 kB]
Get:18 http://archive.ubuntu.com oneiric-security Release [32.4 kB]
Get:19 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Ign http://extras.ubuntu.com oneiric/main Translation-en
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:20 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:21 http://archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:22 http://archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:23 http://archive.ubuntu.com oneiric/main amd64 Packages [1226 kB]
Get:24 http://archive.ubuntu.com oneiric/restricted amd64 Packages [8261 B]
Get:25 http://archive.ubuntu.com oneiric/universe amd64 Packages [4460 kB]
Get:26 http://archive.ubuntu.com oneiric/multiverse amd64 Packages [117 kB]
Get:27 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:28 http://archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:29 http://archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:30 http://archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Get:31 http://archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:32 http://archive.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:33 http://archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:34 http://archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:35 http://archive.ubuntu.com oneiric-updates/main Sources [94.6 kB]
Get:36 http://archive.ubuntu.com oneiric-updates/restricted Sources [1348 B]
Get:37 http://archive.ubuntu.com oneiric-updates/universe Sources [25.8 kB]
Get:38 http://archive.ubuntu.com oneiric-updates/multiverse Sources [1992 B]
Get:39 http://archive.ubuntu.com oneiric-updates/main amd64 Packages [218 kB]
Get:40 http://archive.ubuntu.com oneiric-updates/restricted amd64 Packages [2966 B]
Get:41 http://archive.ubuntu.com oneiric-updates/universe amd64 Packages [63.8 kB]
Get:42 http://archive.ubuntu.com oneiric-updates/multiverse amd64 Packages [3763 B]
Get:43 http://archive.ubuntu.com oneiric-updates/main i386 Packages [219 kB]
Get:44 http://archive.ubuntu.com oneiric-updates/restricted i386 Packages [2935 B]
Get:45 http://archive.ubuntu.com oneiric-updates/universe i386 Packages [64.1 kB]
Get:46 http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages [4396 B]
Get:47 http://archive.ubuntu.com oneiric-updates/main TranslationIndex [73 B]
Get:48 http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex [72 B]
Get:49 http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex [71 B]
Get:50 http://archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:51 http://archive.ubuntu.com oneiric-backports/main Sources [1577 B]
Get:52 http://archive.ubuntu.com oneiric-backports/restricted Sources [14 B]
Get:53 http://archive.ubuntu.com oneiric-backports/universe Sources [5071 B]
Get:54 http://archive.ubuntu.com oneiric-backports/multiverse Sources [14 B]
Get:55 http://archive.ubuntu.com oneiric-backports/main amd64 Packages [1905 B]
Get:56 http://archive.ubuntu.com oneiric-backports/restricted amd64 Packages [14 B]
Get:57 http://archive.ubuntu.com oneiric-backports/universe amd64 Packages [5207 B]
Get:58 http://archive.ubuntu.com oneiric-backports/multiverse amd64 Packages [14 B]
Get:59 http://archive.ubuntu.com oneiric-backports/main i386 Packages [1912 B]
Get:60 http://archive.ubuntu.com oneiric-backports/restricted i386 Packages [14 B]
Get:61 http://archive.ubuntu.com oneiric-backports/universe i386 Packages [5199 B]
Get:62 http://archive.ubuntu.com oneiric-backports/multiverse i386 Packages [14 B]
Get:63 http://archive.ubuntu.com oneiric-backports/main TranslationIndex [72 B]
Get:64 http://archive.ubuntu.com oneiric-backports/multiverse TranslationIndex [70 B]
Get:65 http://archive.ubuntu.com oneiric-backports/restricted TranslationIndex [70 B]
Get:66 http://archive.ubuntu.com oneiric-backports/universe TranslationIndex [72 B]
Get:67 http://archive.ubuntu.com oneiric-security/main Sources [18.4 kB]
Get:68 http://archive.ubuntu.com oneiric-security/restricted Sources [14 B]
Get:69 http://archive.ubuntu.com oneiric-security/universe Sources [5590 B]
Get:70 http://archive.ubuntu.com oneiric-security/multiverse Sources [653 B]
Get:71 http://archive.ubuntu.com oneiric-security/main amd64 Packages [54.8 kB]
Get:72 http://archive.ubuntu.com oneiric-security/restricted amd64 Packages [14 B]
Get:73 http://archive.ubuntu.com oneiric-security/universe amd64 Packages [15.5 kB]
Get:74 http://archive.ubuntu.com oneiric-security/multiverse amd64 Packages [919 B]
Get:75 http://archive.ubuntu.com oneiric-security/main i386 Packages [55.1 kB]
Get:76 http://archive.ubuntu.com oneiric-security/restricted i386 Packages [14 B]
Get:77 http://archive.ubuntu.com oneiric-security/universe i386 Packages [15.5 kB]
Get:78 http://archive.ubuntu.com oneiric-security/multiverse i386 Packages [1653 B]
Get:79 http://archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:80 http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex [71 B]
Get:81 http://archive.ubuntu.com oneiric-security/restricted TranslationIndex [70 B]
Get:82 http://archive.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:83 http://archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:84 http://archive.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:85 http://archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:86 http://archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:87 http://archive.ubuntu.com oneiric-updates/main Translation-en [99.5 kB]
Get:88 http://archive.ubuntu.com oneiric-updates/multiverse Translation-en [2419 B]
Get:89 http://archive.ubuntu.com oneiric-updates/restricted Translation-en [508 B]
Get:90 http://archive.ubuntu.com oneiric-updates/universe Translation-en [39.8 kB]
Get:91 http://archive.ubuntu.com oneiric-backports/main Translation-en [1203 B]
Get:92 http://archive.ubuntu.com oneiric-backports/multiverse Translation-en [14 B]
Get:93 http://archive.ubuntu.com oneiric-backports/restricted Translation-en [14 B]
Get:94 http://archive.ubuntu.com oneiric-backports/universe Translation-en [4803 B]
Get:95 http://archive.ubuntu.com oneiric-security/main Translation-en [28.4 kB]
Get:96 http://archive.ubuntu.com oneiric-security/multiverse Translation-en [840 B]
Get:97 http://archive.ubuntu.com oneiric-security/restricted Translation-en [14 B]
Get:98 http://archive.ubuntu.com oneiric-security/universe Translation-en [10.9 kB]
Fetched 22.5 MB in 33s (676 kB/s)
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. 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-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing libghc-url-dev (NewFileDesc2)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
bthomson@Virtual-LAMP:~$ sudo dpkg --clear-avail
bthomson@Virtual-LAMP:~$ sudo dpkg --configure -a
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.0.0-13-server
Processing triggers for python-support ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
bthomson@Virtual-LAMP:~$ 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 0 not upgraded.
bthomson@Virtual-LAMP:~$ 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 0 not upgraded.
bthomson@Virtual-LAMP:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.canonical.com oneiric InRelease
Ign http://extras.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-backports InRelease
Hit http://archive.canonical.com oneiric Release.gpg
Ign http://archive.ubuntu.com oneiric-security InRelease
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://extras.ubuntu.com oneiric Release.gpg
Hit http://archive.canonical.com oneiric Release
Hit http://extras.ubuntu.com oneiric Release
Hit http://archive.ubuntu.com oneiric-updates Release.gpg
Hit http://archive.ubuntu.com oneiric-backports Release.gpg
Hit http://archive.ubuntu.com oneiric-security Release.gpg
Hit http://archive.canonical.com oneiric/partner Sources
Hit http://extras.ubuntu.com oneiric/main Sources
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.canonical.com oneiric/partner amd64 Packages
Hit http://archive.canonical.com oneiric/partner i386 Packages
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Hit http://extras.ubuntu.com oneiric/main amd64 Packages
Hit http://extras.ubuntu.com oneiric/main i386 Packages
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates Release
Hit http://archive.ubuntu.com oneiric-backports Release
Hit http://archive.ubuntu.com oneiric-security Release
Hit http://archive.ubuntu.com oneiric/main Sources
Hit http://archive.ubuntu.com oneiric/restricted Sources
Hit http://archive.ubuntu.com oneiric/universe Sources
Hit http://archive.ubuntu.com oneiric/multiverse Sources
Hit http://archive.ubuntu.com oneiric/main amd64 Packages
Hit http://archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://archive.ubuntu.com oneiric/main i386 Packages
Hit http://archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric/universe i386 Packages
Hit http://archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/main Sources
Hit http://archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://archive.ubuntu.com oneiric-updates/universe Sources
Hit http://archive.ubuntu.com oneiric-updates/multiverse Sources
Ign http://archive.canonical.com oneiric/partner Translation-en
Hit http://archive.ubuntu.com oneiric-updates/main amd64 Packages
Hit http://archive.ubuntu.com oneiric-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com oneiric-updates/universe amd64 Packages
Hit http://archive.ubuntu.com oneiric-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/main TranslationIndex
Ign http://extras.ubuntu.com oneiric/main Translation-en
Hit http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-backports/main Sources
Hit http://archive.ubuntu.com oneiric-backports/restricted Sources
Hit http://archive.ubuntu.com oneiric-backports/universe Sources
Hit http://archive.ubuntu.com oneiric-backports/multiverse Sources
Hit http://archive.ubuntu.com oneiric-backports/main amd64 Packages
Hit http://archive.ubuntu.com oneiric-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com oneiric-backports/universe amd64 Packages
Hit http://archive.ubuntu.com oneiric-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric-backports/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-backports/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/main Sources
Hit http://archive.ubuntu.com oneiric-security/restricted Sources
Hit http://archive.ubuntu.com oneiric-security/universe Sources
Hit http://archive.ubuntu.com oneiric-security/multiverse Sources
Hit http://archive.ubuntu.com oneiric-security/main amd64 Packages
Hit http://archive.ubuntu.com oneiric-security/restricted amd64 Packages
Hit http://archive.ubuntu.com oneiric-security/universe amd64 Packages
Hit http://archive.ubuntu.com oneiric-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com oneiric-security/main i386 Packages
Hit http://archive.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-security/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric-security/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric/main Translation-en
Hit http://archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric/restricted Translation-en
Hit http://archive.ubuntu.com oneiric/universe Translation-en
Hit http://archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-backports/universe Translation-en
Hit http://archive.ubuntu.com oneiric-security/main Translation-en
Hit http://archive.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-security/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-security/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bthomson@Virtual-LAMP:~$