When I try to do anything with apt-get using a terminal, the apt-get gets stuck at 0% [Working].
|
|
||||
|
An answer I did not find on the internet anywhere but actually found it based on a command I executed a couple of hours ago. An example of such a command is
After which a file is added to /etc/apt/sources.list.d/. In this directory, sources could also be added. In my case it was teamviewer which contained it's own list which had an invalid url. Therefore causing my update to fail. These are the commands that I executed. Note: teamviewer.list was causing me problems but it can be anything for you inside this directory. Try it out and make back-ups!)
Hope this saves someone the hours it could have saved me! |
|||
|
|
|
In debian 9, my apt was stuck at 0%[working] for sometime before it does any task which requires access to internet. After trying many other methods, When i disabled the network manager and started using systemd-networkd instead, this problem was finally solved. |
|||
|
|
|
You can try to check the cache and to clean the cache directory.
It's possible you need to clean by hand some of the following directories (you can always backup them and only after delete the files inside) :
PS> If you have succeed, remember to delete the backup copy that you don't need anymore, but not the Update
from: Maybe can be useful this bug thread More drastic remove the package if it is possible. |
|||||||||||||||||||||
|
|
I also found this happening to me when I switched to some https repos. apt needs |
|||
|
|
|
This could also be caused by being behind a proxy that blocks access. Sometimes I got a NODATA error... sometimes it just stayed at |
|||
|
|
|
Make sure you can ping out of your own network and more importantly to the Ubuntu network i.e.
You should get an output similar to:
|
|||
|
|
|
I came to this page via a high ranked Google search but these answers didn't help me. Instead I cleared out my local repository of retrieved package files with:
|
|||
|
|
|
first try to update it by
and then run apt-get or should change your mirror to closest to your place, watch this - How can I get apt to use a mirror close to me, or choose a faster mirror? |
|||||||||||||
|
ping -c 3 google.com? – pmichna Jul 16 '14 at 11:25