Bug... Failed Snap Daemon in Lubuntu 22.04 LTS. No Firefox. Help please

This looks like confirmation of this issue - Bug... Failed Snap Daemon in Lubuntu 22.04 LTS. No Firefox. Help please

Thank you for reporting; I’ll test some more with the DVD I created.

(The new post has been added to the existing thread)

Thanks for the hard work. Sorry I couldn’t be much help.

FWIW, I quit using USB thumb drives for making Linux boot drives years ago. More on this below:

I’ve been trying out Linux for about 8 years. The distros I tried would sometimes bug up or I run out of memory in the Live boot space. This would cause the USB to never stop blinking it’s activity LED. I had no choice but to press the reset button on the PC or turn the PC off by holding down the power button. I was afraid I would damage my USB by doing this. (Just like how you would yank out a USB drive while it’s still transferring files) So to prevent the possibility of damage to my hardware, I switched to using only burnt DVDs.

BTW, I forgot to mention, I used safe graphics mode too when I booted the new Lubuntu DVD.

I still use a CRT monitor and a number of Linux distros don’t like it, so I turn on safe graphics mode on the distros I test. However, I am impressed that the latest Linux releases I tried yesterday are actually making it to the Live boot desktop! I tried the newest PCLinuxOS, Xubuntu as well as Lubuntu. All three successfully made it.

That’s quite surprising seeing out of the selection of old Ubuntu 20.04 LTS based distros, and Arch and Debian distros I tried last year, Only Lubuntu 20.04 made it to the Live boot desktop. Thank you Linux community for improving hardware support!

P.S. I am using Firefox on the new PCLinuxOS to type this. It’s working well, but… when I tested the new Xubuntu, it’s web browser is broken, but there is no error message beforehand. It only gives me an error message when I click the icon and it won’t launch the browser. Maybe it’s related to the snap daemon failure on Lubuntu…

1 Like

Update.

Success.

2 previous iso downloads and 2 failed attempts using usb flash drive bootable media.

3rd iso download and 1 failed attempt using DVD bootable media.

4th iso download and successful install using usb flash drive bootable media.

Perhaps maybe bad iso downloads.
No way to really know I guess.

2 Likes

I’ve booted the DVDR I created in post 11 of this thread on the same old box, but this time using safe graphics mode

hp dc7700 (c2d-e6320, 5gb, nvidia quadro nvs 290)

and firefox is running for me (both when started via qterminal or menu)

I actually booted the box twice with one session getting a black screen. On the black screen boot I just switched to text terminal, killed Xorg & the machine sent me back to sddm or the greeter, I logged in as “lubuntu” and it worked fine from then on. I checked for squashfs (media errors) and there were none (alas I do see errors on access cdrom/sr0), but this old video card has known issues with nouveau on recent kernels (esp. with GNOME, KDE, recently MATE…), so I’d need to check for issues on other boxes/video cards before I was willing to treat it as a bug (and need a run without I/O errors on dev sr0)

1 Like

@computerdude92 Are you sure that your ISO is good? This sounds like something a damaged download could easily cause.

To check your ISO from Linux using a SHA256 checksum:

  1. Open the folder that your Lubuntu 22.04 image is located in.
  2. Open a terminal window within this folder. You can usually do this by right-clicking in a blank area of the folder, and clicking “Open Terminal” or something. The option might also be hiding underneath a “Tools” menu or something along those lines.
  3. Once the terminal is open, type this command:
sha256sum ./lubuntu-22.04-desktop-amd64.iso
  1. This command will generate a very long string that ought to look exactly like this:
15e7c0b5e0bd1fe3436e7a83d25a26f828694f5a1a6ce81bc4be955ae39ba128
  1. Carefully compare the string generated by the above command with the string posted here. If so much as one character is off, your ISO is damaged. If this is the case, delete the ISO, download it again, and check it using this procedure. Once you have a good ISO, you can burn a new DVD and try again.

Also make sure to use a “Verify written data” feature (or whatever equivalent your DVD burning software provides) to ensure that the data on your DVD isn’t corrupted - a wonky DVD will cause just as bad of problems as a bad ISO download (maybe even worse). It also may be a good idea to close all open programs before writing the DVD, and maybe even set the writing speed to 1x - this will make the writing process take time and eternity, but it will also make the process more reliable.

If even a good DVD with a good ISO isn’t working, you may want to try using a USB drive. It might be possible that your hardware’s DVD drive has some incompatibility that’s making things go haywire, and using a USB drive may make things work. I seriously doubt this is the problem, but I’ve had weirder things happen, so it’s worth a shot if all else fails.

4 Likes

Okay I said I’d drag a desktop out and run my bootable DVD of Lubuntu 22.04 and here’s the results.

Desktop is all Intel inside.
Always have excellent results with all Intel inside desktops.

Okay DVD install kinda slow but not painful.
Start to finish 20 minutes to 30 minutes.

