Eu tenho uma instalação absolutamente nova do Ubuntu 12.04 em uma unidade USB, feita usando a imagem de desktop do PC de 64 bits (i386). Por "novo" quero dizer que tudo o que fiz foi remover o arquivo casper-rw e substituí-lo por uma partição grande para aumentar a persistência.
(Nota: Eu já sei que não terei esses problemas em 14.04 ou 15.04; no entanto, eu preciso usar uma ferramenta que só é suportada em 12.04, então a atualização não é uma opção).
A atualização do Apt-get fornece os seguintes avisos, mas como são avisos em vez de erros, deixei-os desmarcados. Eles não são o assunto da minha pergunta, a menos que sejam parte do problema, mas sejam fornecidos caso sejam importantes. A solução auto-relatada do sistema (executar o apt-get update) está obviamente errada, porque foi isso que gerou os erros.
Fetched 3,253 kB in 16s (196 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_precise_restricted_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ trusty/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_trusty_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ trusty/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_trusty_restricted_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ vivid/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_vivid_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ vivid/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_vivid_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Mais preocupante, e o problema real, é que o apt-get dist-upgrade sai com erros reais. A saída completa da invocação segundo (ou seja, apenas as partes problemáticas) é:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 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 linux-image-3.13.0-55-generic (3.13.0-55.94~precise1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-55-generic ) points to /boot/initrd.img-3.13.0-55-generic (/boot/initrd.img-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-55-generic ) points to /boot/vmlinuz-3.13.0-55-generic (/boot/vmlinuz-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-55-generic
cryptsetup: WARNING: failed to detect canonical device of overlayfs
cryptsetup: WARNING: could not determine root device from /etc/fstab
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 1025.
dpkg: error processing linux-image-3.13.0-55-generic (--configure): subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-lts-trusty: linux-image-generic-lts-trusty depends on linux-image-3.13.0-55-generic; however: Package linux-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-image-generic-lts-trusty (--configure): dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-trusty: linux-generic-lts-trusty depends on linux-image-generic-lts-trusty; however: Package linux-image-generic-lts-trusty is not configured yet.
dpkg: error processing linux-generic-lts-trusty (--configure): dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-3.13.0-55-generic: linux-signed-image-3.13.0-55-generic depends on linux-image-3.13.0-55-generic (= 3.13.0-55.94~precise1); however: Package linux-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-signed-image-3.13.0-55-generic (--configure):
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-generic-lts-trusty: linux-signed-image-generic-lts-trusty depends on linux-signed-image-3.13.0-55-generic; however: Package linux-signed-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-signed-image-generic-lts-trusty (--configure): dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic-lts-trusty: linux-signed-generic-lts-trusty depends on linux-signed-image-generic-lts-trusty; however: Package linux-signed-image-generic-lts-trusty is not configured yet.
dpkg: error processing linux-signed-generic-lts-trusty (--configure): dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.13.0-55-generic
linux-image-generic-lts-trusty
linux-generic-lts-trusty
linux-signed-image-3.13.0-55-generic
linux-signed-image-generic-lts-trusty
linux-signed-generic-lts-trusty
E: Sub-process /usr/bin/dpkg returned an error code (1)
Não sei o que fazer quando os upgrades dão errado nessa extensão em um novo sistema; Eu nem tenho certeza do que é a maioria dessas coisas.
(Edit: A ferramenta que citei acima é o Nvidia Nsight Eclipse para o propósito específico de compilar código com meu laptop como host e uma placa de desenvolvimento Nvidia Jetson como o alvo. Meu entendimento é que apenas o Ubuntu 12.04 é suportado. )