Notes, Logs, And Snaps not wokring

Asked by stuk

Trying to run notes, logs, or just snapcraft, and its not wokring.

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

What are you trying to do and what exactly happens?

Which Ubuntu release do you have on your system?
Which kind of notes or logs do you want to "run"?
Which command(s) do you execute and what happens?
In case that you receive error messages, please provide the full text.

Revision history for this message
stuk (stuk88-h) said :
#2

Ubuntu 18.04.5 LTS

System Logs, that comes with the system.
Just trying to run the app from the app icon.

I'm not receiving any error message.

Revision history for this message
stuk (stuk88-h) said (last edit ):
#3

If I try to install some snapcraft app, I'm getting an error: "Dont know how to handle snap://...*" inside the Software app

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

For diagnostic purposes please provide the output that you receive for the following commands (to be executed in a terminal):

uname -a
lsb_release -crid
apt-cache policy snapd
sudo dpkg --audit

Revision history for this message
stuk (stuk88-h) said :
#5

uname -a:
Linux stas-ubuntu 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
stuk (stuk88-h) said :
#6

lsb_release -crid:

Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

Revision history for this message
stuk (stuk88-h) said :
#7

apt-cache policy snapd:

snapd:
  Installed: 2.49.2+18.04
  Candidate: 2.49.2+18.04
  Version table:
 *** 2.49.2+18.04 500
        500 http://rep-ubuntu-il.upress.io/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.48.3+18.04 500
        500 http://rep-ubuntu-il.upress.io/ubuntu bionic-security/main amd64 Packages
     2.32.5+18.04 500
        500 http://rep-ubuntu-il.upress.io/ubuntu bionic/main amd64 Packages
     2.0.2 500
        500 http://dk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Revision history for this message
stuk (stuk88-h) said :
#8

sudo dpkg --audit:

Empty result.

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

If you are searching logs I'd recommend using grep in the terminal. It's super powerful

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

"Dont know how to handle snap://...*"

Try the following:

sudo apt install --reinstall snapd
snap --version

and copy/paste the results.

Revision history for this message
stuk (stuk88-h) said :
#11

