Livepatch has fixed kernel vulnerabilities. Or not???

Bo Berglund bo.berglund at gmail.com
Tue Apr 18 10:39:30 UTC 2023


On Tue, 18 Apr 2023 08:27:04 +0200, Bo Berglund <bo.berglund at gmail.com> wrote:
>>One last thing to try and then I would file a bug at the link Oliver 
>>provided if it doesn't fix the problem.
>>
>>Disable livepatch
>>$ sudo pro disable livepatch
>done
>
>>
>>Uninstall canonical-livepatch snap
>>$ sudo snap remove --purge canonical-livepatch
>done
>
>>
>>Delete ~/snap/canonical-livepatch directory
>>Delete /root/snap/canonical-livepatch directory also
>done
>
>>
>>Remove /etc/update-motd.d/99-livepatch-kernel-upgrade-required if its 
>>still present. It should have been removed when the snap was uninstalled.
>not there
>
>>
>>Remove cached snap files in /var/lib/snapd/cache
>>Not directory, just files.
>there are 7 files in there all with very long names like this:
>3aca523f924d16583217c9b029f8c626972012f9c6fab26b4cb987ec64b50e273751f8a7be35328d5bd6404d4db0af2d
>
>and sudo rm /var/lib/snapd/cache/* just shows an error message: 
>rm: cannot remove '/var/lib/snapd/cache/*': No such file or directory
>
>When I specify one of the files by adding the start of the name:
>sudo ls -la /var/lib/snapd/cache/3*
>ls: cannot access '/var/lib/snapd/cache/3*': No such file or directory
>
>Are these strange files the ones you refer to as "cached snap files"?
>
>Had top stop here since I could not follow your instructions for removing....
>But I looked at the  commands and found some I do not really understand:
>
>>Manually install canonical-livepatch snap
>>$ sudo snap install canonical-livepatch

I proceeded with the reinstall even though the remove of cache files above did
not work.

$ sudo snap install canonical-livepatch
canonical-livepatch 10.5.4 from Canonical? installed

$ sudo pro enable livepatch
One moment, checking your subscription first
Canonical livepatch enabled.

So I chcecked again:

sudo ls -la /home/bosse/snap/canonical-livepatch
ls: cannot access '/home/bosse/snap/canonical-livepatch': No such file or
directory

and

$ sudo ls -la /home/bosse/snap/
total 12
drwx------  3 bosse bosse 4096 Apr 18 07:58 .
drwxr-xr-x 26 bosse bosse 4096 Apr 18 08:16 ..
drwxr-xr-x  4 bosse bosse 4096 Jan  8 18:13 lxd

So here is no directory canonical-livepatch at all...
And therefore no files or links therein either...
There's just the dir "lxd"




-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list