elohim@Elohim:~$ sudo apt-get install xmame-x xmame-sdl [sudo] password for elohim: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? elohim@Elohim:~$ sudo rm /var/lib/dpkg/lock elohim@Elohim:~$ sudo apt-get install xmame-x xmame-sdl E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. elohim@Elohim:~$ sudo dpkg --configure -a Processing triggers for man-db ... elohim@Elohim:~$ sudo apt-get install xmame-x xmame-sdl Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.0-gdkpixbuf-2.0 libseed0 libvamp-hostsdk3 epiphany-browser-data gir1.0-pango-1.0 libflac++6 gir1.0-gtk-2.0 gir1.0-gstreamer-0.10 gir1.0-clutter-1.0 gir1.0-atk-1.0 xul-ext-adblock-plus gnome-js-common mono-csharp-shell gir1.0-json-glib-1.0 gir1.0-freedesktop libmono-management2.0-cil mono-gmcs Use 'apt-get autoremove' to remove them. The following extra packages will be installed: login xmame-common Suggested packages: xmame-tools The following NEW packages will be installed: xmame-common xmame-sdl xmame-x The following packages will be upgraded: login 1 upgraded, 3 newly installed, 0 to remove and 1445 not upgraded. 1 not fully installed or removed. W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ natty/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages) W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ natty-security/universe i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages) W: You may want to run apt-get update to correct these problems E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ elohim@Elohim:~$ sudo rm /var/cache/apt/archives/lock elohim@Elohim:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: login The following packages will be REMOVED: epiphany-browser-data gir1.0-atk-1.0 gir1.0-clutter-1.0 gir1.0-freedesktop gir1.0-gdkpixbuf-2.0 gir1.0-gstreamer-0.10 gir1.0-gtk-2.0 gir1.0-json-glib-1.0 gir1.0-pango-1.0 gnome-js-common libflac++6 libmono-management2.0-cil libseed0 libvamp-hostsdk3 mono-csharp-shell mono-gmcs xul-ext-adblock-plus The following packages will be upgraded: login 1 upgraded, 0 newly installed, 17 to remove and 1439 not upgraded. 1 not fully installed or removed. Need to get 0B/279kB of archives. After this operation, 22.9MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 254509 files and directories currently installed.) Preparing to replace login 1:4.1.4.2-1ubuntu3 (using .../login_1%3a4.1.4.2+svn3283-3ubuntu1_i386.deb) ... Unpacking replacement login ... REMOVED: epiphany-browser-data gir1.0-atk-1.0 gir1.0-clutter-1.0 gir1.0-freedesktop gir1.0-gdkpixbuf-2.0 gir1.0-gstreamer-0.10 gir1.0-gtk-2.0 gir1.0-json-glib-1.0 gir1.0-pango-1.0 gnome-js-common libflac++6 libmono-management2.0-cil libseed0 libvamp-hostsdk3 mono-csharp-shell mono-gmcs xul-ext-adblock-plus The following packages will be upgraded: login 1 upgraded, 0 newly installed, 17 to remove and 1439 not upgraded. 1 not fully installed or removed. Need to get 0B/279kB of archives. After this operation, 22.9MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 254509 files and directories currently installed.) Preparing to replace login 1:4.1.4.2-1ubuntu3 (using .../login_1%3a4.1.4.2+svn3283-3ubuntu1_i386.deb) ... Unpacking replacement login ...