The errors.
Failed to start Dispatcher daemon for systemd-networkd.
Failed to start Snap Daemon.
Failed to start Disk Manager.
Failed to start Snap Daemon.

Okay no lockups or blank screen and the cursor was showing activity so let it keep running.

I let the installer do the install after I entered the needed name rank and serial number.

Install completed after a system reboot I updated and rebooted and all is working well.

Hope this helps.

4 Likes

Some fun trivia that’s handy to know…

If you download as a torrent, it has built in checks for file integrity. You can and should still verify it, but it should be exactly the same as the source file.

2 Likes

Ah, yes, I forgot about that. I don’t use torrents since I’ve seen a lot of stories about how ISPs have gotten mad at people for using them since they consider the peer-to-peer clients to be servers. I used to use torrents for downloading Linux variants all the time, and they were awesome.

2 Likes

I’m confused as to what the cause may be since I’ve actually gotten 2 successful working installs on 2 different desktops.

One of them AMD and Nvidia graphics which have always been somewhat problematic from my experience.

The other desktop all Intel inside and have never been problematic with Linux from my experience.

It’s possible that it could be bad iso downloads but 4 of them.
I find it hard to believe that 4 iso downloads could be bad but I guess it’s possible although highly unlikely.

2 Likes

I’ll log here for potential historic debugging purposes. I did get 3 of these messages (I think it was last three; missing the thermal) though order wasn’t identical in one boot on my hp dc7700. If I recall correctly it was the boot where I found dev sr0 errors in the log, and the fact that I could see errors that may explain issues I tended to discount issues on that boot.

I smiled at this; on my dc7700 it sure seemed painful to me… but much of that was the noise; which is why I usually used different boxes for DVD testing (dc7900, d755, d780.)… the sound reminding me of the calamares floppy issue but I had no floppy I could eject to instantly silence the box :frowning:

I rarely find I have bad downloads… but it’s possible. I’ll provide the Ubuntu link for checking your ISO, but I’d just perform what’s found in the Lubuntu manual as it’s easier.

I do find however the write to media fails too often (about 5-8% of the time using sandisk thumb-drives for me, higher on other brands), as thumb-drives/media are made to cost or consumable items. It’s why I always scan logs looking for clues as to causes (squashfs errors, media validation completing on recent release, IO errors etc) using a text terminal.

2 Likes

FWIW, I downloaded and booted Lubuntu 22.04 in virt-manager (QEMU/KVM) earlier today, and Firefox worked just fine in the live session. The timing issue possibility is interesting. I’ll try limiting the VM’s CPU usage and slamming the host with Prime95 while testing out Lubuntu - that ought to show up most any race condition. If that works, I’ll try booting Lubuntu in pure QEMU (no KVM) and see if that replicates the bug.

Edit: I missed the bit about writing the ISO to DVD media, so my testing might not actually show up the problems. However, @Bartman was having problems with usb flash drives, so it’s possible that this might at least give us some info.

2 Likes

I REPRODUCED THE BUG IN A VM!!! Looks like it is indeed a timing issue, just like @guiverc said.

OK, so the behavior here is very, very weird - on one test, Firefox was just gone, just like the original post described. Attempting to run it in the terminal resulted in a notice that Firefox wasn’t installed. The next test, Firefox appeared, but I didn’t have the presence of mind to try and launch it… The third test, Firefox appeared, but this time I actually tried and launch it… and it didn’t launch. Trying to run it in a terminal gave me the following error:

error: error running snapctl: cannot invoke snapctl operation commands (here "is-connected") from outside of a snap

ERROR: not connected to the gnome-3-38-2004 content interface.

I thought to look at /var/log/syslog on this third test, and sure enough, Snap failed to start at some point in the boot process.

So, here’s how I made this mess happen:

My physical hardware:
HP Z220 SFF Workstation
Intel Xeon processor E3-1225v2
16 GB of A-TECH RAM (DDR3, 1600MHz, no ECC)
Lubuntu 22.04 ISO is located on a 12TB WD Easystore USB drive. ISO checks as good using sha256sum.
Host OS is Ubuntu Studio 21.10.

Steps:

1: Open a terminal, and cd your way to the ISO location.
2: Fire up a VM with this command:
qemu-system-x86_64 -cpu kvm64 -m 4G ./lubuntu-22.04-desktop-amd64.iso
3. Wait for the OS to load. It will take quite a while, since KVM acceleration is purposefully left off here.
4. Once you get to the desktop, click inside the VM window, navigate to the Application Menu, and hover over “Internet”. Firefox may or may not appear.
5. Hit Ctrl+Alt+T to get a terminal, and type firefox. You may be told that Firefox is not installed, or it might give you an error. Other possibilities may also occur.
6. Run “nano /var/log/syslog”. Search for “failed to start snap”. You may find the Snap error message. (I originally said to use PCManFM-QT here, but since this VM is running using pure emulation, it’s sloooooow, and using nano is quicker.)