Reinstall snapd gives the following print:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  freepats gir1.2-gtk-2.0 gir1.2-keybinder-3.0 gnome-flashback-common
  gstreamer1.0-nice krita-data kwayland-data kwayland-integration
  libaccinj64-9.1 libaribb24-0 libasound2-dev libatk-bridge2.0-dev
  libatk1.0-dev libatspi2.0-dev libbasicusageenvironment1 libcapnp-0.6.1
  libcddb2 libcublas9.1 libcudart9.1 libcufft9.1 libcufftw9.1 libcurand9.1
  libcusolver9.1 libcusparse9.1 libdbus-1-dev libdbusmenu-qt5-2 libdca0
  libde265-0 libdjvulibre-dev libdvbpsi10 libebml4v5 libepoxy-dev libexif-dev
  libexif-doc libfaad2 libfam0 libgadu3 libgles2-mesa-dev libgloox15
  libgraphics-magick-perl libgraphicsmagick++-q16-12 libgraphicsmagick++1-dev
  libgraphicsmagick-q16-3 libgraphicsmagick1-dev libgroupsock8 libgsl23
  libgslcblas0 libgssdp-1.0-3 libgstreamer-plugins-bad1.0-0 libgtkspell0
  libgupnp-1.0-4 libgupnp-igd-1.0-4 libhfstospell9 libibus-1.0-dev
  libice6:i386 libilmbase-dev libkate1 libkeybinder-3.0-0 libkf5archive5
  libkf5auth-data libkf5auth5 libkf5codecs-data libkf5codecs5
  libkf5completion-data libkf5completion5 libkf5config-bin libkf5config-data
  libkf5configcore5 libkf5configgui5 libkf5configwidgets-data
  libkf5configwidgets5 libkf5coreaddons-data libkf5coreaddons5 libkf5crash5
  libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5 libkf5doctools5
  libkf5guiaddons5 libkf5i18n-data libkf5i18n5 libkf5iconthemes-bin
  libkf5iconthemes-data libkf5iconthemes5 libkf5idletime5 libkf5itemviews-data
  libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5
  libkf5kiontlm5 libkf5kiowidgets5 libkf5notifications-data libkf5service-bin
  libkf5service-data libkf5service5 libkf5solid5 libkf5solid5-data
  libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data
  libkf5textwidgets5 libkf5wallet-data libkf5waylandclient5
  libkf5widgetsaddons-data libkf5widgetsaddons5 libkf5windowsystem-data
  libkf5windowsystem5 liblcms2-dev liblilv-0-0 liblivemedia62 libllvm6.0:i386
  libllvm7 libllvm7:i386 libllvm8 libllvm8:i386 libllvm9 libllvm9:i386
  liblqr-1-0-dev libmagick++-6-headers libmagick++-6.q16-7
  libmagickcore-6-arch-config libmagickcore-6-headers libmagickwand-6-headers
  libmatroska6v5 libmaxminddb0 libmeanwhile1 libmicrodns0 libmirclient-dev
  libmirclient9 libmircommon-dev libmircommon7 libmircookie-dev libmircookie2
  libmircore-dev libmircore1 libmirprotobuf3 libmjpegutils-2.1-0 libmms0
  libmodplug1 libmono-accessibility4.0-cil libmono-data-tds4.0-cil
  libmono-system-core4.0-cil libmono-system-data4.0-cil
  libmono-system-enterpriseservices4.0-cil libmono-system-numerics4.0-cil
  libmono-system-runtime-serialization-formatters-soap4.0-cil
  libmono-system-transactions4.0-cil libmono-system-windows-forms4.0-cil
  libmono-webbrowser4.0-cil libmpcdec6 libmpeg2encpp-2.1-0 libmplex2-2.1-0
  libnfs11 libnice10 libnppc9.1 libnppial9.1 libnppicc9.1 libnppicom9.1
  libnppidei9.1 libnppif9.1 libnppig9.1 libnppim9.1 libnppist9.1 libnppisu9.1
  libnppitc9.1 libnpps9.1 libnvblas9.1 libnvgraph9.1 libnvrtc9.1
  libnvtoolsext1 libnvvm3 libofa0 libopencolorio1v5 libopenexr-dev
  libopenmpt-modplug1 libplacebo4 libpng-tools libpolkit-qt5-1-1
  libpoppler-qt5-1 libprotobuf-c1 libprotobuf-dev libprotobuf-lite10
  libproxy-tools libpython-stdlib:i386 libpython2.7-minimal:i386
  libpython2.7-stdlib:i386 libqt5concurrent5 libqt5designer5
  libqt5designercomponents5 libqt5help5 libqt5quickwidgets5 libqt5script5
  libqt5sql5 libqt5sql5-sqlite libqt5test5 libqt5texttospeech5 libqt5xml5
  libreadline7:i386 libresid-builder0c2a librhino-java libserd-0-0 libsidplay2
  libsm6:i386 libsmi2ldbl libsndio-dev libsord-0-0 libsoundtouch1 libspandsp2
  libsqlite3-0:i386 libsratom-0-0 libsrtp2-1 libssh2-1 libssl-doc
  libssl1.1:i386 libtagsoup-java libthrust-dev libtinyxml2.6.2v5 libudev-dev
  libupnp6 libusageenvironment3 libva-wayland2 libvdpau-dev libvlc-bin libvlc5
  libvlccore9 libvo-aacenc0 libvo-amrwbenc0 libvoikko1 libwebp-dev
  libwildmidi-config libwildmidi2 libwireshark-data libwireshark11 libwiretap8
  libwmf-dev libwscodecs2 libwsutil9 libxcomposite-dev libxkbcommon-dev
  libxss-dev libxv-dev libzbar0 libzephyr4 ocl-icd-opencl-dev opencl-c-headers
  pidgin-data python-apt python-gobject-2-dev python-qt4-dbus python3-pyqt5
  python3-sip qt5-assistant qt5-qmake qt5-qmake-bin qtbase5-dev-tools
  qtdeclarative5-controls-plugin qtdeclarative5-dialogs-plugin
  qtdeclarative5-qtquick2-plugin sonnet-plugins vlc-data
  vlc-plugin-video-output wayland-protocols wireshark-common
  x11proto-composite-dev x11proto-dri2-dev x11proto-gl-dev
  x11proto-scrnsaver-dev xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 23 not upgraded.
