Ubuntu

By Druss , 6 February, 2012

On an Ubuntu box, I tried using the locate command to find information about a package and ran into the following error:

mlocate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

The locate program (should) routinely builds a database of files on the box and searches it when we call it. As the error message states, this database appears to be missing thereby leading to the error. Fixing it is as simple as calling:
updatedb

which should build the database.

Hope this helps!

By Druss , 6 December, 2011

I ran into the following error when I added a new repository to my kubuntu box and ran apt-get update:
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 123123. (man 5 apt.conf)

To fix this, navigate to /etc/apt/apt.conf.d and edit the file related to debconf which in my case was 70debconf. Add the following line to the bottom of this file and save it:
APT::Cache-Limit "200000000";

By Druss , 17 May, 2011

Finding all the members of a group is an occasional requirement and while there are a number of ways to do this by parsing the /etc/group and /etc/password files, Debian/Ubuntu come with a simpler solution that performs all this skulduggery for you. This is the members function that can simply be installed using sudo apt-get install members . Once this is done, members of a group named foo can be listed using:
members foo.

By Druss , 9 May, 2011

Earlier today, I noticed - in htop - that a particular process, let's say 'foo-123', was running even though I had removed the package 'foo' many days earlier. I tried removing it again and found that I was right and that the package had already been removed. The package dependency list was way too long for me to go removing them one by one, or parsing them out and removing the lot.

IRC, however, was very obliging to my query and provided me with the below-pasted nifty solution that did not allow any odd gimmickry:
sudo aptitude search '~i' | grep foo

By Druss , 5 October, 2008

If you are using Skype on Linux and run into the error message "P2P connect failed" while trying to sign in, then your configuration file is very likely corrupt. The fix is to just delete the .Skype directory from your home directory and restart Skype. If you have anything worth saving inside this directory, you can simply rename it instead or alternatively, back it up elsewhere prior to deletion.

The version of Skype on my system is 2.0.0.72 and it was installed (and upgraded) from the Medibuntu repository. I'm pretty certain that the previous version was working fine.

By Druss , 31 January, 2008

I have a Gigabyte board with an nForce 430 chipset that supports RAID. I was hoping to use it to create a simple RAID1 mirror using two hard drives to protect my previous MP3 collection. The system in question is an updated Kubuntu Gutsy box.

Before we start, this is the first time I am playing with RAID and the information below might very well be wrong. Please feel free to correct me :)

By Druss , 4 November, 2007

If you ever find yourself running into a monotonous

"The following packages have been kept back"

error message when you run sudo apt-get upgrade, then the "fix" is to either run apt-get dist-upgrade which is quicker, but sounds more ... dangerous or to run apt-get install [package list] where package list is a list of all packages that have been kept back.

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.