I’ve left the QEMU instance from the third test open and paused, so if you want to peek into the guts of a VM with a wonky Snap system and an unlaunchable Firefox, now’s your chance. I did leave the VM running for quite a while after getting it to glitch, so hopefully I’ve not already messed it up. Unfortunately, my Internet is metered, and I gave the VM 4 GB of RAM, so I probably can’t upload a RAM dump, but I can try to replicate the issue again with a 1 GB RAM VM, and if things go haywire, I can probably dump the RAM and upload it.

3 Likes

You say you tested with an Nvidia NVS 290. I actually am using a slightly newer model on the problem PC, an NVS 300. Does it share the same issues?

1 Like

So you guys say it’s a timing issue? Does that mean DVDs are too slow to use for Lubuntu 22.04? Can the timing issue also occur with USB flash drives?

I’d hate to stop using DVDs for making Linux boot media… ;(

The only Windows I still use is Windows XP. I wonder, can I get away with using older versions of USB boot media creators? Are old versions of Rufus still safe to use?

1 Like

Timing issues will usually be fixed by devs if there are no consequences for the change… For them it maybe allowing more time before a program declares ‘error’ which would cater better for slower-DVD media when used; but the negative is everyone else with errors will have to wait longer before they get their error report (for other issues). Timing issues can occur on USB flash drives; but being faster (no latency as the head needs to move to other places on the disc) they may not be impacted by this issue.

The fact that @ArrayBolt3 in post #27 had the issue in a VM may mean it’s not limited to DVD which would raise the issue significantly to upstream devs I believe (once we have a bug report for it). If they’re able to re-produce it easily; it’s easier for them to detect cause & provide fix (if possible).

2 Likes

I have completed tests on 3 seperate boxes (barebone not VM) installing with DVD media with an external DVD player (ASUS 90-DQ0435-UA221KZ)

  1. Dell Optiplex 7060 i7-8700, 32 GB RAM booting uefi+secure boot
  2. Dell Optiplex 7040 i7-6700, 32 GB RAM booting uefi
  3. Dell Latitude 7280 i5-7300U,16Gb RAM booting uefi+secure boot

Booted into live desktop and waited for the dvd to complete (stop spinning) - then checked Internet menu and selected Firefox which ran after a few moments - proceeded from there to install the OS - all went well and the installs took 3 to 5 minutes depending on the machines.

Interestingly I found that it took ca 45 minutes on all boxes to complete loading the Live desktop. When installing from USB media on these machines the boot time is ca 2 minutes.

So the result is I could not reproduce the reported errors re:Firefox on these machines.

4 Likes

That might mean it’s influenced by CPU speed, since the problem doesn’t show up in a KVM-accelerated VM, but does show up when using pure QEMU.

I’ll try booting Ubuntu 22.04 in pure QEMU and see what happens. If Firefox fails there, too, then I’m pretty sure that would make it a snapd issue.

Worthy of note: When I boot up stuff in virt-manager, it has both KVM and QXL acceleration, whereas I believe both forms of acceleration are missing when I use pure QEMU. So graphics acceleration might have something to do with it. I’ll also try booting Lubuntu and Ubuntu with KVM and no QXL to see what happens.

3 Likes

My desktops are old as in 2010 / 2008 dual core processors with 4.0 GB ddr2 and ddr3 memory and mechanical hard drives.

@leok your computers appear to be new with i7 processors and 32 Gb of memory and most likely SSDs which is why you have no errors.

I think @guiverc has hit the nail on the head with the timing issue.

In the olden days users used Lubuntu because of the low system hardware requirements to compensate for using low powered computers.

Nowadays most users have bad A$$ computers such as your fleet of computers.

Lubuntu being LXQT is no-longer geared for the low powered computers that are considered useless outdated dregs in the computer world of today.

I have no complaints with Lubuntu 22.04 having any problem with Firefox Snap not working.

My problem from the git-go has been getting Lubuntu to get to the menu screen so that I could start the install.

I had no idea that Ubuntu 22.04 and Ubuntu 22.04 official flavors were going to take so long just to load to the install menu.

So yes perhaps in my case I may have jumped the gun due to my using old outdated junk computers for modern Linux.

Anyway once installed Lubuntu 22.04 runs good and everything appears to work fine.

I believe the new Ubuntu 22.04 and Ubuntu 22.04 official flavors might take a little bit of getting used to for some of us old farts.

I’m a web surfer so my old junk box builds work for me.

The Firefox Snap ain’t as bad as everyone seems to say takes a few extra seconds after a reboot to open and that ain’t no big deal imo.

Good day or evening to all.

4 Likes

Interesting - just for the record I have performed numerous installs witn QEMU (virt-manager) and VirtualBox with no issues.

2 Likes