Score:0

APT Update - what happens after fetching?

in flag

I am running a docker container in which I then chroot into a SDcard image of another architecture.

host -> docker -> chroot -> mounted image

In order to install some packages on the image I am running apt-get update beforehand. Otherwise some packaged fail with a 404 error.

The updating was super slow until I found a bug report saying that 'mounting proc too will increase the speed'. I did so and in fact, now the update process is much faster.

But unfortunately it still gets stuck for some minutes after Fetched 3742 kB in 22s (172 kB/s)

What is happening there? What is APT trying to do?

When using -oDebug::RunScripts=1, it seems to get stuck at

Running external script: 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
Artur Meinild avatar
vn flag
See [this answer here](https://askubuntu.com/questions/1349388/downloading-packages-from-ubuntu-repositories-apt-manually-using-wget/1349389#1349389). You can then install the downloaded package with: `sudo apt install /path/to/package-file.deb`. As long as you download from the "official" repositories, dependencies should be good.
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.