Score:0

Failed upgrade from 20.04 to 20.04.2 error: Unable to connect to the source LXD: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket:

fr flag

running in circles loop tried to upgrade and failed how to fix this ?

1144 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

Last login: Mon Jul 12 07:56:00 2021 from
root@Ubuntu-1804-bionic-64-minimal ~ # apt update
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 114 kB in 1s (175 kB/s)
appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success  if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi 
E: Sub-process returned an error code
root@Ubuntu-1804-bionic-64-minimal ~ # apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run  apt --fix-broken install  to correct these.
The following packages have unmet dependencies:
 lxd-client : Depends: lxd (>= 1:0.9) but it is not installed
 lxd-tools : Depends: lxd (>= 1:0.9) but it is not installed
E: Unmet dependencies. Try  apt --fix-broken install  with no packages (or specify a solution).
root@Ubuntu-1804-bionic-64-minimal ~ # apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run  apt --fix-broken install  to correct these.
The following packages have unmet dependencies:
 lxd-client : Depends: lxd (>= 1:0.9) but it is not installed
 lxd-tools : Depends: lxd (>= 1:0.9) but it is not installed
E: Unmet dependencies. Try  apt --fix-broken install  with no packages (or specify a solution).
root@Ubuntu-1804-bionic-64-minimal ~ # lxd version
4.0.6
root@Ubuntu-1804-bionic-64-minimal ~ #
root@Ubuntu-1804-bionic-64-minimal ~ # sudo apt install policycoreutils
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run  apt --fix-broken install  to correct these.
The following packages have unmet dependencies:
 lxd-client : Depends: lxd (>= 1:0.9) but it is not going to be installed
 lxd-tools : Depends: lxd (>= 1:0.9) but it is not going to be installed
 policycoreutils : Depends: selinux-utils but it is not going to be installed
E: Unmet dependencies. Try  apt --fix-broken install  with no packages (or specify a solution).
root@Ubuntu-1804-bionic-64-minimal ~ # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
root@Ubuntu-1804-bionic-64-minimal ~ # which lxd
/snap/bin/lxd
root@Ubuntu-1804-bionic-64-minimal ~ # lxc --version
4.0.6
root@Ubuntu-1804-bionic-64-minimal ~ # sudo apt install linux-image-generic-hwe-20.04 linux-headers-generic-hwe-20.04
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run  apt --fix-broken install  to correct these.
The following packages have unmet dependencies:
 linux-headers-generic-hwe-20.04 : Depends: linux-headers-5.8.0-59-generic but it is not going to be installed
 linux-image-generic-hwe-20.04 : Depends: linux-image-5.8.0-59-generic but it is not going to be installed
                                 Depends: linux-modules-extra-5.8.0-59-generic but it is not going to be installed
                                 Recommends: thermald but it is not going to be installed
 lxd-client : Depends: lxd (>= 1:0.9) but it is not going to be installed
 lxd-tools : Depends: lxd (>= 1:0.9) but it is not going to be installed
E: Unmet dependencies. Try  apt --fix-broken install  with no packages (or specify a solution).
root@Ubuntu-1804-bionic-64-minimal ~ # apt --fix-broken install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  diffstat gettext gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0 gir1.2-mutter-2 gnome-user-guide intltool-debian iputils-arping irqbalance libapt-pkg-perl libarchive-zip-perl
  libboost-date-time1.65.1 libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libboost-system1.65.1 libboost-thread1.65.1 libcdio17 libcgi-fast-perl libcgi-pm-perl
  libclass-accessor-perl libclone-perl libcroco3 libdouble-conversion1 libebook-contacts-1.2-2 libemail-valid-perl libexempi3 libexiv2-14 libexporter-tiny-perl libfcgi-perl libffi6:i386
  libfile-copy-recursive-perl libgail-3-0 libgmime-3.0-0 libgphoto2-l10n libgutenprint-common libgutenprint2 libgutenprint9 libhogweed4:i386 libicu60:i386 libindicator3-7 libio-pty-perl
  libio-string-perl libipc-run-perl liblist-moreutils-perl libllvm10 libllvm10:i386 liblxc-common liblxc1 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmozjs-52-0 libmutter-2-0 libnet-dns-perl
  libnet-domain-tld-perl libnet-ip-perl libnettle6:i386 libntfs-3g88 libnuma1 liborcus-0.13-0 libparse-debianchangelog-perl libperl5.26 libperlio-gzip-perl libpoppler73 libpython2.7 libqpdf21
  libreoffice-avmedia-backend-gstreamer libreoffice-style-galaxy libsasl2-modules:i386 libspeexdsp1:i386 libtext-levenshtein-perl libunity-gtk2-parser0 libunity-gtk3-parser0 libusbmuxd4
  libwacom-bin libxapian30 libxml-simple-perl libyaml-libyaml-perl libzeitgeist-2.0-0 lintian lxcfs patchutils popularity-contest printer-driver-gutenprint python-cairo python-dbus python-gi
  python-gi-cairo python-psutil python-talloc python3-lxc qpdf t1utils uidmap unity-gtk-module-common unity-gtk2-module unity-gtk3-module xubuntu-icon-theme zeitgeist-core
Use  apt autoremove  to remove them.
The following additional packages will be installed:
  lxd
The following NEW packages will be installed:
  lxd
0 upgraded, 1 newly installed, 0 to remove and 595 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,444 B of archives.
After this operation, 79.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 249230 files and directories currently installed.)
Preparing to unpack .../archives/lxd_1%3a0.9_all.deb ...
=> Installing the LXD snap
==> Checking connectivity with the snap store
==> Installing the LXD snap from the 4.0 track for ubuntu-20.04
snap  "lxd " is already installed, see  snap help refresh 
==> Waiting for LXD to be online (10min timeout)
==> Running migration from Deb to Snap
=> Connecting to source server
error: Unable to connect to the source LXD: Get  "http://unix.socket/1.0 ": dial unix /var/lib/lxd/unix.socket: connect: connection refused
dpkg: error processing archive /var/cache/apt/archives/lxd_1%3a0.9_all.deb (--unpack):
 new lxd package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/lxd_1%3a0.9_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Ubuntu-1804-bionic-64-minimal ~ #
root@Ubuntu-1804-bionic-64-minimal ~ # apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run  apt --fix-broken install  to correct these.
The following packages have unmet dependencies:
 lxd-client : Depends: lxd (>= 1:0.9) but it is not installed
 lxd-tools : Depends: lxd (>= 1:0.9) but it is not installed
E: Unmet dependencies. Try  apt --fix-broken install  with no packages (or specify a solution).
root@Ubuntu-1804-bionic-64-minimal ~ #
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.