LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2021, 01:59 AM   #1
EvanRC
LQ Newbie
 
Registered: Jul 2021
Location: Middle of Northern Colorado, USA
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled
Angry Snapcraft refresh broke existing core connections; unable to use LibreOffice and other snaps


I was simply running a basic update of my Ubuntu 20.04.3 install, running GNOME 3.36.8. I did the simple 'snapcraft refresh' to update my snaps. No big deal, right? Here's the log:

Code:
77   Done    yesterday at 22:55 MST  yesterday at 22:58 MST  Refresh snaps "core18", "core20", "libreoffice", "blender"
78   Done    today at 00:16 MST      today at 00:16 MST      Refresh all snaps: no updates
79   Done    today at 00:43 MST      today at 00:43 MST      Refresh all snaps: no updates
Well, unfortunately, snapcraft decided to undo every single connection in core, giving me this horrible conglomerate of information when running snap connections core:
Code:
account-control           -              :account-control           -
accounts-service          -              :accounts-service          -
adb-support               -              :adb-support               -
allegro-vcu               -              :allegro-vcu               -
alsa                      audacity:alsa  :alsa                      manual
appstream-metadata        -              :appstream-metadata        -
audio-playback            -              :audio-playback            -
audio-record              -              :audio-record              -
autopilot-introspection   -              :autopilot-introspection   -
avahi-control             -              :avahi-control             -
avahi-observe             -              :avahi-observe             -
block-devices             -              :block-devices             -
bluetooth-control         -              :bluetooth-control         -
bluez                     -              :bluez                     -
broadcom-asic-control     -              :broadcom-asic-control     -
browser-support           -              :browser-support           -
calendar-service          -              :calendar-service          -
camera                    -              :camera                    -
can-bus                   -              :can-bus                   -
cifs-mount                -              :cifs-mount                -
classic-support           -              :classic-support           -
contacts-service          -              :contacts-service          -
core-support              -              :core-support              -
cpu-control               -              :cpu-control               -
cups-control              -              :cups-control              -
daemon-notify             -              :daemon-notify             -
dcdbas-control            -              :dcdbas-control            -
desktop                   -              :desktop                   -
desktop-launch            -              :desktop-launch            -
desktop-legacy            -              :desktop-legacy            -
device-buttons            -              :device-buttons            -
display-control           -              :display-control           -
dm-crypt                  -              :dm-crypt                  -
docker-support            -              :docker-support            -
dvb                       -              :dvb                       -
firewall-control          -              :firewall-control          -
fpga                      -              :fpga                      -
framebuffer               -              :framebuffer               -
fuse-support              -              :fuse-support              -
fwupd                     -              :fwupd                     -
gconf                     -              :gconf                     -
gpg-keys                  -              :gpg-keys                  -
gpg-public-keys           -              :gpg-public-keys           -
gpio-control              -              :gpio-control              -
gpio-memory-control       -              :gpio-memory-control       -
greengrass-support        -              :greengrass-support        -
gsettings                 -              :gsettings                 -
hardware-observe          -              :hardware-observe          -
hardware-random-control   -              :hardware-random-control   -
hardware-random-observe   -              :hardware-random-observe   -
home                      -              :home                      -
hostname-control          -              :hostname-control          -
hugepages-control         -              :hugepages-control         -
intel-mei                 -              :intel-mei                 -
io-ports-control          -              :io-ports-control          -
ion-memory-control        -              :ion-memory-control        -
jack1                     -              :jack1                     -
joystick                  -              :joystick                  -
juju-client-observe       -              :juju-client-observe       -
kernel-crypto-api         -              :kernel-crypto-api         -
kernel-module-control     -              :kernel-module-control     -
kernel-module-observe     -              :kernel-module-observe     -
kubernetes-support        -              :kubernetes-support        -
kvm                       -              :kvm                       -
libvirt                   -              :libvirt                   -
locale-control            -              :locale-control            -
log-observe               -              :log-observe               -
login-session-control     -              :login-session-control     -
login-session-observe     -              :login-session-observe     -
lxd-support               -              :lxd-support               -
media-control             -              :media-control             -
modem-manager             -              :modem-manager             -
mount-observe             -              :mount-observe             -
multipass-support         -              :multipass-support         -
netlink-audit             -              :netlink-audit             -
netlink-connector         -              :netlink-connector         -
network                   -              :network                   -
network-bind              -              :network-bind              -
network-control           -              :network-control           -
network-manager           -              :network-manager           -
network-manager-observe   -              :network-manager-observe   -
network-observe           -              :network-observe           -
network-setup-control     -              :network-setup-control     -
network-setup-observe     -              :network-setup-observe     -
network-status            -              :network-status            -
ofono                     -              :ofono                     -
opengl                    -              :opengl                    -
openvswitch               -              :openvswitch               -
openvswitch-support       -              :openvswitch-support       -
optical-drive             -              :optical-drive             -
packagekit-control        -              :packagekit-control        -
password-manager-service  -              :password-manager-service  -
personal-files            -              :personal-files            -
physical-memory-control   -              :physical-memory-control   -
physical-memory-observe   -              :physical-memory-observe   -
power-control             -              :power-control             -
ppp                       -              :ppp                       -
process-control           -              :process-control           -
ptp                       -              :ptp                       -
pulseaudio                -              :pulseaudio                -
pwm                       -              :pwm                       -
qualcomm-ipc-router       -              :qualcomm-ipc-router       -
raw-input                 -              :raw-input                 -
raw-usb                   -              :raw-usb                   -
removable-media           -              :removable-media           -
screen-inhibit-control    -              :screen-inhibit-control    -
screencast-legacy         -              :screencast-legacy         -
sd-control                -              :sd-control                -
shutdown                  -              :shutdown                  -
snapd-control             -              :snapd-control             -
ssh-keys                  -              :ssh-keys                  -
ssh-public-keys           -              :ssh-public-keys           -
system-backup             -              :system-backup             -
system-files              -              :system-files              -
system-observe            -              :system-observe            -
system-packages-doc       -              :system-packages-doc       -
system-source-code        -              :system-source-code        -
system-trace              -              :system-trace              -
tee                       -              :tee                       -
time-control              -              :time-control              -
timeserver-control        -              :timeserver-control        -
timezone-control          -              :timezone-control          -
tpm                       -              :tpm                       -
u2f-devices               -              :u2f-devices               -
udisks2                   -              :udisks2                   -
uhid                      -              :uhid                      -
uinput                    -              :uinput                    -
unity7                    -              :unity7                    -
upower-observe            -              :upower-observe            -
vcio                      -              :vcio                      -
wayland                   -              :wayland                   -
x11                       -              :x11                       -
Since it undid every single connection (except for alsa, apparently), I can't run LibreOffice, Ubuntu Software, or GIMP. The few resources concerning the error message I would get were wholly useless. The two errors I get when trying to run snap-store are:
Code:
.
/snap/snap-store/547/snap/command-chain/desktop-launch: line 50: /home/le-evan/.config/user-dirs.dirs: Permission denied
ERROR: not connected to the gnome-3-34-1804 content interface.
I don't know how to manually reconnect every single one of those interfaces -- is there some way to get snap to correct itself? I already tried apt-get reinstall snap snapd, Ubuntu's dpkg recovery thing, running single-connection fixes (snap connect snap-store:gnome-3-34-1804 gnome-3-34-1804, which then spat out 40x more error stuff), and rebooted several times, but I still can't launch any of my Snapcraft applications. How do I fix this problem (aside from total reinstall)?