Need to get 22.5 MB of archives.
After this operation, 0 B of additional disk space will be used.
Err:1 http://rep-ubuntu-il.upress.io/ubuntu bionic-updates/main amd64 snapd amd64 2.49.2+18.04
  404 Not Found [IP: 31.154.69.218 80]
E: Failed to fetch http://rep-ubuntu-il.upress.io/ubuntu/pool/main/s/snapd/snapd_2.49.2+18.04_amd64.deb 404 Not Found [IP: 31.154.69.218 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

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

There seems to be a problem with the repository server that you have selected.

I suggest that you switch to a different repository server in your vicinity (e.g. by using the program software-properties-gtk) and then run the commands

sudo apt update
sudo apt full-upgrade
sudo apt install --reinstall snapd
snap --version

and copy/paste all output that we can check.

Revision history for this message
stuk (stuk88-h) said :
#13

Ok. did it again, and changed the repo.

now after I run the reinstall of snapd I get this:

sudo apt install --reinstall snapd
[sudo] password for stas:
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 22.5 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 snapd amd64 2.49.2+18.04 [22.5 MB]
Fetched 22.5 MB in 6s (3,564 kB/s)
(Reading database ... 370890 files and directories currently installed.)
Preparing to unpack .../snapd_2.49.2+18.04_amd64.deb ...
Unpacking snapd (2.49.2+18.04) over (2.49.2+18.04) ...
Setting up snapd (2.49.2+18.04) ...
error: cannot read state: invalid character 'O' looking for beginning of value
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xe" for details.

Job for snapd.seeded.service failed because the control process exited with error code.
See "systemctl status snapd.seeded.service" and "journalctl -xe" for details.
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Revision history for this message
stuk (stuk88-h) said :
#14

systemctl status snapd.service

GIVES THAT:

● snapd.service - Snap Daemon
     Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-07-12 02:01:44 IDT; 4min 36s ago
TriggeredBy: ● snapd.socket
    Process: 30367 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
   Main PID: 30367 (code=exited, status=1/FAILURE)

Jul 12 02:01:44 stas-ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Jul 12 02:01:44 stas-ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
Jul 12 02:01:44 stas-ubuntu systemd[1]: Stopped Snap Daemon.
Jul 12 02:01:44 stas-ubuntu systemd[1]: snapd.service: Start request repeated too quickly.
Jul 12 02:01:44 stas-ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Jul 12 02:01:44 stas-ubuntu systemd[1]: Failed to start Snap Daemon.
Jul 12 02:01:44 stas-ubuntu systemd[1]: snapd.service: Triggering OnFailure= dependencies.

Revision history for this message
stuk (stuk88-h) said :
#15

still need support on that

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

Maybe a broken /var/lib/snapd/state.json file.

The following commands may help:

sudo mv /var/lib/snapd/state.json /var/lib/snapd/state.json-bak
systemctl start snapd
systemctl status snapd
sudo cat /var/lib/snapd/state.json

Revision history for this message
stuk (stuk88-h) said :
#17

Okay. YES. It did help.

BUT now:

Trying running notes works well and good as it should now. But trying to run Logs app, is successful but the app has no background, only white text.

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

Which "Logs app" are you taking about?

Revision history for this message
stuk (stuk88-h) said :
#19

ok.. now after some time the system worked, The logs app works fine.

So its all good. Thank you!

Revision history for this message
stuk (stuk88-h) said :
#20

Thanks Manfred Hampl, that solved my question.