gdm3-fails-to-start-after-package-updates-in-ubuntu-24-04

Asked by Nick Mortel

gdm3-fails-to-start-after-package-updates-in-ubuntu-24-04 sometimes also says svxlink.service failed to start.
I have tried a couple of threads to remedy on here but returns with "You don't have enough free space in /var/cache/apt/archives/.
This all started after I tried to install soapysdr-module-sdrplay3

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

"You don't have enough free space in /var/cache/apt/archives/."
This may indicate, that your hard disk is (almost) full, and a full disk can exhibit all kinds of strange effects.

Can you boot into command prompt mode?

What usage percentage does the "df" command show for the partition that holds your root file system?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Try:

sudo apt clean

Too. Clear out the old debs that cache

Revision history for this message
Nick Mortel (sludgemariner) said :
#3

I can only boot to tty 2 or 3 etc at start up using shift key. Have tried removing software I do not use much ie Google Earth, Discord, Zoom and removed Floorp. Do not know how to show partitions and usage on terminal. I have autoremoved/cleaned and tried other recommends from other threads with boot up issues/low on space issues.
Perhaps it is just that I have never made my partition where ubuntu is bigger than it was from start. Can I alter partition from terminal ? Can I do anything else to free up space. googling freeing up space for ubuntu via terminal at the moment.

Revision history for this message
Nick Mortel (sludgemariner) said (last edit ):
#4

df -h returns.................
Welcome to Ubuntu 24.04.2 LTS 9GNU/Linux 6.8.0-60-generic x86-64)

*Documentation: https//help.ubuntu.com etc.....

Expanded Security Maintenance for Applications is enabled.

0 updates can be applied immediately.

The list of available updates is more than a week old.
To check for new updates run: sudo apt update
nick@nick-ThinkStation-P3-Tiny:/home/nick# df -h
Filesystem/ size/ Used/ Avail/ Use%/ Mounted on
tmpfs/ 9.4G/ 2.6M/ 9.4G/ 1%/ /run
efivarfs/ 192K/ 155K/ 33K/ 83%/ /sys/firmware/efi/efivars
/dev/nvme1n1p3/ 1.9T/ 1.8T/ 0/ 100%/ /
tmpfs/ 47G/ 0/ 47G/ 0%/ /dev/shm
tmpfs/ 5.0M/ 12K/ 5.0M/ 1%/ /run/lock
/dev/nvme1n1p1/ 599M/ 26M/ 573M/ 5%/ /boot/efi
tmpfs/ 9.4G/ 104K/ 9.4G/ 1%/ /run/user/1001
root@nick-ThinkStation-P3-Tiny:/home/nick#

Revision history for this message
Nick Mortel (sludgemariner) said :
#5

Booted to recovery menu entered "Network" to enable networking next screen entered root to Drop to root shell prompt and ran following commands:-
sudo mount -o remount,rw /fsck -f /
sudo dpkg --configure -a
sudo apt-get install -f
returned the following.....
dpkg: dependency problems prevent configuration of soapysdr-module-sdrplay3:
soapy=sdr-module-sdrplay3 depends on soapysdr0.8-module-sdrplay3; however:
Package soapysdr0.8-module-sdrplay3:amd64 is not installed.

dpkg: error processing package soapysdr-module-sdrplay3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
soapysdr-module-sdrplay3
sudo apt-get install -f
Reading package lists. . . Done
Correcting dependencies. . . Done
The following additional packages will be installed:
soapysdr0.8-modulesdrplay3
The following NEW packages will be installed
soapysdr0.8-module-sdrplay3
0 to upgrade, 1 to newly install, 0 to remove and 12 not to upgrade.
1 not fully installed or removed.
Need to get 50.2 kB of archives.
After this operation, 155 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

/dev/nvme1n1p3 1.9T 1.8T 0 100% /

The partition with the root file system (1.9 TB size) is 100% full.
You must clean up your system and delete unneeded data.

For investigating where the files are, which occupy the space, issue the command

