omahn
September 6th, 2007, 04:29 AM
I just discovered ubuntuzilla after speaking to some colleagues who highly recommended the script for installing newer versions Firefox and Thunderbird. Unfortunately it fails to complete on my systems.
I think the issue lies with my use of LVM and the output of df -k. Here's the error:
Backing up old Firefox preferences
Traceback (most recent call last):
File "/usr/local/bin/ubuntuzilla.py", line 1032, in <module>
bs.start()
File "/usr/local/bin/ubuntuzilla.py", line 219, in start
fi.start()
File "/usr/local/bin/ubuntuzilla.py", line 246, in start
self.install()
File "/usr/local/bin/ubuntuzilla.py", line 503, in install
self.backupProfile()
File "/usr/local/bin/ubuntuzilla.py", line 639, in backupProfile
self.checkDiskSpaceForBackup("~/.mozilla")
File "/usr/local/bin/ubuntuzilla.py", line 359, in checkDiskSpaceForBackup
availableForBackup = int(self.util.getSystemOutput(executionstring="df -k "+target+" | grep '/dev' |awk '{print $4}'"))
I'm using LVM on my systems and I can see that df -k returns a two line entry, see below:
pre500@jumpjet:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/sdaVG-root
206424760 85494788 118836084 42% /
varrun 1037472 156 1037316 1% /var/run
varlock 1037472 0 1037472 0% /var/lock
procbususb 1037472 84 1037388 1% /proc/bus/usb
udev 1037472 84 1037388 1% /dev
devshm 1037472 0 1037472 0% /dev/shm
/dev/sda1 124427 50737 73690 41% /boot
Could this be the issue? I suspect the blank line is causing some issue here:
pre500@jumpjet:~$ df -k | grep '/dev' |awk '{print $4}'
1037388
1037472
73690
Any ideas?
Thanks.
I think the issue lies with my use of LVM and the output of df -k. Here's the error:
Backing up old Firefox preferences
Traceback (most recent call last):
File "/usr/local/bin/ubuntuzilla.py", line 1032, in <module>
bs.start()
File "/usr/local/bin/ubuntuzilla.py", line 219, in start
fi.start()
File "/usr/local/bin/ubuntuzilla.py", line 246, in start
self.install()
File "/usr/local/bin/ubuntuzilla.py", line 503, in install
self.backupProfile()
File "/usr/local/bin/ubuntuzilla.py", line 639, in backupProfile
self.checkDiskSpaceForBackup("~/.mozilla")
File "/usr/local/bin/ubuntuzilla.py", line 359, in checkDiskSpaceForBackup
availableForBackup = int(self.util.getSystemOutput(executionstring="df -k "+target+" | grep '/dev' |awk '{print $4}'"))
I'm using LVM on my systems and I can see that df -k returns a two line entry, see below:
pre500@jumpjet:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/sdaVG-root
206424760 85494788 118836084 42% /
varrun 1037472 156 1037316 1% /var/run
varlock 1037472 0 1037472 0% /var/lock
procbususb 1037472 84 1037388 1% /proc/bus/usb
udev 1037472 84 1037388 1% /dev
devshm 1037472 0 1037472 0% /dev/shm
/dev/sda1 124427 50737 73690 41% /boot
Could this be the issue? I suspect the blank line is causing some issue here:
pre500@jumpjet:~$ df -k | grep '/dev' |awk '{print $4}'
1037388
1037472
73690
Any ideas?
Thanks.