On Sat, 2009-02-28 at 17:06 -0500, sean darcy wrote: > > It'll overwrite whatever is there. And, of course, > > us.archive.ubuntu.com does have feisty. > > > > And, of course, us.archive.ubuntu.com does _NOT_ have feisty
Sean, how about using a read-only file system to prevent the unwanted change? *If* it doesn't cause do-release-upgrade to throw a wobbly this might work: 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 do-release-upgrade # 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 -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam