35

I tried to install crossover and after downloading the .deb from their website, I followed the steps as indicated when opening it with Ubuntu Software Centre:

On 64-bit flavors of Debian and some Ubuntu variants, first open a terminal and run sudo dpkg --add-architecture i386 ; sudo apt-get update

Since I have Ubuntu 16.04 LTS 64 bit I perform the command.

But when copying and pasting that command into my terminal, it stopped at Fetched 535kb in 7sec and stalled there for about 20 minutes. I ended up closing it and tried to run both commands separately but after doing the sudo apt-get update command it also stalls again after "Fetched XXKb in XXsec."

I restarted my computer and decided to run the software updater and it stays stuck at roughly 75% for hours.

Braiam
  • 69,112
Steve
  • 261

3 Answers3

51

This is a known bug and has been fixed. From a comment in the bug tracker, installing the following packages manually solves the problem, at least for me (the URLs are for amd64, adjust URLs for other architectures):

cd /tmp && mkdir asfix
cd asfix
wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i *.deb
cd ..
rm -r asfix
Bryan
  • 133
hrzhu
  • 776
7

The bug has been fixed. The packages can be downloaded and installed by opening a terminal (press Ctrl+Alt+T) and running the following three commands:

wget http://launchpadlibrarian.net/259142419/libappstream3_0.9.4-1ubuntu1_amd64.deb http://launchpadlibrarian.net/259142413/gir1.2-appstream_0.9.4-1ubuntu1_amd64.deb http://launchpadlibrarian.net/259142412/appstream-index_0.9.4-1ubuntu1_all.deb http://launchpadlibrarian.net/259142418/appstream_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i libappstream3_0.9.4-1ubuntu1_amd64.deb gir1.2-appstream_0.9.4-1ubuntu1_amd64.deb appstream-index_0.9.4-1ubuntu1_all.deb appstream_0.9.4-1ubuntu1_amd64.deb
sudo apt update
Olathe
  • 4,310
  • 2
  • 19
  • 24
0

I ran into a similar issue (stuck apt update on 16.04, 2x apistreamcli at 100%), however that was not related to any particular installation.

For me it was enough to kill -sigterm the stuck apistreamcli-processes. After that apt update && apt upgrade worked again without issues.

Jan Groth
  • 403