Edit 1:
I had to concede and reinstall every snap that didn't have important metadata/saves, and the ones that did, I had to manually reconnect as so:
Code:
sudo snap connect gimp:browser-support core
sudo snap connect gimp:cups-control core
sudo snap connect gimp:desktop core
sudo snap connect gimp:desktop-legacy core
sudo snap connect gimp:gsettings core
sudo snap connect gimp:home core
sudo snap connect gimp:network core
sudo snap connect gimp:opengl core
sudo snap connect gimp:removable-media core
sudo snap connect gimp:x11 core
sudo snap connect gimp:wayland core
sudo snap connect gimp:unity7 core
sudo snap connect gimp:gnome-3-28-1804 gnome-3-28-1804
sudo snap connect gimp:gtk-3-themes gtk-common-themes:gtk-3-themes
sudo snap connect gimp:icon-themes gtk-common-themes:icon-themes
sudo snap connect gimp:sound-themes gtk-common-themes:sound-themes
sudo snap connect libreoffice:audio-playback core
sudo snap connect libreoffice:bluez core
sudo snap connect libreoffice:cups-control core
sudo snap connect libreoffice:desktop core
sudo snap connect libreoffice:desktop-legacy core
sudo snap connect libreoffice:gsettings core
sudo snap connect libreoffice:home core
sudo snap connect libreoffice:network core
sudo snap connect libreoffice:network-bind core
sudo snap connect libreoffice:opengl core
sudo snap connect libreoffice:pulseaudio core
sudo snap connect libreoffice:removable-media core
sudo snap connect libreoffice:screen-inhibit-control core
sudo snap connect libreoffice:unity7 core
sudo snap connect libreoffice:wayland core
sudo snap connect libreoffice:x11 core
sudo snap connect libreoffice: core
gnome-3-38-2004  gtk-3-themes     icon-themes      sound-themes     
sudo snap connect libreoffice:gnome-3-38-2004 gnome-3-38-2004
sudo snap connect libreoffice:gtk-3-themes gtk-common-themes:gtk-3-themes
sudo snap connect libreoffice:icon-themes gtk-common-themes:icon-themes
sudo snap connect libreoffice:sound-themes gtk-common-themes:sound-themes
So basically, do a remove and install of the ones that don't have important things, and for those that do, well, tough luck. Annoying, but snap doesn't have an option for performing auto-connect after the packages are installed...

Last edited by EvanRC; 11-20-2021 at 10:25 PM. Reason: added stuff for libreoffice connections
 
Old 11-22-2021, 07:17 PM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
/home/le-evan/.config/user-dirs.dirs: Permission denied
I wonder if you would have changed permissions of the file to 777 or something, might have eliminated the Permissions issue.
EDIT: Sometimes it's an owner/group change needed

Last edited by Brains; 11-22-2021 at 07:19 PM.
 
Old 11-22-2021, 07:28 PM   #3
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Sometimes, when you are denied access to a file in your home that belongs to you and permissions are proper, is because something else is currently using the file.
 
  


Reply

Tags
libreoffice, snap, snapd, ubuntu 20.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Destination Linux 134 - Xfce 4.14, Ubuntu Snaps, LibreOffice, Linux Journal, NVidia, Huawei, FFmpeg LXer Syndicated Linux News 0 08-15-2019 03:34 PM
LXer: Canonical Releases Snapcraft 2.17 Tool for Creating Snaps on Ubuntu 16.04 LTS LXer Syndicated Linux News 0 09-16-2016 10:32 PM
LXer: Join Canonical in London for a Technical Introduction to Ubuntu Core and Snaps LXer Syndicated Linux News 0 09-13-2016 06:03 AM
LXer: Canonical Releases Snapcraft 2.12 Snaps Creator with New Parts Ecosystem, More LXer Syndicated Linux News 0 06-29-2016 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration