trouble updating 7.04 -> 7.10

TJ ubuntu at
Sat Feb 28 23:00:29 UTC 2009

On Sat, 2009-02-28 at 17:06 -0500, sean darcy wrote:

> > It'll overwrite whatever is there.  And, of course, 
> > does have feisty.
> > 
> And, of course, does _NOT_ have feisty

Sean, how about using a read-only file system to prevent the unwanted

*If* it doesn't cause do-release-upgrade to throw a wobbly this might

sudo -i

dd if=/dev/zero of=/tmp/sources.list.d bs=1024 count=2048
losetup /dev/loop1 /tmp/sources.list.d 
mkfs.ext2 /dev/loop1
mkdir /mnt/apt
mount /dev/loop1 /mnt/apt
mv /etc/apt/sources.list.d/* /mnt/apt/

# make the changes to /mnt/apt/prerequists-sources.list

umount /mnt/apt
mount -o ro /dev/loop1 /etc/apt/sources.list.d 


# Obviously, at the end of the process, put things back as they were:

umount /etc/apt/sources.list.d
mount /dev/loop1 /mnt/apt
mv /mnt/apt/* /etc/apt/sources.list.d/
umount /mnt/apt
losetup -d /dev/loop1
rm /tmp/sources.list.d

More information about the ubuntu-server mailing list