I repeatedly ran into the following warnings while trying to update my Debian box using apt-get.
If you've ever worked with Debian or Ubuntu servers, you've very likely had to set up a firewall at some point or the other. However, any changes that are made are not saved and loaded if the server is ever rebooted. The following is a quick guide on how to get this happening:
(root or sudo access is required)
If you've ever visited a webserver's error page, it will usually state the error followed by information about the server. This will customarily tend to include the webserver software, its version, possibly information about some of the modules compiled in as well as the server's address and port. While this might look generous and helpful, it also allows bad guys as well as other parties to probe the server to find out what it is running as well as other details such as version information. This information can be used for nefarious purposes.
My upgrade from Lucid to Precise did not go well and I've been battling errors ever since. I ran into the following error when trying to reinstall the php5-gd extension for PHP:
No apport report written because MaxReports is reached already
After my upgrade from Lucid to Precise (and thereby, from MySQL 5.1 to 5.5), I found that my MySQL instance was not running. When I tried to start the service all I got back was that it had failed to start.
After an upgrade from Lucid to Precise, my PHP install started complaining about a library:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so'
While I've got a hunch that the actual problem is related to issues I had during the upgrade, turning this error (and other similar ones) off is as simple as going into
/etc/php5/conf.d and renaming the file, in this case
gd.ini to something like
So I tried updating one of my boxen running the Lucid Kubuntu LTS to the new Precise Pangolin beta. During the upgrade, I received an error message stating that adobe-flashplugin could not be upgraded. I ignored it and continued with the upgrade and all went swimmingly. Once the upgrade was completed and I had rebooted, when I tried to run an apt-get update, I ran into an error with respect to the adobe-flashplugin package. When I tried to remove it, it did not work. As a stop-gap measure, I removed a number of packages that depended on it including Firefox and sun-java6.
locate error message: mlocate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
On an Ubuntu box, I tried using the
locate command to find information about a package and ran into the following error:
I ran into the following error when I added a new repository to my kubuntu box and ran
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:
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/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: