Thanks for the great idea with the apt sfs and script. But there seem to be a number of bugs - sorry I can't directly debug the script myself, would give it a shot but getting screwed on time...
So this is what I did:
1. Made an empty 400M image file and mounted it on /mnt/repositories
2. Expanded apt_synaptic-dpup.pet as instructed
3. Saved your script at flugwelpe-apt.sh in my root directory and then ran it on the directory where I had expanded apt_synaptic-dpup
4. Things semed to run ok though nothing had been created in my /mnt/repositories file
5. Did a mksquashfs4 on it
6. Installed SFS Linker pet and rebooted
7. Ran sfs_linker on the image file - got a long string of errors, but it seemed to link ok, i.e. apt-get command executed and /mnt/apt_synaptic-dpup.sfs looked ok on a brief inspection
8. Mounted my image file on /mnt/repositories again
9. Ran apt-RUNMEFIRST and got these errors:
Code: Select all
cp: cannot stat `/var/apt_initial_dirs/cache/apt/*': No such file or directory
cp: cannot stat `/var/apt_initial_dirs/cache/apt-build/*': No such file or directory
cp: cannot stat `/var/apt_initial_dirs/lib/apt/*': No such file or directory
Then ran apt-get update and get:
Code: Select all
E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory
Any idea what's going on?