details:
After upgrading my 64-bit laptop to Natty and my GF's desktop to Katya, I was ready to try a rolling release on my laptop. So I imaged the Natty and downloaded and burned the latest LMDE DVD, which @ that point was 201012. However I later discovered that there were newer ISOs not on the release page which apparently are helpful, so my first Note for Newbies is,
- Before just installing whatever is on the download page, get on this forum and ask if there's anything newer.
- Consider making test ISOs available by links from the download page.
Code: Select all
System settings
...
Install bootloader in /dev/sda
Filesystem operations
Format /dev/sda1 (477) as ext4
Format /dev/sda2 (19074) as ext4
Mount /dev/sda1 as /boot
Mount /dev/sda2 as /
Mount /dev/sda3 as swap
Mount /dev/sda5 as /home
- For ease of install (et al), partition your disk appropriately. Minimally, /home and / should be on separate partitions.
Code: Select all
$ sudo aptitude install emacs
Code: Select all
Err http://ftp.debian.org/debian/ testing/main emacs23-common all 23.2+1-5.1
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org/debian/ testing/main emacs23-bin-common amd64 23.2+1-5.1
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org/debian/ testing/main emacs23 amd64 23.2+1-5.1
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org/debian/ testing/main emacs all 23.2+1-5.1
404 Not Found [IP: 130.89.149.226 80]
Being determined to solve this problem myself, I read and googled and fiddled, and basically wasted a day before posting to the LMDE forum, whereupon I got very prompt help from zerozero (in whose general direction I bow): turns out, before one can install LMDE Update Manager, one must create /etc/apt/apt.conf.d/80mintupdate-debian and then update the package cache (e.g.,
Code: Select all
$ sudo aptitude update
- If you encounter a problem, try solving it yourself, but if it takes too long, punt to the fine folks @ the LMDE forum.
- sudo apt-get update
- sudo apt-get dist-upgrade
- ... which dies ugly in `samba`, like
Code: Select all
Preparing to replace samba 2:3.5.6~dfsg-1 (using .../samba_2%3a3.5.8~dfsg-5_amd64.deb) ... Stopping Samba daemons: nmbd smbd. Unpacking replacement samba ... Can't locate File/Temp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl5/DebianNet.pm line 18. BEGIN failed--compilation aborted at /usr/share/perl5/DebianNet.pm line 18. Compilation failed in require at /usr/sbin/update-inetd line 23. dpkg: warning: subprocess old post-removal script returned error exit status 2 dpkg - trying script from the new package instead ... Can't locate File/Temp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl5/DebianNet.pm line 18. BEGIN failed--compilation aborted at /usr/share/perl5/DebianNet.pm line 18. Compilation failed in require at /usr/sbin/update-inetd line 23. dpkg: error processing /var/cache/apt/archives/samba_2%3a3.5.8~dfsg-5_amd64.deb (--unpack): subprocess new post-removal script returned error exit status 2 configured to not write apport reports Can't locate File/Temp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl5/DebianNet.pm line 18. BEGIN failed--compilation aborted at /usr/share/perl5/DebianNet.pm line 18. Compilation failed in require at /usr/sbin/update-inetd line 23. dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 2 Preparing to replace samba-common 2:3.5.6~dfsg-1 (using .../samba-common_2%3a3.5.8~dfsg-5_all.deb) ... Unpacking replacement samba-common ... Preparing to replace libacl1 2.2.49-4 (using .../libacl1_2.2.51-3_amd64.deb) ... Unpacking replacement libacl1 ... Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/samba_2%3a3.5.8~dfsg-5_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
- to fix that: `sudo apt-get -f install`
- ... which dies ugly in `initramfs-tools`, like
Code: Select all
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64 cp: cannot stat `/lib/libacl*': No such file or directory E: /usr/share/initramfs-tools/hooks/live failed with return 1. update-initramfs: failed for /boot/initrd.img-2.6.32-5-amd64 dpkg: error processing initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports Processing triggers for menu ... Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
- and then, once more: `sudo apt-get dist-upgrade`
Code: Select all
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-2.6.32-5-amd64 with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
linux-image-2.6.39-2-amd64
linux-image-2.6-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
cp: cannot stat `/lib/libacl*': No such file or directory
Code: Select all
me@it:~$ sudo apt-get -f install libacl1-dev
...
> The following extra packages will be installed:
> libattr1-dev
> The following NEW packages will be installed:
> libacl1-dev libattr1-dev
> 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
> 3 not fully installed or removed.
...
> cp: cannot stat `/lib/libacl*': No such file or directory
> E: /usr/share/initramfs-tools/hooks/live failed with return 1.
> update-initramfs: failed for /boot/initrd.img-2.6.32-5-amd64 with 1.
> dpkg: error processing initramfs-tools (--configure):
> subprocess installed post-installation script returned error exit status 1
> configured to not write apport reports
> Errors were encountered while processing:
> linux-image-2.6.39-2-amd64
> linux-image-2.6-amd64
> initramfs-tools
> E: Sub-process /usr/bin/dpkg returned an error code (1)
me@it:~$ sudo find /usr -name 'libacl*'
> /usr/lib/libacl.a
> /usr/lib/libacl.so
> /usr/include/acl/libacl.h
> /usr/share/doc/libacl1
> /usr/share/doc/libacl1-dev
me@it:~$ ls -al /lib | wc -l
> 102
me@it:~$ ls -al /lib | head
> lrwxrwxrwx 1 root root 21 Aug 14 21:57 cpp -> /etc/alternatives/cpp
> drwxr-xr-x 2 root root 4096 Nov 23 2010 discover
> drwxr-xr-x 26 root root 12288 Aug 16 17:22 firmware
> drwxr-xr-x 3 root root 4096 Aug 16 16:17 init
> -rwxr-xr-x 1 root root 70280 Jul 7 19:11 klibc-CKEGzq4p8zxB3hJ8pZZJ754zXN4.so
> lrwxrwxrwx 1 root root 27 Aug 14 21:46 ld-linux-x86-64.so.2 -> x86_64-linux-gnu/ld-2.13.so
> lrwxrwxrwx 1 root root 20 Feb 7 2011 libatasmart.so.4 -> libatasmart.so.4.0.3
me@it:/lib$ sudo ln -s ../usr/lib/libacl.so ./
me@it:~$ sudo apt-get upgrade -f dist-upgrade
...
> The following packages have been kept back:
> gstreamer0.10-ffmpeg
> 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> 3 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Setting up initramfs-tools (0.99) ...
> update-initramfs: deferring update (trigger activated)
> Setting up linux-image-2.6.39-2-amd64 (2.6.39-3) ...
> Running depmod.
> vmlinuz(/boot/vmlinuz-2.6.39-2-amd64
> ) points to /boot/vmlinuz-2.6.39-2-amd64
> (/boot/vmlinuz-2.6.39-2-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.39-2-amd64.postinst line 346, <STDIN> line 7.
> The link /initrd.img is a dangling linkto /boot/initrd.img-2.6.39-2-amd64
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> dkms: running auto installation service for kernel 2.6.39-2-amd64:
> ndiswrapper (1.56+r2729)...done.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> update-initramfs: Generating /boot/initrd.img-2.6.39-2-amd64
> cp: cannot stat `/lib/libattr*': No such file or directory
me@it:~$ sudo find /usr -name 'libattr*'
> /usr/lib/x86_64-linux-gnu/libattr.a
> /usr/lib/x86_64-linux-gnu/libattr.so
> /usr/include/attr/libattr.h
> /usr/share/doc/libattr1-dev
> /usr/share/doc/libattr1
me@it:~$ pushd /lib
me@it:/lib$ sudo ln -s ../usr/lib/x86_64-linux-gnu/libattr.so ./
me@it:/lib$ popd
me@it:~$ sudo apt-get upgrade -f dist-upgrade
...
> The following packages have been kept back:
> gstreamer0.10-ffmpeg
> 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> 3 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Setting up initramfs-tools (0.99) ...
> update-initramfs: deferring update (trigger activated)
> Setting up linux-image-2.6.39-2-amd64 (2.6.39-3) ...
> Running depmod.
> vmlinuz(/boot/vmlinuz-2.6.39-2-amd64
> ) points to /boot/vmlinuz-2.6.39-2-amd64
> (/boot/vmlinuz-2.6.39-2-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.39-2-amd64.postinst line 346, <STDIN> line 7.
> The link /initrd.img is a dangling linkto /boot/initrd.img-2.6.39-2-amd64
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> dkms: running auto installation service for kernel 2.6.39-2-amd64:
> ndiswrapper (1.56+r2729)...done.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> update-initramfs: Generating /boot/initrd.img-2.6.39-2-amd64
> ldconfig: /lib/libuuid.so.1 is not a symbolic link
>
> run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.39-2-amd64 /boot/vmlinuz-2.6.39-2-amd64
> Generating grub.cfg ...
> Found background image: linuxmint.png
> Found Debian background: linuxmint.png
> Found linux image: /boot/vmlinuz-2.6.39-2-amd64
> Found initrd image: /boot/initrd.img-2.6.39-2-amd64
> Found linux image: /boot/vmlinuz-2.6.32-5-amd64
> Found initrd image: /boot/initrd.img-2.6.32-5-amd64
> done
> Setting up linux-image-2.6-amd64 (2.6.39+35.1) ...
> Processing triggers for initramfs-tools ...
> update-initramfs: Generating /boot/initrd.img-2.6.39-2-amd64
> ldconfig: /lib/libuuid.so.1 is not a symbolic link
Code: Select all
$ sudo shutdown -r now
Code: Select all
$ sudo shutdown -Ph now
At this point you should have a fairly functional system (I do, though I still have a few broken packages) with a fairly up-to-date kernel. So my final Notes for Newbies are
- If you hang in restart, "Reboot Even If System Utterly Broken", and then
Code: Select all
$ sudo aptitude remove kexec-tools
- zerozero is a god who walks the earth !-)