One of the things this exercise has shown me is that the 'apt' utility is deleting (by default) the package after it's downloaded. I just spent a few hours last night tracking down how to make it stop doing that (the -o option to apt I gave you is one way, using apt-get instead is another).
The other thing I discovered is that (and maybe this is the source of your problem), when I went looking for your version of the Ubuntu debian package on their archives, that it wasn't in the "pool": http://us.archive.ubuntu.com/ubuntu/pool/main/g/grub2/ There is a 1ubuntu26.8: http://us.archive.ubuntu.com/ubuntu/pool/main/g/grub2/grub-pc_2.04-1ubuntu26.8_amd64.deb What that suggests is you need to do an update of the package versions, because it's apparently pointing at a version that is no longer being hosted in the package feed. sudo apt update sudo apt full-upgrade should do the trick. On Sat, Feb 13, 2021 at 3:12 PM John Jason Jordan <[email protected]> wrote: > > On Sat, 13 Feb 2021 14:27:20 -0800 > Russell Senior <[email protected]> dijo: > > >I did some poking around and came up with something for you to try. > > > >First, may sure you have the right grub-pc deb package: > > > > dpkg -l grub-pc > > > >I see something like this at the end: > > > > ii grub-pc 2.04-1ubuntu26.8 amd64 GRand Unified > >Bootloader, version 2 (PC/BIOS version) > > My results: > dpkg -l grub-pc > Desired=Unknown/Install/Remove/Purge/Hold > Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name > Version Architecture Description > +++-==============-================-============-=================================================> > iF grub-pc 2.04-1ubuntu26.4 amd64 GRand Unified > Bootloader, version 2 (PC/BIOS vers> > > >Look in /var/cache/apt/archives for the matching deb file: > >If you don't see it, try: > > apt --reinstall -o APT::Keep-Downloaded-Packages=true install grub-pc > > ls: cannot access '/var/cache/apt/archives/grub-pc*': No such file or > directory > > sudo apt --reinstall -o APT::Keep-Downloaded-Packages=true install > grub-pc > [sudo] password for jjj: Reading package lists... Done > Building dependency tree > Reading state information... Done > Reinstallation of grub-pc is not possible, it cannot be downloaded. > 0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded. > 1 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 grub-pc (2.04-1ubuntu26.4) ... > dpkg: error processing package grub-pc (--configure): > installed grub-pc package post-installation script subprocess returned > error exit status 1 Errors were encountered while processing: > grub-pc > E: Sub-process /usr/bin/dpkg returned an error code (1) > > >You will probably see whatever postinst error you have been seeing. > >But now you should have the deb file, at least, so try looking for it > >again: > > > > ls -l /var/cache/apt/archives/grub-pc* > > Same error message as above - it's still not there. > > But just now I fired up Synaptic, and it lists grub-pc and grub-pc-bin > as installed, version 2.04-1ubuntu26.4. > > For the past several days the Ubuntu Update Manager has kept popping up > to tell me that there are some critical security updates that I need to > install, including a new kernel. I'm going to wait. > _______________________________________________ > PLUG: https://pdxlinux.org > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG: https://pdxlinux.org PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
