APT hangs Debian 9 with update.

Not sure this is the right answer but I was getting a hang after the Debian updates and found it to be an issue with one of the links in /etc/apt/sources.list.d/mariadb.list. I moved this file to my home directory and suddenly it has apt cycles correctly.

[email protected]:/# sudo apt update
Ign:1 http://mirrors.linode.com/debian stretch InRelease
Get:2 http://mirrors.linode.com/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://mirrors.linode.com/debian stretch-updates InRelease [91.0 kB]
Hit:4 http://mirrors.linode.com/debian stretch Release
Hit:5 http://apt-longview.linode.com stretch InRelease
Get:7 http://mirrors.linode.com/debian-security stretch/updates/main Sources [201 kB]
Hit:8 http://apt.afterlogic.com/stable InRelease
Get:9 http://mirrors.linode.com/debian-security stretch/updates/main amd64 Packages [508 kB]
Get:10 http://mirrors.linode.com/debian-security stretch/updates/main Translation-en [224 kB]
0% [Working]

[IT HANGS HERE]

2 Replies

Update… they all seem to stop on:

I removed:

/etc/apt/sources.list.d/mariadb.list

There seems to be something in this file that causes the hang.

@primalmedia I'm sorry to hear that you are having trouble updating the MariaDB. Sometimes, apt my try to update over IPv6. I don't see this message in the output you provided. However, to help rule this out, what happens when you add the -o flag to force IPv4?

apt-get -o Acquire::ForceIPv4=true update

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct