How to install apt-add-repository on Ubuntu 13.04
If you try apt-get install apt-add-repository on Ubuntu 13.04 it will say: E: Unable to locate package apt-add-repository You need to install python-software-properties-common.
If you try apt-get install apt-add-repository on Ubuntu 13.04 it will say: E: Unable to locate package apt-add-repository You need to install python-software-properties-common.
I’ve just been setting up Ansible and needed to find a download of the Percona RPM GPG APT-KEY so that I could use the apt_key module. You can download the Percona apt-key here: http://www.percona.com/redir/downloads/RPM-GPG-KEY-percona With Ansible you can add this key to a server via the play:
I just upgrade Ubuntu on one of my virtual machines and for some reason the file system was corrupted after I rebooted the server. I got errors like: ext4-fs error ext4_lookup deleted inode referenced Great. Here is how I fixed the problem. I found the solution was to attach the qcow2 file as a device … Read more
I just exported / copied a virtual machine from one of our servers (a HP Proliant) to my laptop so that I could to mess around with it offline. I used the following commands to export the domain. On the server: On the laptop: However, I got this error on the laptop: error: unsupported configuration: … Read more
Just trying to upgrade the server (sudo apt-get upgrade) and it says: dpkg: error: parsing file ‘/var/lib/dpkg/available’ near line 0 Turns out that /var/lib/dpkg/available is broken. To fix just run: sudo dpkg –clear-avail Then get the latest updates: sudo apt-get update
I rebooted an Ubuntu 12.04 server after upgrading the kernel and MySQL. However, I found that the new MySQL would not start. When I tried: sudo service start mysql I got: start: job failed to start There were no errors appearing in the /var/log/mysql/error.log and so there was no information to help debug it. I … Read more
I wanted to monitor our HP server raid array on Ubuntu 12.04. I am sure that there is a good way of setting this up with Nagios or SMNP – however, I thought I would write a little bash script which emails me if any of the hard drives in the raid array fail. I … Read more
I started getting an error message every time I booted into Ubuntu. “‘The volume “boot” has only ….. bytes disk space remaining.”. This is caused by old Linux kernels filling up the boot partition on the hard drive. For most users, you don’t need to keep old kernels and therefore you can remove them … Read more
It took me a while to find the PSP for Ubuntu. It turns out that HP have renamed the old Proliant Support Pack to Management Component Pack. We use HP ProLiant DL380 G6 servers and want to monitor the raid without using HP Insight software. You can either download the .deb files from the HP … Read more
Everytime I ran the sudo command, it took about 3-10 seconds to ask for the password. I found that the reason for this is that sudo does a DNS lookup. There was a problem with my /etc/hosts file. I had changed the hostname of the computer without updating the /etc/hosts file. The fix was to … Read more