du -schx /*

(completion of that command may take a while, maybe even minutes, so please be patient)
Which directories show the biggest size?

Revision history for this message
Nick Mortel (sludgemariner) said :
#7

I will do. I cannot copy and paste results. I can only use tty commands so will type in results which may be lengthy ! Not at pc right now.

Revision history for this message
Nick Mortel (sludgemariner) said :
#8

How can I clean up data/unwanted files ?
How will I know which files are not needed ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#9

I think the problem stems from when the ThinkStation was new and I did not set the partitions to a manageable size to combat my now predicament.

Revision history for this message
Nick Mortel (sludgemariner) said :
#10

du schx /* returned many, many lines of information which I cannot see before data displayed on screen. I have no way of capturing this data produced fro du schx /* but I did notice many, many lines that started with Timeshift. Is there anything else I can do please ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#11

Can I resize partitions using command line/terminal ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#12

How can I save the output for du schx /* from start to end that is only showing end of output on screen right now ?
I cannot scroll up to start of du schx /* output

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

1. There should not be too many lines of output. You mentioned timeshift, and this let me believe that most of the lines shown are error messages caused by access restrictions. Probably my fault. You should put sudo in front of the command and this should reduce the output to the interesting lines, maybe fitting to one screen.
sudo du -schx /*

2. You can view the output in a per-page mode by redirecting the output to a program that displays one page at a a time, e.g.
sudo du -schx /* | more

3. It is possible to redirect the output of a command to a file, e.g. something like
sudo du -schx /* > du-output.txt
You can then view the file with
more du-output.txt
But: If your disk is full, it may be possible that the file cannot be stored, such that this option cannot be used.

Revision history for this message
Nick Mortel (sludgemariner) said :
#14

Okay. Thanks. Tried that. .....du-output.txt part returned with No such file or directory as I guess I have not created that file to exist. So here is typed up output from my Terminal after sudo du -schx /*
0 /bin
4.0K /bin.usr-is-merged
197M /boot
4.0K /cdrom
0 /dev
30M /etc
30G /home
0 /lib
0 /lib32
0 /lib64
4.0K /lib.usr-is-merged
0 /libx32
16K /lost+found
8.0K /media
4.0K /mnt
3.7G /opt
du: cannot access '/proc/3396/task/3396/fd/4': No such file or directory
du: cannot access '/proc/3396/task/3396/fdinfo/4': No such file or directory
du: cannot access '/proc/3396/fd/3': No such file or directory
du: cannot access '/proc/3396/fdinfo/3': No such file or directory
0 /proc
603M /root
1.8M /run
0 /sbin
4.0K /sbin.usr-is-merged
200G /swapfile
0 /sys
1.3T /timeshift
88K /tmp
680K /usb
21G /usr
332G /var
1.8T total

Revision history for this message
Nick Mortel (sludgemariner) said :
#15

Should I uninstall Timeshift for now until I can get to a point where I can partition my drive more favourably ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#16

.........or would it be that a majority of the 1.3T for Timeshift is just taken up by snapshots which I can remove ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#17

This could be down to me not setting parameters for Timeshift to delete files upon startup/shutdown times possibly. I installed it and did nothing else to Timeshift upon installing the program.

Revision history for this message
Nick Mortel (sludgemariner) said :
#18

Can I return to a system restore point using Timeshift in tty mode ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#19

If I attempt sudo timeshift --restore I am offered the following......
Num Device Description
-------------------------------------------------------------------------------------------------
0 > nvme1n1 SAMSUNG MZVL22T0HDLB-00BLL [MBR]
1 > nvme0n1 SAMSUNG MZVL22T0HDLB-00BLL [MBR]
2 > nvme0n1p3 ext4, 2041.5 GB GB

Confused here on what choice or indeed if this is best route for now. I have a restore point 3 or 4 days prior to things going wrong which I can select if that helps.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#20

You have correctly identified that the timeshift directory occupies most of the space.
I assume that you should delete some snapshots from the timeshift directory and then configure timeshift in a way, that it does not create that many files.

timeshift can be used also in tty mode, see the manual pages (man timeshift)
I suggest that you do something like the following:
list the snapshots
timeshift --list-snapshots
select the oldest ones and delete them with a command like
timeshift --delete --snapshot '---name-of-the-shapshot-to-delete---'
(probably sudo needed in front of the timeshift commands)

Revision history for this message
Nick Mortel (sludgemariner) said :
#21

Yes. I did not even think about Timeshift. Do you think this will resolve booting up problem ? I know I will have to give some attention to my partitioning and tell timeshift to do maybe just weekly snaps or select on demand by me. Could you steer me to a reliable resource for me to set up my partitions please

Revision history for this message
Nick Mortel (sludgemariner) said :
#22

Which one of these devices do I choose for timeshift restore.....
0 > nvme1n1 SAMSUNG MZVL22T0HDLB-00BLL [MBR]
1 > nvme0n1 SAMSUNG MZVL22T0HDLB-00BLL [MBR]
2 > nvme0n1p3 ext4, 2041.5 GB GB

Revision history for this message
Nick Mortel (sludgemariner) said :
#23

Attempted Timeshift restore on completion Terminal automatically rebooted pc and returned to same condition I came here with.
I attempted timeshift restore to device #1 above > nvme0n1 without success

Revision history for this message
Nick Mortel (sludgemariner) said :
#24

I have reattempted all previous suggestions from previous after timeshift restore attempt ie sudo apt-get update
sudo apt-get upgrade, sudo apt-get --fix-broken install, sudo apt-get install ubuntu-desktop, sudo apt-get install gdm3, sudo dpkg-reconfigure gdm3, sudo reboot to no avail returns with gdm.service is not active, cannot reload. in red
invoke-rc.d: initscript gdm3, action "reload" failed.
also says....
The following additional packages will be installed:
soapysdr0.8-module-sdrplay3
The following NEW packages will be installed
soapysddr0.8-module-sdrplay3
Need to get 50.2 kB of archives.
After this operation, 155 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.

Revision history for this message
Nick Mortel (sludgemariner) said :
#25

At a loss of what else to do now. Although I am no professional on this or enough knowledge on where to go from here

Revision history for this message
Nick Mortel (sludgemariner) said :
#26

I executed sudo apt clean -y and then sudo apt autoclean -y which then showed via sudo du -schx /* that the var file had reduced from 332G to now 330G
Will reattempt sudo timeshift --restore again

Revision history for this message
Nick Mortel (sludgemariner) said :
#27

2nd Timeshift restore also returned same original problem I came here with.

Revision history for this message
Manfred Hampl (m-hampl) said :
#28

Why do you want to do a "timeshift restore"?
That will only replace files with the same contents.
Your problem is, that the disk is full, and the system cannot create temporary files which are needed for operation.
I am quite sure that deleting files to create free space will bring back the system into operation.

Have you tried deleting some obsolete snapshot files from the timeshift directory with the commands that I gave in comment #20 ?

Revision history for this message
Nick Mortel (sludgemariner) said :
#29

No. I will try now.

Revision history for this message
Nick Mortel (sludgemariner) said :
#30

Okay I have deleted some snapshots from timeshift leaving me the 2 latest ones sudo du -schx /* shows Timeshift now - reduced from 1.8T to 677G

Revision history for this message
Nick Mortel (sludgemariner) said :
#31

So now I have done sudo apt clean - sudo apt autoclean - sudo apt autoremove - du -sh /var/cache/apt
then sudo apt-get install gdm3 - sudo dpkg-reconfigure gdm3 - sudo reboot and system rebooted and I am logged in to Desktop again.
It worked - Thank you so much I will press "This Solved My Problem" on your item #20 above together with the aforementioned after Timeshift deleted snapshots.
What would you recommend my next steps be please ?
Remove software that is not being used and try to reduce down elsewhere ? I have alot in my home file I could put on a plug in usb drive, documents, books and other paraphenalia that has taken up alot of space - also where should I go to for guidance on partitioning my drive reliably and effeciently please ?
Once again thank you so very very much for your knowledgeable assistance with my problem. I will also schedule my Timeshift to take snaps on demand instead of their regular timed default.
Look forward to any guidance you can put my way on partitioning though. Have a gr8 day. TUVM

Revision history for this message
Nick Mortel (sludgemariner) said :
#32

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Nick Mortel (sludgemariner) said :
#33

Will you give guidance on partitioning a drive here or do you require my email address ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#34

Happy to read that the problem is solved.

I do not see much benefit in changing the partitioning of your disk.
Everything was fine until the moment when timeshift filled all remaining space with the next snapshot.
The only thing to do is having an eye on the size of the timeshift directory, such that it does not get too big - either by changing timeshift's configuration settings or by regular manual checking.

Revision history for this message
Nick Mortel (sludgemariner) said :
#35

Question: When I did sudo apt update it returned the following....... does this look ok to you ? it says some items multiple times
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
Hit:2 http://lenovo.archive.canonical.com noble InRelease
Hit:3 https://ppa.launchpadcontent.net/fdroid/fdroidserver/ubuntu noble InRelease
Hit:4 https://repository.spotify.com stable InRelease
Hit:5 https://repo.openwebrx.de/ubuntu jammy InRelease
Hit:6 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu noble InRelease
Hit:7 https://packages.microsoft.com/repos/code stable InRelease
Hit:8 https://updates.signal.org/desktop/apt xenial InRelease
Hit:9 http://dl.google.com/linux/earth/deb stable InRelease
Get:10 https://luarvique.github.io/ppa/noble ./ InRelease [2,115 B]
Hit:11 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:12 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:13 https://repo.waydro.id noble InRelease
Hit:14 https://ppa.floorp.app/amd64 ./ InRelease
Get:15 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,613 B]
Hit:16 https://dl.winehq.org/wine-builds/ubuntu noble InRelease
Get:17 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,480 B]
Get:18 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,474 B]
Get:19 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,473 B]
Fetched 32.2 kB in 1s (34.4 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
N: Skipping acquisition of configured file 'main/binary-i386/Packages', as repository 'https://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
N: Missing Signed-By in the sources.list(5) entry for 'http://lenovo.archive.canonical.com'

Revision history for this message
Nick Mortel (sludgemariner) said :
#36

Feeling a bit delicate now and not sure if safe to progress

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#37

The "duplicates" messages are harmless. Explanation for the problem: the repository config files /etc/apt/sources.list.d/google-earth-pro.list and /etc/apt/sources.list.d/google-earth.list seem to point to the same repository. One of those is redundant an can be deleted.

What is the output of
cat -n /etc/apt/sources.list.d/google-earth-pro.list
cat -n /etc/apt/sources.list.d/google-earth.list

And there is the last message that is different, to deal with that please show the output of

grep -i lenovo /etc/apt/*.list /etc/apt/sources.list.d/*

Revision history for this message
Nick Mortel (sludgemariner) said :
#38

cat -n /etc/apt/sources.list.d/google-earth-pro.list = 1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

cat -n /etc/apt/sources.list.d/google-earth.list = 1 deb [arch=amd64 signed-by=/usr/share/keyrings/google-earth.gpg] http://dl.google.com/linux/earth/deb/ stable main

grep -i lenovo /etc/apt/*.list /etc/apt/sources.list.d/* = /etc/apt/sources.list.d/oem-sutton-barrera-meta.list.distUpgrade:deb http://lenovo.archive.canonical.com/ noble sutton
/etc/apt/sources.list.d/oem-sutton-barrera-meta.list.distUpgrade:# deb-src http://lenovo.archive.canonical.com/ jammy sutton
/etc/apt/sources.list.d/oem-sutton-barrera-meta.list.save:deb http://lenovo.archive.canonical.com/ jammy sutton
/etc/apt/sources.list.d/oem-sutton-barrera-meta.list.save:# deb-src http://lenovo.archive.canonical.com/ jammy sutton
/etc/apt/sources.list.d/oem-sutton-barrera-meta.sources:URIs: http://lenovo.archive.canonical.com/
/etc/apt/sources.list.d/oem-sutton-barrera-meta.sources.save:URIs: http://lenovo.archive.canonical.com/

Revision history for this message
Nick Mortel (sludgemariner) said :
#39

I am now on Ubuntu 24.04.2 noble - no longer 22.04 jammy jellyfish

Revision history for this message
Nick Mortel (sludgemariner) said :
#40

when I run sudo apt update I get the following after recommended sudo apt --fix-broken install.....
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  soapysdr0.8-module-sdrplay3
The following NEW packages will be installed
  soapysdr0.8-module-sdrplay3
0 to upgrade, 1 to newly install, 0 to remove and 18 not to upgrade.
13 not fully installed or removed.
Need to get 50.2 kB of archives.
After this operation, 155 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://luarvique.github.io/ppa/noble ./ soapysdr0.8-module-sdrplay3 0.8.10 [50.2 kB]
Fetched 50.2 kB in 0s (297 kB/s)
(Reading database ... 352661 files and directories currently installed.)
Preparing to unpack .../soapysdr0.8-module-sdrplay3_0.8.10_amd64.deb ...
##### PLEASE, INSTALL SDRPLAY API VERSION 3.15! ###########
##### #####
##### This package will not work without SDRPlay API #####
##### drivers, which have to be installed separately. #####
##### Please, download and install version 3.15 of #####
##### these API drivers from #####
##### #####
##### https://www.sdrplay.com/downloads/ #####
##### #####
###########################################################
dpkg: error processing archive /var/cache/apt/archives/soapysdr0.8-module-sdrpla
y3_0.8.10_amd64.deb (--unpack):
 new soapysdr0.8-module-sdrplay3:amd64 package pre-installation script subproces
s returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/soapysdr0.8-module-sdrplay3_0.8.10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Nick Mortel (sludgemariner) said :
#41

If I try to install gparted from my software app I get the following.......
Error while installing package: new soapysdr0.8-module-sdrplay3
How can I remove this from my pc ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#42

1. For cleaning up the duplicates execute the command

sudo rm /etc/apt/sources.list.d/google-earth-pro.list

2. For the lenovo message please provide the output of the command

cat -n /etc/apt/sources.list.d/oem-sutton-barrera-meta.sources

3. For soapysdr0.8-module-sdrplay3

What output do you receive for the commands

sudo dpkg --audit
apt policy soapysdr0.8-module-sdrplay3

Revision history for this message
Nick Mortel (sludgemariner) said :
#43

Thank you Manfred. Trying these now.

Revision history for this message
Nick Mortel (sludgemariner) said :
#44

cat -n /etc/apt/sources.list.d/oem-sutton-barrera-meta.sources = 1 Types: deb
     2 URIs: http://lenovo.archive.canonical.com/
     3 Suites: noble
     4 Components: sutton

sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 balena-etcher Flash OS images to SD cards and USB drives, safely and ea
 gparted GNOME partition editor
 gparted-common GNOME partition editor -- common data
 liblimesuite23.11-1:amd64 library to access LMS7 transceiver based hardware
 libmirisdr4:amd64 Software defined radio support for Mirics hardware (libra
 libosmosdr0:amd64 Software defined radio support for OsmoSDR hardware (libr
 libparted-fs-resize0t64:amd64 disk partition manipulator - shared FS resizing librar
 limesuite-udev Lime Suite - USB rules for udev
 soapyosmo-common0.8:amd64 Use gr-osmosdr drivers with SoapySDR (common files)
 soapysdr-module-sdrplay3 Soapy SDRPlay3 - SDRlay device APIv3 support for Soap
 soapysdr0.8-module-all:amd64 All device support for SoapySDR (metapackage)
 soapysdr0.8-module-audio:amd64 Audio device support for SoapySDR
 soapysdr0.8-module-lms7:amd64 Lime Microsystems LMS7 device support for SoapySDR
 soapysdr0.8-module-mirisdr:amd64 Mirics SDR device support for SoapySDR
 soapysdr0.8-module-osmosdr:amd64 OsmoSDR device support for SoapySDR
 soapysdr0.8-module-rfspace:amd64 RFSpace device support for SoapySDR

The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 desktop-file-utils Utilities for .desktop files
 gnome-menus GNOME implementation of the freedesktop menu specificatio
 hicolor-icon-theme default fallback theme for FreeDesktop.org icon themes
 libc-bin GNU C Library: Binaries
 man-db tools for reading manual pages

apt policy soapysdr0.8-module-sdrplay3
soapysdr0.8-module-sdrplay3:
  Installed: (none)
  Candidate: 0.8.10
  Version table:
     0.8.10 500
        500 https://luarvique.github.io/ppa/noble ./ Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#45

1. for the lenovo message:

I assume that the file /etc/apt/sources.list.d/oem-sutton-barrera-meta.sources should contain an additional line

Signed-By: /usr/share/keyrings/lenovo.gpg

Try the command

sudo gnome-text-editor /etc/apt/sources.list.d/oem-sutton-barrera-meta.sources

and add that line, then save the file and close the editor.

2. for the soapysdr0.8 issue I cannot help. That is foreign software from outside Ubuntu. Have you tried doing what the error message tells, i.e. installing the API drivers from https://www.sdrplay.com/downloads/ ? Please ask the provider of that software how to cope with the problem if that does not help.

The only instruction that I can give is removing all these packages, and that would be done with the command

sudo dpkg --purge soapyosmo-common0.8:amd64 soapysdr-module-sdrplay3 soapysdr0.8-module-all:amd64 soapysdr0.8-module-audio:amd64 soapysdr0.8-module-lms7:amd64 soapysdr0.8-module-mirisdr:amd64 soapysdr0.8-module-osmosdr:amd64 soapysdr0.8-module-rfspace:amd64

Revision history for this message
Nick Mortel (sludgemariner) said :
#46

Signed-By: /usr/share/keyrings/lenovo.gpg
added as........Types: deb
URIs: http://lenovo.archive.canonical.com/
Suites: noble
Components: sutton
Signed-By: /usr/share/keyrings/lenovo.gpg

Terminal returned following prior to adding Signed-By line........
libEGL warning: egl: failed to create dri2 screen

(gnome-text-editor:34512): editor-document-WARNING **: 13:47:21.623: Failed to save cursor position: Setting attribute metadata::gte-cursor not supported

now if I run sudo gnome-text-editor /etc/apt/sources.list.d/oem-sutton-barrera-meta.sources - again, Terminal returns.....
libEGL warning: egl: failed to create dri2 screen

Manfred with the last 2 lines of #45 will I copy and past the complete 2 lines of text as is into terminal ?
sudo dpkg --purge soapyosmo-common0.8:amd64 soapysdr-module-sdrplay3 soapysdr0.8-module-all:amd64 soapysdr0.8-module-audio:amd64 soapysdr0.8-module-lms7:amd64 soapysdr0.8-module-mirisdr:amd64 soapysdr0.8-module-osmosdr:amd64 soapysdr0.8-module-rfspace:amd64 ?????

Revision history for this message
Nick Mortel (sludgemariner) said :
#47

Manfred, I would really appreciate if you can recommend a source/guide for me to use gparted so I can reorganise my partitions for Ubuntu. I think I have to save a live iso for 24.04.2 to flash usb and use balena etcher to flash it there then use Gparted to TRY ubuntu install so I can then adjust partitions with gparted. I also found that some say they put /home partition on a separate drive to ubuntu. Please advise. So appreciative of your help & assistance here

Revision history for this message
Nick Mortel (sludgemariner) said :
#48

Removal of soapysdr etc via - (sudo dpkg --purge soapyosmo-common0.8:amd64 soapysdr-module-sdrplay3 soapysdr0.8-module-all:amd64 soapysdr0.8-module-audio:amd64 soapysdr0.8-module-lms7:amd64 soapysdr0.8-module-mirisdr:amd64 soapysdr0.8-module-osmosdr:amd64 soapysdr0.8-module-rfspace:amd64) seems to have sorted that one. TUVM.

Revision history for this message
Nick Mortel (sludgemariner) said :
#49

On GParted it lists the following.......
Partition Name Filesystem Mount Point Label Size Used Unused (No Flags)
/dev/nvme1n1p1 EFI fat32 /boot/efi 'EFI System 600MiB 27.07MiB 572.93MiB boot, esp
/dev/nvme1n1p2 fat32 PQSERVICE 5.80GiB --- --- boot, esp
/dev/nvme1n1p3 - ext4 / 1.86TiB 482.90GiB 1.39TiB
(key symbol)

This is all confusing to me - I also have another partition called /dev/nvme0n1p1 MS reserved partition unknown 128.00MiB with 1.86TiB unallocated which carries this warning flag on it - Unable to detect filesystem! Possible reasons are:
- The filesystem is damaged
- The filesystem is unknown to GParted
- There is no filesystem available (unformatted)
- The device entry /dev/nvme0n1p1 is missing

/dev/nvme/1n1p2 above carries the same Warning on it.

Revision history for this message
Nick Mortel (sludgemariner) said :
#50

lsblk - NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 976.6G 0 disk
├─sda1 8:1 1 5.9G 0 part
├─sda2 8:2 1 5M 0 part
└─sda3 8:3 1 300K 0 part
nvme0n1 259:0 0 1.9T 0 disk
└─nvme0n1p1 259:1 0 128M 0 part
nvme1n1 259:2 0 1.9T 0 disk
├─nvme1n1p1 259:3 0 600M 0 part /boot/efi
├─nvme1n1p2 259:4 0 5.8G 0 part
└─nvme1n1p3 259:5 0 1.9T 0 part /

lsblk -f -
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda iso966 Jolie Ubuntu 24.04.2 LTS amd64 2025-02-15-09-15-26-00
├─sda1
│ iso966 Jolie Ubuntu 24.04.2 LTS amd64 2025-02-15-09-15-26-00
├─sda2
│ vfat FAT12 ESP B5A5-8010
└─sda3

nvme0n1

└─nvme0n1p1

nvme1n1

├─nvme1n1p1
│ vfat FAT32 'EFI System 8C6E-FEE8 572.9M 4% /boot/efi
├─nvme1n1p2
│ vfat FAT32 PQSERVICE 8C81-6C92
└─nvme1n1p3
     ext4 1.0 f3528e7c-d2f5-4ee1-b340-e9805b012a6a 1.3T 24% /

Revision history for this message
Nick Mortel (sludgemariner) said :
#51

sudo fdisk -l -
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk model: SAMSUNG MZVL22T0HDLB-00BLL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5B9130C2-CC7C-4F2B-8CA6-0631BA01703C

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 264191 262144 128M Microsoft reserved

Disk /dev/nvme1n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk model: SAMSUNG MZVL22T0HDLB-00BLL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2EB3F19D-552A-4DC9-851D-D3404AF49B0E

Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 1230847 1228800 600M EFI System
/dev/nvme1n1p2 1230848 13394327 12163480 5.8G EFI System
/dev/nvme1n1p3 13395968 4000796671 3987400704 1.9T Linux filesystem

GPT PMBR size mismatch (12389099 != 2047999999) will be corrected by write.
The backup GPT table is not on the end of the device.

Disk /dev/sda: 976.56 GiB, 1048576000000 bytes, 2048000000 sectors
Disk model: ProductCode
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B0EF6CA3-60D1-4A21-98D9-17C385A8B6F8

Device Start End Sectors Size Type
/dev/sda1 64 12378291 12378228 5.9G Microsoft basic data
/dev/sda2 12378292 12388435 10144 5M EFI System
/dev/sda3 12388436 12389035 600 300K Microsoft basic data

Revision history for this message
Nick Mortel (sludgemariner) said :
#52

sudo parted -l
Warning: Not all of the space available to /dev/sda appears to be used, you can
fix the GPT to use all of the space (an extra 2035610900 blocks) or continue
with the current setting?
Fix/Ignore? Fix
Model: VendorCo ProductCode (scsi)
Disk /dev/sda: 1049GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
 1 32.8kB 6338MB 6338MB ISO9660 hidden, msftdata
 2 6338MB 6343MB 5194kB Appended2 boot, esp
 3 6343MB 6343MB 307kB Gap1 hidden, msftdata

Model: SAMSUNG MZVL22T0HDLB-00BLL (nvme)
Disk /dev/nvme0n1: 2048GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
 1 1049kB 135MB 134MB Microsoft reserved partition msftres

Model: SAMSUNG MZVL22T0HDLB-00BLL (nvme)
Disk /dev/nvme1n1: 2048GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
 1 1049kB 630MB 629MB fat32 EFI boot, esp
 2 630MB 6858MB 6228MB fat32 boot, esp
 3 6859MB 2048GB 2042GB ext4

Revision history for this message
Nick Mortel (sludgemariner) said :
#53

Okay Manfred I have tutored myself on GParted via this youtube video https://www.youtube.com/watch?v=Q1vybl1X3_s

Would you have any recommendations for sizing my partitions please. I am not too sure what sizes I should give and would my allocating /home partition on my other drive be advisable as it does contain many books, magazines, whitepapers which is ever growing and so taking up some space. I think I can then place a link to that drive on my desktop for ease and quick reference access.
Your thoughts greatly appreciated.