I am attempting to upgrade my laptop (Thinkpad X230) from buster to
bullseye and have run into the error below. In order to ensure that all
goes well and not to lose all of the tweaks I have added over time, I am
performing the upgrade first on a cloned HDD (via "dd") of the working SDD.
apt-get -y upgrade --without-new-pkgs
<snip>
Setting up grub-pc (2.06-3~deb11u6) ...
/dev/disk/by-id/ata-WDC_WDS100T2B0A-00SM50_21185R801540 does not
exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:
DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
dpkg --configure -a
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess
returned error exit status 1
<snip>
All of the latest updates for buster have been applied before starting
the process (below).
apt-get update;apt-get -y upgrade;apt-get -y dist-upgrade;
#shutdown, boot Debian live
#clone working SSD drive to an HDD
#boot cloned drive
#login and open terminal session
#su to root
update-initramfs -u -k all
grub-install --recheck /dev/sda
apt-get update;apt-get -y upgrade;apt-get -y dist-upgrade;
#modify /etc/apt/source.list to point to bullseye
#modify all /etc/apt/source.list.d/* files to point to bullseye
apt-get update;apt-get -y upgrade --without-new-pkgs;
Running the recommended dpkg commands brings up the dialog to install
grub and does complete successfully so that I can then run
"apt-get -y dist-upgrade", which also runs successfully.
What is confusing to me is that the error indicates the source SDD even
though I have updated the boot images and installed grub on the cloned HDD.
Is there some other configuration file that needs to be updated/removed
so that the grub-pc install works without intervention?
Source system info:
user:~$ uname -a
Linux laptop 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09)
x86_64 GNU/Linux
user:~$ cat /etc/debian_version
10.13
user:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 36 bits physical, 48 bits virtual
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Stepping: 9
CPU MHz: 1202.696
CPU max MHz: 3600.0000
CPU min MHz: 1200.0000
BogoMIPS: 5786.44
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic
popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault
epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid
fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
--
Regards,
John Boxall