View Issue Details

IDProjectCategoryView StatusLast Update
0005934Kali LinuxGeneral Bugpublic2020-12-01 10:41
ReporterJokerSob Assigned To 
PriorityimmediateSeverityblockReproducibilityalways
Status closedResolutionopen 
Product Version2019.4 
Summary0005934: apt update is blocking since command-not-found has been installed
Description

When I run the update and upgrade command, the screen remains stuck and no progress can be made (last 1-2 days)

etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Steps To Reproduce

apt update && apt upgrade && apt-get update && apt-get upgrade && apt dist-upgrade && apt full-upgrade && apt-get dist-upgrade && apt-get full-upgrade

https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/ on page, sources.list did the renovation.

Additional Information

I tried everything I could think of, but I couldn't fix the problem. The screen remains as shown in the screenshot

Attached Files

Activities

Balling

Balling

2019-12-18 22:19

reporter   ~0011712

I use
apt-get update; apt-get -y dist-upgrade; apt-get -y autoremove; apt-get clean

here apt-get update is broken.
Try to use synaptic

rhertzog

rhertzog

2019-12-19 08:27

administrator   ~0011717

Have you tried using another mirror in your sources.list?

Do you have a firewall blocking outgoing connections?

It's weird that apt gets stuck in that way. It would be interesting to run it under strace to know where it gets stuck. Can you run "strace -o log -f apt update" and share the log file?

JokerSob

JokerSob

2019-12-19 13:07

reporter   ~0011722

There was no problem until 2-3 days ago. (max 1 weeks ago)

  • Have you tried using another mirror in your sources.list?
    No

  • Do you have a firewall blocking outgoing connections?
    No

  • "strace -o log -f apt update" log file ( I hope it's the right one. /root/log )
    I couldn't upload the file here because its size is 32.26MIB (MAX 2.00 MİB)
    Therefore, I share the link below.
    https://ufile.io/fqfwnurs

rhertzog

rhertzog

2019-12-19 13:33

administrator   ~0011723

It seems to be related to the "command-not-found" package. It installs a hook into apt and that hook is blocking.

You can try to comment the configuration entries in /etc/apt/apt.conf.d/50command-not-found

JokerSob

JokerSob

2019-12-19 14:18

reporter   ~0011724

we can mark the issue as resolved. Thank you @rhertzog

rhertzog

rhertzog

2019-12-19 15:31

administrator   ~0011725

Well, the issue is not fixed, we have just given you a work around. Although it's not clear why it breaks for you.

Are you running on an installed system? On a live image? On a live image with persistence?

If you run it on an installed system, what filesystem are you using?

JokerSob

JokerSob

2019-12-19 16:44

reporter   ~0011726

I use it as the only operating system installed on the HDD.

JokerSob

JokerSob

2019-12-19 19:40

reporter   ~0011727

https://www.kali.org/news/python-2-end-of-life/ Could this be the reason?

JokerSob

JokerSob

2019-12-19 21:29

reporter   ~0011728

When you run the update and upgrade command by turning off the internet connection, the update screen comes as in the screenshot, then I can get the update by opening the internet connection.

Balling

Balling

2019-12-19 21:32

reporter   ~0011730

No, https://www.kali.org/news/python-2-end-of-life/ this apt and pt-get are already python 3.

JokerSob

JokerSob

2019-12-20 23:18

reporter   ~0011745

I'm guessing the issue has been corrected with the current update.

g0tmi1k

g0tmi1k

2020-12-01 10:41

administrator   ~0013811

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/downloads/)?
If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

Issue History

Date Modified Username Field Change
2019-12-18 21:51 JokerSob New Issue
2019-12-18 21:51 JokerSob File Added: Ekran görüntüsü_2019-12-19_00-32-05.png
2019-12-18 22:19 Balling Note Added: 0011712
2019-12-19 08:27 rhertzog Note Added: 0011717
2019-12-19 13:07 JokerSob File Added: Ekran görüntüsü_2019-12-19_15-45-54.png
2019-12-19 13:07 JokerSob Note Added: 0011722
2019-12-19 13:33 rhertzog Note Added: 0011723
2019-12-19 14:18 JokerSob Note Added: 0011724
2019-12-19 15:31 rhertzog Note Added: 0011725
2019-12-19 15:32 rhertzog Summary Update/Upgrade Problem => apt update is blocking since command-not-found has been installed
2019-12-19 16:44 JokerSob File Added: Ekran görüntüsü_2019-12-19_19-22-41.png
2019-12-19 16:44 JokerSob File Added: Ekran görüntüsü_2019-12-19_19-24-19.png
2019-12-19 16:44 JokerSob File Added: Ekran görüntüsü_2019-12-19_19-43-45.png
2019-12-19 16:44 JokerSob Note Added: 0011726
2019-12-19 19:40 JokerSob Note Added: 0011727
2019-12-19 21:29 JokerSob File Added: Ekran görüntüsü_2019-12-20_00-25-26.png
2019-12-19 21:29 JokerSob Note Added: 0011728
2019-12-19 21:32 Balling Note Added: 0011730
2019-12-20 23:18 JokerSob File Added: Ekran görüntüsü_2019-12-21_02-13-56.png
2019-12-20 23:18 JokerSob Note Added: 0011745
2020-12-01 10:41 g0tmi1k Note Added: 0013811
2020-12-01 10:41 g0tmi1k Status new => closed