Wednesday, June 10, 2015

Ubuntu 15.04 - apt-get update fills up disk space during download

If during execution of apt-get update after Ubuntu 15.04 64 bit installation, you get a file download that just grows infinitely until it fills up your disk like this...


root@ts036953:/home/pssuser# apt-get update

.
.
.
Get:26 http://za.archive.ubuntu.com vivid/restricted Translation-en [4,228 B]
Get:27 http://za.archive.ubuntu.com vivid/universe Translation-en [4,456 kB]
Get:28 http://za.archive.ubuntu.com vivid-updates/main Sources [598 B]
100% [28 Sources 2,644 MB/2,644 MB 100%] [7 Packages 2,911 MB/2,911 MB 100%]^C


Break the command and then Execute the following command to see the offending file that keeps growing when downloaded during apt-get update, then delete the file or all the file in the /var/lib/apt/lists directory.

root@ts036953:/home/pssuser# ls -latr /var/lib/apt/lists/

To delete of the files in the location where the offending file is execute the following command. Obviously your path might be different to mine so make sure you use the right path for the location of the offending infinitely growing file.


root@ts036953:/home/pssuser# rm /var/lib/apt/lists/partial/*


apt-get update should now run fine.


 root@ts036953:/home/pssuser# apt-get update
.
.
.
Get:39 http://za.archive.ubuntu.com vivid-backports/universe i386 Packages [2,243 B]
Get:40 http://za.archive.ubuntu.com vivid-backports/multiverse i386 Packages [28 B]
Hit http://za.archive.ubuntu.com vivid-backports/main Translation-en
Hit http://za.archive.ubuntu.com vivid-backports/multiverse Translation-en
Hit http://za.archive.ubuntu.com vivid-backports/restricted Translation-en
Hit http://za.archive.ubuntu.com vivid-backports/universe Translation-en
Fetched 792 kB in 22s (34.7 kB/s)
Reading package lists... Done




Thursday, May 14, 2015

Failed to restart mysql.service: Unit mysql.service is masked

On starting the upgrade of Openstack to Kilo, I had a problem starting the mysql/MariaDB as I kept getting an error as follows:

root@ts036953:/home/pssuser# service mysql restart
Failed to restart mysql.service: Unit mysql.service is masked.


Solution:

root@ts036953:/home/pssuser# rm -r /var/lib/mysql*        # Remove any old database setup
root@ts036953:/home/pssuser# mysql_install_db -u mysql    # Install new database
root@ts036953:/home/pssuser# systemctl unmask mysql.service    # Emables the service for systemd
root@ts036953:/home/pssuser# service mysql start        # start the service.

Wednesday, May 13, 2015

dpkg-statoverride: error: an override for

You are trying to install a debian package (e.g. linux-image-3.16.0-31-generic_3.16.0-31.43~14.04.1_amd64.deb) with the following command:

root@ts037152:/home/pssuser# dpkg -i linux-image-3.16.0-31-generic_3.16.0-31.43~14.04.1_amd64.deb


=========================+ Start of output
... 
update-initramfs: Generating /boot/initrd.img-3.16.0-31-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.16.0-31-generic /boot/vmlinuz-3.16.0-31-generic
run-parts: executing /etc/kernel/postinst.d/statoverride 3.16.0-31-generic /boot/vmlinuz-3.16.0-31-generic
dpkg-statoverride: error: an override for '/boot/vmlinuz-3.16.0-31-generic' already exists; aborting
run-parts: /etc/kernel/postinst.d/statoverride exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-31-generic.postinst line 1025.
dpkg: error processing package linux-image-3.16.0-31-generic (--install):
 subprocess installed post-installation script returned error exit status 2

...
=========================+ End of output

To resolve the statoverride error, run the following command:

root@ts037152:/home/pssuser# dpkg-statoverride --remove /boot/vmlinuz-3.16.0-31-generic

Then rerun your installation command for the package.

Hope that helps.

Yours truly,
J. Napo Mokoetle

Sunday, August 16, 2009

KDC_PARTITIONFILE




KDC_PARTITIONFILE="/opt/IBM/ITM/tables/REMOTE_tsitmmflx04/partition.txt"