4

There were no issues before, but today I started my computer and I removed the unstable OIBAF graphics drivers and tried to add stable OIBAF graphics PPA. I left for about 15 minutes and when I came back the terminal was stuck at the initial command without any output. It looked like this:

enter image description here

I thought this was an internet issue, but it wasn't. Then I canceled adding the PPA and tried to install it again but had the same issue (the apt-add-repository command does works but takes a lot of time to show any output. Everything was fine before --it took less than a minute to complete-- but now it takes more than 15 minutes).

I've also tried adding different PPAs but had the same issue.

My kernel version is 4.20.0

I've also built a kernel installed and removed but then there was no ppa related issue.

EDIT: There's more delay when I cancel the command with CTRL+C

TheOdd
  • 3,012
knoftrix
  • 419

3 Answers3

7

I came here for the same reason that,

apt-add-repository command does works but takes a lot of time to show any output -- now it takes more than 15 minutes.

and I found the root cause and solution from https://unix.stackexchange.com/questions/500286/

It seems to be a DNS routing issue.

temporarily disabled IPv6 fixed the problem:

sudo sysctl net.ipv6.conf.all.disable_ipv6=1

xpt
  • 1,197
2

I found the issue, it was due to other unsigned repository I added to my system because of this there is a lot of delay in adding PPAs. Simply remove those unsigned PPAs and problem will be solved.

knoftrix
  • 419
0

my problem was ip6tables input policy set to DROP without allowing local traffic. these need to be there:

ip6tables -A INPUT -i lo -j ACCEPT
ip6tables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

after adding rules the system resolved all repositories.

btw., i found that strace command often output exact address system hang trying to resolve, making this easier to debug.

Sunny
  • 1