Starting my journey away from Windows

You might try
apt-get update -f
or
apt-get upgrade -f
Otherwise, if it has been reported , just wait.

2 Likes

Good advice.

I would also look at the following

Reconfiguring the dpkg Database
sudo dpkg --configure -a
sudo apt clean
command tells dpkg to configure all packages that are unpacked but not yet configured cleaning any issues

Another suggestion for you instead of dual booting

https://www.xda-developers.com/reasons-embrace-virtual-machines-instead-dual-booting/

I know several on this site do just that. But as I have no need or want for windows not my thing

Neville,
Here is the part of the /boot/grb/grub.cfg file of interest:

menuentry 'LMDE 6 Faye' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ff1ed265-9
90e-4173-8ed6-06bba4771c20' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd3,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt3 --hint-efi=hd3,gpt3 --hint-baremetal=ahci3,gpt3  ff1ed265-99
0e-4173-8ed6-06bba4771c20
        else
          search --no-floppy --fs-uuid --set=root ff1ed265-990e-4173-8ed6-06bba4771c20
        fi
        echo    'Loading Linux 6.1.0-31-amd64 ...'
        linux   /boot/vmlinuz-6.1.0-31-amd64 root=UUID=ff1ed265-990e-4173-8ed6-06bba4771c20 ro  quiet splash
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.1.0-31-amd64
}

