Hi im new in these wolrd, i would install cerbot to het https but i cant install snap, well i can install it but with some errors like:
root@virtual403:~# sudo apt install snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
zenity | kdialog
The following NEW packages will be installed:
snapd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/23.8 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Selecting previously unselected package snapd.
(Reading database ... 30066 files and directories currently installed.)
Preparing to unpack .../snapd_2.58+22.04.1_amd64.deb ...
Unpacking snapd (2.58+22.04.1) ...
Setting up snapd (2.58+22.04.1) ...
apparmor_parser: Unable to replace "mount-namespace-capture-helper". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "/usr/lib/snapd/snap-confine". Permission denied; attempted to load a profile while confined?
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status snapd.mounts-pre.target' for details.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...
root@virtual403:~# systemctl status snapd.mounts-pre.target
* snapd.mounts-pre.target - Mounting snaps
Loaded: loaded (/lib/systemd/system/snapd.mounts-pre.target; static)
Active: active since Fri 2023-06-09 23:37:05 UTC; 2min 13s ago
Jun 09 23:37:05 virtual403 systemd[1]: Reached target Mounting snaps.
root@virtual403:~# sudo snap install core
error: cannot communicate with server: Post "http://localhost/v2/snaps/core": dial unix /run/snapd.socket: connect: connection refused
root@virtual403:~# systemctl status snapd.service
x snapd.service - Snap Daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-06-09 23:54:15 UTC; 38s ago
TriggeredBy: x snapd.socket
Process: 5326 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
Main PID: 5326 (code=exited, status=1/FAILURE)
CPU: 957ms
Jun 09 23:54:15 virtual403 systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
Jun 09 23:54:15 virtual403 systemd[1]: Stopped Snap Daemon.
Jun 09 23:54:15 virtual403 systemd[1]: snapd.service: Start request repeated too quickly.
Jun 09 23:54:15 virtual403 systemd[1]: snapd.service: Failed with result 'exit-code'.
Jun 09 23:54:15 virtual403 systemd[1]: Failed to start Snap Daemon.
Jun 09 23:54:15 virtual403 systemd[1]: snapd.service: Triggering OnFailure= dependencies.
root@virtual403:~# sudo systemctl unmask snapd.service
root@virtual403:~# sudo systemctl enable snapd.service
root@virtual403:~# sudo systemctl start snapd.service
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xeu snapd.service" for details.