It shows: set root=‘hd3,gpt3’ which is correct. The root partition is on the 4th drive, partition 3 (sdd3), with partition 1 (sdd1) as /boot/efi and partition 2 (sdd2) as swap. I’m assuming the values listed are using a 0-based numbering. So my 1st disk (0) is my Windows system disk (sda2).
I’ll try your 2nd suggestion next (press ‘e’ at the grub screen.
I tried sudo apt-get upgrade -f and got the same error messages as before. The -f swithc is not valid with apt-get update.

1 Like

I verified the UUID in this line is correct. It is sdd3, by linux /root partition.

1 Like

Paul,
I tried these suggestions. It didn’t change anything.
The log includes this:

update-initramfs: Generating /boot/initrd.img-6.1.0-32-amd64
I: The initramfs will attempt to resume from /dev/sdd2
I: (UUID=e3747d5c-a8a2-4d5f-ac04-52cd93139b7a)
I: Set the RESUME variable to override this.

The UUID is my swap partition. Should it be looking elsewhere to “resume”?

1 Like

Yes, nothing wrong there

You will get the same there.

That is OK too, assuming the UUID is correct.

What do you have in /etc/fstab?

Thanks I could not remember whether to use update or upgrade with - f.

Is that correct?

I am not sure about that.
It is possible that the boot process uses swap for temporary storage. Will see if I can find out?.. no the boot process does not use swap. … I think your initramfs may need updating? There is a command for that… I will have to look it up.

Use update-initramfs -u … that is safe

Also
you might try doing

update-grub

as root of course.

I am running out of ideas.
That boot failure is a kernel panic… it could not find something?
Does it always boot properly if you boot straight into !inux from poweron?
If it is only a problem when you come from booting Windows first then we must think about what Windows is doing to your BIOS?

1 Like

I am out of ideas totally, sorry, but read with interest the replies of Neville

Would changing the boot order make a difference ?
Linux first then windows ?
Or running a VM inside linux ?

1 Like

Linux is the 1st entry in the Grub men. Windows is 3rd.
Don’t want to go the VM route. I’ve always had problems with VMs behaving badly, and they don’t (easily, if at all) have access to my data drives which are outside of the VM.

1 Like

Neville, I tried your suggestion update-initramfs -u. System boots OK, whether allowing Grub to default to LMDE or if I select it. But this has been inconsistent in the past, so I’m not sure yet whether this fixed that problem.

However, I still get the same “not yet configured” errors when running apt-get autoremove or apt-get upgrade.

Following some of the suggestions from your link to the askubuntu.com item, i find this:

ken@LMDE:~$ kernelver=$(uname -r | sed -r 's/-[a-z]+//')
ken@LMDE:~$ echo $[kernelserver]
0
ken@LMDE:~$ dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver
linux-headers-6.1.0-12-amd64
linux-headers-6.1.0-12-common
linux-headers-6.1.0-31-amd64
linux-headers-6.1.0-31-common
linux-headers-6.1.0-32-amd64
linux-headers-6.1.0-32-common
linux-image-6.1.0-12-amd64
linux-image-6.1.0-31-amd64
ken@LMDE:~$ uname -r
6.1.0-31-amd64

So it looks like I have 3 kernel versions installed (12, 31 & 32). Version 32 is the one that the error messages say is not yet configured, and 31 is the active version. Should I purge the headers & images for versions 12 & 32, followed by

sudo apt-get auto-remove && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade

as described in that article? Would that also re-install version 32?

1 Like

I would keep version 12.
You need at least 2 working kernels
So purge 32 , and try those commands
It will probably reinstall 32… but no harm done… it will just repeat the error, unless they have fixed it.
I think you have to wait a while
The may be a way of blacklisting 32, so you can wait for 33.

2 Likes

I tried:

$ sudo update-grub
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found

The file /etc/default/grub does exist. I don’t know what isn’t being found but it seems to be complaining about the # at the beginning of line 1. I previously made a 1-line change to set the default timeout from 5 to 15 seconds. For context, here are the 1st 12 lines of the file:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
# KL change grub timeout from 5 to 10
#GRUB_TIMEOUT=5
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
1 Like

I think I found the update-grub error problem here:

https://ubuntuforums.org/archive/index.php/t-2154325.html

It seems that line 1 doesn’t start with #, but with an invisible and 0-length character before the #. I edited the file by pressing the Delete key at the beginning of the file. The # was still there, and the first line then changed to blue (comment line). The update-grub worked without generating an error.

ken@LMDE:~$ sudoedit /etc/default/grub
ken@LMDE:~$ sudo update-grub
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-6.1.0-31-amd64
Found initrd image: /boot/initrd.img-6.1.0-31-amd64
Found linux image: /boot/vmlinuz-6.1.0-12-amd64
Found initrd image: /boot/initrd.img-6.1.0-12-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
ken@LMDE:~$ 

Then I did this:

sudo apt-get auto-remove && sudo apt-get clean

and

ken@LMDE:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-image-6.1.0-32-amd64
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 409 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 550759 files and directories currently installed.)
Removing linux-image-6.1.0-32-amd64 (6.1.129-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-32-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-6.1.0-31-amd64
Found initrd image: /boot/initrd.img-6.1.0-31-amd64
Found linux image: /boot/vmlinuz-6.1.0-12-amd64
Found initrd image: /boot/initrd.img-6.1.0-12-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

No more “unitialized” error!
And i found that I’m now using kernel version 31

ken@LMDE:~$ uname -r
6.1.0-31-amd64

Hopefully this fixes everything!
Thanks everybody for your helpful suggestions!

4 Likes

I wonder how that invisible character got into /etc/default/grub?.. maybe an editing mistake?

So it autoremoved kernel 32.
Wait a while before you do an update, or it may try to put 32 back, and fail again.

Well done

2 Likes

Bravo for your efforts on such a minor detail not easy to spot.

2 Likes

Well, it’s been a while since my last post. Here’s a (rather lengthy) status report:

I have almost entirely made the switch from Win10 to Linux (LMDE).
Here are some things I have learned along the way:

I set up a dual boot system with LMDE on a separate drive. This works fine (usually - see detail below).

LibreOffice
Calc sucks. It doesn’t render my preferred fonts correctly, and can’t handle my preferred date format at all.
It also screws up charts/graphs. I haven’t converted my spreadsheets to ODS format, but have chosen to keep them in xlsx format, so I can keep using them with Excel, if I want (depending on which machine I have booted into at the time).
OnlyOffice handles these things without problems. However, I have some MS Access databases…
Onlyoffice doesn’t have a replacement for MS Access. LIbreOffice has Base, which works, but has some quirkiness. It also hasn’t received any development for a long time, so I prefer to keep using Access on Windows.
Base generates an error (“Error updating the current record”) if I tab through fields on the data entry form, don’t change anything, then try to go to a different record in the database. The only way out is to change something (like add/delete a trailing space in a text field).
Web search on the error is of no help. This is very frustrating!
Why is it an error that nothing is updated on the current record when I want to go to the next record?

Thunderbird
This also has font rendering problems, and it’s often difficult to find buttons for Send, Reply, etc.
It may just take more time using it to get used to where things are.
Also displays mail item header information in a very tiny font size (maybe 1 or 2 points), which I can’t fix.
Yes, using the mouse wheel with Ctrl key will enlarge the problematic text, but enlarges everything else, too.

Backups.
I converted a Win .bat script which uses Robocopy to a bash .sh script which uses rsync for my daily backups.
It took a lot of trial end error to get it working to my satisfaction. I found that the rsync man(ual) was difficult to understand, and often the options I chose didn’t work as described in the man pages.
I also found that rsync reports false positives for deleting folders when they exist on both source & target and both are empty.
It reports that a folder is being deleted, but that doesn’t happen. Apparently this is a bug that has been known for years.
I have set up both Win & LMDE to reboot to the other “machine” late at night, so the backup script will run in both places at the scheduled times.
So it doesn’t matter which machine I use last, the daily backups will run on both.
But… it (randomly?) won’t boot to LMDE from Win10. LMDE is the default GRUB entry, which is taken in the overnight reboot from Win10.
I have to use Ctrl-Alt-Del to get out of an error loop. Sometimes it works OK, sometimes not. Arrgh!

Printing
Generally works fine on my Brother laser printer. But occasionally the print is too faint to be readable. Other times it’s OK.
Never such a problem with Windows.

My data.
I kept all my personal files on the Windows NTFS partition, and created LMDE desktop shortcuts to my most-used locations.
This is working fine for me. The Win10 “My Documents” folder is not on my C: drive, so when the time comes, I can wipe Win10 from C: and not lose any of my data. But at this time, I’m inclined to just leave Win10 alone, and use it only if I have to (like for some applications where there is not a suitable Linux alternative).

Status
I use LMDE for almost everything, now, and Win10 only when necessary.
The changeover has been challenging, but I like a challenge, and it’s working mostly fine, as I thought it would before embarking on the journey.

Thanks everyone for your contributions!

4 Likes

Congratulations Ken,
A lot of theses annoyances will improve with time, you find different Linux friendly ways of doing things.
The Linux apps are not exact copies of the Windows apps … you will find they can do anything you want, but not with exactly the same strategy.

There is another spreadsheet called Gnumeric. I have used it on rare occasions .

You will get used to that. I believe you can customize some of its features.
The main thing is it is reliable… you want email to be bug free.

That is what I do. I use it in Archive mode, so it never deletes anything on the destination.

NTFS is not ideal for Linux. It does not deal with symbolic links. When you finally stop using Win, I would change the data partition to ext4.

I think because Win does not shut down, it hibernates. That is to speed up the boot.
You may be able to force it to poweroff properly.

Regards
Neville

2 Likes

Are you using the latest version, or the one which comes with LMDE? I’m asking because the version you get with LMDE probably lags behind on the version which is available as a flatpak. This might also fix some (or all) of the other issues you’re having with LO.

2 Likes

FYI: LO is currently at 25.8. LMDE7 comes with 25.2.3.2.

2 Likes

Wow the very latest lmde7 is 6 major versions behind with LO.

1 Like