View Issue Details

IDProjectCategoryView StatusLast Update
0008585Kali LinuxKali Package Bugpublic2024-02-22 13:37
Reporterbarebonescyber Assigned Tosbrun  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Fixed in Version2024.1 
Summary0008585: Kali Purple - DefectDojo APT Error
Description

Having an issue with a fresh VM of Purple from a freshly downloaded ISO. Destroyed VM and spun up fresh again just to confirm there were no other changes I made that were forgotten about, etc to ensure no user error on my part.

When running sudo apt update -y && apt upgrade, DefectDojo is failing to set up with the following result:

Setting up defectdojo (2.12.0-0kali3) ...
Traceback (most recent call last):
File "/usr/lib/defectdojo/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 123, in create
mod = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/dbbackup/apps.py", line 3, in <module>
from django.utils.translation import ugettextlazy as
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/init.py)
dpkg: error processing package defectdojo (--configure):
installed defectdojo package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
defectdojo
E: Sub-process /usr/bin/dpkg returned an error code (1)


From what I am able to find, "ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/init.py)" pops up because ugettext_lazy is deprecated and now superceded by 'gettext_lazy', and was listed as fixed in a commit in the django-Defect-Dojo Github on Dec 10, 2022 as shown here:

https://github.com/DefectDojo/django-DefectDojo/commit/9e7f20aa59c0eb3540e3eef538d641d08aeefae5

From my research, looks like the Django version on Debian / Kali got updated, and the django-Defect-Dojo package needs to be updated for the new Django version.

Relationships

related to 0008596 resolvedsbrun Upgrade Kali, defectdojo APT Error 

Activities

jlaurentino

jlaurentino

2024-01-15 08:57

reporter   ~0018789

Hello there:

I too am having troubles with defectdojo. It keeps apt update/upgrade from finalizing correcly; ending it with:

ImportError: cannot import name 'urlquote' from 'django.utils.http' (/usr/lib/python3/dist-packages/django/utils/http.py)
dpkg: error processing package defectdojo (--configure):
installed defectdojo package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of kali-tools-identify:
kali-tools-identify depends on defectdojo; however:
Package defectdojo is not configured yet.

dpkg: error processing package kali-tools-identify (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux-everything:
kali-linux-everything depends on kali-tools-identify; however:
Package kali-tools-identify is not configured yet.
kali-linux-everything depends on defectdojo; however:
Package defectdojo is not configured yet.

dpkg: error processing package kali-linux-everything (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
defectdojo
kali-tools-identify
kali-linux-everything
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

The system will work and any other update/install will work. We just do not have a graceful apt update/upgrade (so far).

sbrun

sbrun

2024-01-15 16:16

manager   ~0018792

We are working on the update of defectdojo.
We will let you know when the new version is available in kali.

jlaurentino

jlaurentino

2024-01-15 18:54

reporter   ~0018793

This might help on the troubleshooting (or not):

Before late last night (early this morning) any install would work fine. However, when attempting to install Ansible on a Kali Linux 2023.4 box, that install fails completely and Ansible won't work.

Best

P.S. As a newbie I had seen DefectDojo at GitHub and attempted to install from there. It did not work either (failed on the second entry suggested). Remember: newbie. Thanks.

cypherwolf

cypherwolf

2024-01-17 10:43

reporter   ~0018800

dpkg: error processing package kali-tools-identify (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
defectdojo
kali-tools-identify
E: Sub-process /usr/bin/dpkg returned an error code (1)

arthurcortesr

arthurcortesr

2024-01-17 20:05

reporter   ~0018802

I'm having a similar error but in my 'Kali Everything' when I make apt upgrade.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up defectdojo (2.12.0-0kali3) ...
Traceback (most recent call last):
File "/usr/lib/defectdojo/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/defectdojo/dojo/models.py", line 248, in <module>
class System_Settings(models.Model):
File "/usr/lib/defectdojo/dojo/models.py", line 497, in System_Settings
from dojo.middleware import System_Settings_Manager
File "/usr/lib/defectdojo/dojo/middleware.py", line 3, in <module>
from django.utils.http import urlquote
ImportError: cannot import name 'urlquote' from 'django.utils.http' (/usr/lib/python3/dist-packages/django/utils/
http.py)
dpkg: error processing package defectdojo (--configure):
installed defectdojo package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of kali-tools-identify:
kali-tools-identify depends on defectdojo; however:
Package defectdojo is not configured yet.

dpkg: error processing package kali-tools-identify (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux-everything:
kali-linux-everything depends on kali-tools-identify; however:
Package kali-tools-identify is not configured yet.
kali-linux-everything depends on defectdojo; however:
Package defectdojo is not configured yet.

dpkg: error processing package kali-linux-everything (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
defectdojo
kali-tools-identify
kali-linux-everything
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

jlaurentino

jlaurentino

2024-01-18 00:00

reporter   ~0018803

Hello all:

I do not know if this is of help or not but similar situation happened when setting up a ubuntu 22.04.3 server with elasticreality.

I got similar error (broken apt upgrade) with the same final line.

The answer was an ENVIRONMENT VARIABLE. In this case, it wanted ES_JAVA_HOME instead of just JAVA_HOME.

My kali linux 2203.4 continues to give me a broken apt.

If I can help in any way to troubleshoot the issue, please let me know.

sbrun

sbrun

2024-01-18 16:19

manager   ~0018808

I have uploaded a new version of defectdojo in kali-dev: 2.30.2-0kali2.
It will be available in few hours on all the mirrors but only in kali-dev for tests.

FTR the main issue was caused by the new python3-django version.

jlaurentino

jlaurentino

2024-01-18 21:17

reporter   ~0018810

Thanks SBRUN!

Hopefully it will be available all around some time soon.

Best,

Laurentino

jlaurentino

jlaurentino

2024-01-18 21:27

reporter   ~0018811

Hello SBRUN:

I have a bare metal Kali Linux 2023.4. This is the one giving me problems with the defectdojo. This is the only "machine" that has 2023.4 installed fresh (a couple of weeks ago).

So, I would be more than glad to try the fix out if I could. Feel free to e-mail me the file and instructions on how to replace it on a Kali Rolling machine.

Best,

Laurentino

sbrun

sbrun

2024-01-19 12:58

manager   ~0018814

The version 2.30.2-0kali4 is in kali-rolling.

Please run 'apt update' before trying to update / install defectdojo. Check that the version of defectodojo is 2.30.2-0kali4.

arthurcortesr

arthurcortesr

2024-01-19 15:45

reporter   ~0018816

Today I updated the Kali everything, and everything goes right.

apt update
apt full-upgrade -y

No errors anymore, thanks for the fix.

jlaurentino

jlaurentino

2024-01-19 20:51

reporter   ~0018817

Fantastic SBRUN!:

It worked fine. I do not run full-upgrade.

My usual line is:

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && if [ $? -ne 0 ]; then echo 'something went wrong';else echo 'all good';fi

Yes, it did load 2.30-2-0kali4 but, ....

defectdojo-celerybeat.service is a disabled or a static unit not running, not starting it.
defectdojo-celeryworker.service is a disabled or a static unit not running, not starting it.
defectdojo-uwsgi.service is a disabled or a static unit not running, not starting it.
defectdojo.service is a disabled or a static unit not running, not starting it.

which if fine. You guys probably just did not want to open a can or worms.

I went ahead and

sudo systemctl start defectodojo

run it from the GUI menu

it took about 2-3 minutes to setup up and ran just fine.

At the prompt, it did inform the username (admin) and the password(.....).

Running on port 42003 in my case and it did run.

Great; this has been a fantastic experience.

Best,

Laurentino

statistic

statistic

2024-01-19 21:20

reporter   ~0018818

Same error just now:

┌──(root㉿kali)-[/home/dev]
└─# apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 https://packages.microsoft.com/repos/edge stable InRelease
Hit:4 https://pkg.cloudflareclient.com jammy InRelease
Hit:3 http://mirrors.netix.net/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

┌──(root㉿kali)-[/home/dev]
└─# apt full-upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up defectdojo (2.30.2-0kali4) ...
[19/Jan/2024 21:19:36] INFO [dojo.models:4295] enabling audit logging
Traceback (most recent call last):
File "/usr/lib/defectdojo/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/defectdojo/dojo/models.py", line 4307, in <module>
from dojo.utils import calculate_grade, to_str_typed
File "/usr/lib/defectdojo/dojo/utils.py", line 28, in <module>
from dojo.github import add_external_issue_github, update_external_issue_github, close_external_issue_github, reopen_external_issue_github
File "/usr/lib/defectdojo/dojo/github.py", line 6, in <module>
from github import Github
File "/usr/lib/python3/dist-packages/github/init.py", line 57, in <module>
from .MainClass import Github
File "/usr/lib/python3/dist-packages/github/MainClass.py", line 105, in <module>
class Github:
File "/usr/lib/python3/dist-packages/github/MainClass.py", line 112, in Github
default_retry = GithubRetry()
^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/github/GithubRetry.py", line 74, in init
kwargs["allowed_methods"] = kwargs.get("allowed_methods", Retry.DEFAULT_ALLOWED_METHODS.union({"GET", "POST"}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Retry' has no attribute 'DEFAULT_ALLOWED_METHODS'
dpkg: error processing package defectdojo (--configure):
installed defectdojo package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
defectdojo
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

┌──(root㉿kali)-[/home/dev]
└─#

jlaurentino

jlaurentino

2024-01-21 11:27

reporter   ~0018821

Hello all:

Nothing to report here.

Why 'full-upgrade'?

Why not just

udo apt update && sudo apt upgrade -y && sudo apt autoremove -y

Best,

Laurentino
P.S. Chances are that the sources-list have something misconfigured.

statistic

statistic

2024-01-22 09:24

reporter   ~0018823

same error in apt upgrade or apt full-upgrade

jlaurentino

jlaurentino

2024-01-22 10:51

reporter   ~0018824

Hello all:

Just for documentation purposes: I just ran my apt update/upgrade command and found no errors.

Statistic: your error reports the file

File "/usr/lib/defectdojo/manage.py", line 11, in <module>

having an error in line 11.

My manage.py file has the following lines

!/usr/bin/env python
import os
import sys

if name == "main":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dojo.settings.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

Check/update yours and re-run the apt update/upgrade command. You might want to delete everything in the file and re-write it. There are chances that, somehow, a strange/special character were introduced in your file.

Just a troubleshooting suggestion here.

Best,

Laurentino

jlaurentino

jlaurentino

2024-01-22 10:52

reporter   ~0018825

image.png (60,451 bytes)   
image.png (60,451 bytes)   
statistic

statistic

2024-01-22 12:01

reporter   ~0018826

mine looks exactly the same... any other toughs?

sbrun

sbrun

2024-01-22 13:24

manager   ~0018827

@statistic the trace mentions an error in python3-github: an AttributeError ('Retry' has no attribute 'DEFAULT_ALLOWED_METHODS').

Can you check which versions of python3-github and python3-urllib3 are installed?

I think you don't have the correct version of urllib3 or maybe you have another version installed in the PYTHONPATH (maybe in /usr/local?)

statistic

statistic

2024-01-22 13:45

reporter   ~0018828

python3-github is already the newest version (2.1.1-1)
python3-urllib3 is already the newest version (1.26.18-1)

┌──(root㉿kali)-[/home/dev]
└─# ls -la /usr/lib
total 45780
drwxr-xr-x 176 root root 12288 Jan 22 11:23 .
drwxr-xr-x 16 root root 4096 Dec 21 10:46 ..
drwxr-xr-x 2 root root 4096 Dec 21 10:34 afl
drwxr-xr-x 6 root root 4096 Dec 21 10:35 android-sdk
drwxr-xr-x 3 root root 4096 Dec 21 10:32 apache2
drwxr-xr-x 2 root root 4096 Dec 21 10:35 apg
drwxr-xr-x 2 root root 4096 Jan 8 14:17 apparmor
drwxr-xr-x 5 root root 4096 Jan 16 16:56 apt
drwxr-xr-x 2 root root 4096 Dec 21 11:18 arpwatch
drwxr-xr-x 3 root root 16384 Jan 8 14:17 aspell
drwxr-xr-x 2 root root 4096 Dec 21 11:19 bfd-plugins
drwxr-xr-x 2 root root 4096 Jan 4 10:45 binfmt.d
drwxr-xr-x 2 root root 4096 Jan 19 12:24 binfmt-support
drwxr-xr-x 5 root root 4096 Dec 21 10:36 bloodhound
drwxr-xr-x 2 root root 4096 Jan 5 09:59 blt2.5
drwxr-xr-x 2 root root 20480 Dec 21 10:37 brutesharkcli
drwxr-xr-x 2 root root 4096 Oct 19 13:56 cgi-bin
drwxr-xr-x 2 root root 4096 Jan 8 14:18 chkrootkit
drwxr-xr-x 3 root root 4096 Jan 17 13:24 chromium
drwxr-xr-x 8 root root 4096 Dec 21 10:33 clang
drwxr-xr-x 3 root root 4096 Dec 21 10:38 cli
drwxr-xr-x 3 root root 4096 Dec 21 10:38 cloud-enum
drwxr-xr-x 4 root root 4096 Dec 21 10:43 cmake
lrwxrwxrwx 1 root root 40 May 22 2023 cnf-update-db -> ../share/command-not-found/cnf-update-db
drwxr-xr-x 5 root root 4096 Dec 21 10:38 code-oss
lrwxrwxrwx 1 root root 44 May 22 2023 command-not-found -> ../share/command-not-found/command-not-found
drwxr-xr-x 2 root root 4096 Jan 18 14:59 compat-ld
drwxr-xr-x 3 root root 4096 Dec 21 10:38 compel
drwxr-xr-x 2 root root 4096 Dec 21 10:27 console-setup
lrwxrwxrwx 1 root root 21 Aug 11 21:13 cpp -> /etc/alternatives/cpp
drwxr-xr-x 2 root root 4096 Jan 8 14:18 Crack
drwxr-xr-x 3 root root 4096 Dec 21 10:38 criu
drwxr-xr-x 4 root root 4096 Jan 8 14:18 cryptsetup
drwxr-xr-x 2 root root 4096 Dec 21 10:38 cryptsetup-nuke-password
drwxr-xr-x 3 root root 4096 Dec 21 10:40 cups
drwxr-xr-x 8 root root 4096 Jan 18 10:34 dbeaver
drwxr-xr-x 2 root root 4096 Jan 8 14:17 dbus-1.0
drwxr-xr-x 2 root root 4096 Dec 21 10:38 ddrescue
drwxr-xr-x 2 root root 4096 Dec 21 10:38 de4dot
drwxr-xr-x 3 root root 4096 Dec 21 10:35 debug
drwxr-xr-x 5 root root 4096 Jan 22 14:38 defectdojo
drwxr-xr-x 2 root root 4096 Jan 10 12:25 dkms
drwxr-xr-x 3 root root 4096 Dec 21 10:26 dpkg
drwxr-xr-x 13 root root 4096 Dec 21 10:39 dradis
drwxr-xr-x 3 root root 4096 Dec 21 10:39 eaphammer
drwxr-xr-x 3 root root 4096 Dec 21 10:43 eclipse
drwxr-xr-x 3 root root 4096 Dec 21 10:36 emacsen-common
drwxr-xr-x 2 root root 4096 Jan 15 21:24 environment.d
drwxr-xr-x 2 root root 4096 Dec 27 10:45 ettercap
drwxr-xr-x 7 root root 4096 Dec 21 10:40 evolution-data-server
drwxr-xr-x 2 root root 4096 Jan 9 20:37 exim4
drwxr-xr-x 2 root root 4096 Jan 8 14:17 file
drwxr-xr-x 6 root root 4096 Dec 27 10:45 firefox-esr
drwxr-xr-x 3 root root 4096 Dec 21 10:45 firewalld
drwxr-xr-x 55 root root 20480 Jan 8 14:18 firmware
drwxr-xr-x 2 root root 4096 Dec 21 10:41 freeradius
drwxr-xr-x 2 root root 4096 Dec 21 10:41 freeradius-wpe
drwxr-xr-x 2 root root 4096 Dec 21 11:18 galera
drwxr-xr-x 5 root root 4096 Dec 21 10:35 gcc
drwxr-xr-x 2 root root 4096 Jan 6 10:07 girepository-1.0
drwxr-xr-x 3 root root 24576 Dec 21 11:20 git-core
drwxr-xr-x 3 root root 4096 Dec 21 10:49 gnome-settings-daemon-3.0
drwxr-xr-x 2 root root 4096 Jan 10 12:25 gnome-settings-daemon-45
drwxr-xr-x 3 root root 4096 Jan 9 11:57 gnome-shell
drwxr-xr-x 2 root root 4096 Dec 21 10:42 gnome-tweak-tool
drwxr-xr-x 2 root root 4096 Jan 8 21:23 gnupg
drwxr-xr-x 2 root root 4096 Jan 8 21:23 gnupg2
drwxr-xr-x 2 root root 4096 Dec 21 10:43 GNUstep
lrwxrwxrwx 1 root root 7 Aug 16 06:04 go -> go-1.21
drwxr-xr-x 4 root root 4096 Jan 15 11:20 go-1.21
drwxr-xr-x 2 root root 4096 Jan 18 14:59 gold-ld
drwxr-xr-x 5 root root 4096 Dec 21 10:43 gophish
drwxr-xr-x 3 root root 4096 Dec 21 10:36 GraphicsMagick-1.3.42
drwxr-xr-x 3 root root 4096 Dec 21 10:34 groff
drwxr-xr-x 3 root root 4096 Dec 21 11:06 grub
drwxr-xr-x 2 root root 4096 Jan 15 11:20 gvfs
drwxr-xr-x 2 root root 4096 Dec 21 10:44 hamster-sidejack
drwxr-xr-x 3 root root 4096 Dec 21 10:44 hashcat
drwxr-xr-x 2 root root 4096 Dec 21 10:44 hashcat-utils
drwxr-xr-x 2 root root 4096 Dec 21 10:44 hdparm
drwxr-xr-x 29 root root 36864 Jan 22 11:19 i386-linux-gnu
drwxr-xr-x 2 root root 4096 Dec 21 10:27 ifupdown
drwxr-xr-x 2 root root 4096 Jan 6 10:07 init
drwxr-xr-x 2 root root 4096 Dec 21 10:27 iproute2
drwxr-xr-x 3 root root 4096 Jan 8 21:19 ipsec
drwxr-xr-x 3 root root 4096 Dec 21 10:44 ipxe
drwxr-xr-x 2 root root 4096 Dec 21 10:36 ispell
drwxr-xr-x 2 root root 4096 Dec 21 10:35 java-wrappers
drwxr-xr-x 2 root root 4096 Dec 21 10:43 jni
drwxr-xr-x 2 root root 4096 Dec 21 11:21 john
drwxr-xr-x 4 root root 4096 Jan 1 12:27 joplin
drwxr-xr-x 5 root root 4096 Jan 22 11:19 jvm
drwxr-xr-x 4 root root 4096 Dec 21 10:49 kali_tweaks
drwxr-xr-x 3 root root 4096 Jan 15 21:24 kernel
drwxr-xr-x 3 root root 4096 Dec 21 10:27 klibc
-rwxr-xr-x 1 root root 74688 Oct 24 19:11 klibc-D67x9cQZJoe6j863VWhTpYmFGDU.so
lrwxrwxrwx 1 root root 28 Oct 3 20:14 ld-linux.so.2 -> i386-linux-gnu/ld-linux.so.2
lrwxrwxrwx 1 root root 14 Aug 23 2020 libadns.so.1 -> libadns.so.1.6
-rw-r--r-- 1 root root 117880 Aug 23 2020 libadns.so.1.6
lrwxrwxrwx 1 root root 22 Dec 22 08:17 libarmadillo.so.12 -> libarmadillo.so.12.6.7
-rw-r--r-- 1 root root 69480 Dec 22 08:17 libarmadillo.so.12.6.7
-rw-r--r-- 1 root root 1513760 Dec 15 12:10 libBLT.2.5.so.8.6
-rw-r--r-- 1 root root 329840 Dec 15 12:10 libBLTlite.2.5.so.8.6
-rw-r--r-- 1 root root 2408262 Oct 9 15:39 libCatch2.a
-rw-r--r-- 1 root root 3796 Oct 9 15:39 libCatch2Main.a
lrwxrwxrwx 1 root root 17 Jun 13 2023 libdfalt.so.0 -> libdfalt.so.0.0.0
-rw-r--r-- 1 root root 516016 Jun 13 2023 libdfalt.so.0.0.0
lrwxrwxrwx 1 root root 21 Feb 27 2023 libdislocker.so -> libdislocker.so.0.7.2
lrwxrwxrwx 1 root root 21 Feb 27 2023 libdislocker.so.0.7 -> libdislocker.so.0.7.2
-rw-r--r-- 1 root root 116656 Feb 27 2023 libdislocker.so.0.7.2
-rw-r--r-- 1 root root 76936 Jan 11 2023 libdlrpc.so
lrwxrwxrwx 1 root root 16 Dec 19 23:25 libettercap.so -> libettercap.so.0
lrwxrwxrwx 1 root root 22 Dec 19 23:25 libettercap.so.0 -> libettercap.so.0.8.3.1
-rw-r--r-- 1 root root 388648 Dec 19 23:25 libettercap.so.0.8.3.1
lrwxrwxrwx 1 root root 19 Dec 19 23:25 libettercap-ui.so -> libettercap-ui.so.0
lrwxrwxrwx 1 root root 25 Dec 19 23:25 libettercap-ui.so.0 -> libettercap-ui.so.0.8.3.1
-rw-r--r-- 1 root root 156216 Dec 19 23:25 libettercap-ui.so.0.8.3.1
-rw-r--r-- 1 root root 18552 Jan 26 2023 libfindrtp.so
-rw-r--r-- 1 root root 3182212 Dec 7 2020 libfxscintilla.a
-rw-r--r-- 1 root root 962 Dec 7 2020 libfxscintilla.la
lrwxrwxrwx 1 root root 24 Dec 7 2020 libfxscintilla.so.20 -> libfxscintilla.so.20.3.0
-rw-r--r-- 1 root root 1886232 Dec 7 2020 libfxscintilla.so.20.3.0
-rw-r--r-- 1 root root 2433512 Dec 18 16:41 libgalera_smm.so
lrwxrwxrwx 1 root root 19 Jan 11 2023 libgdiplus.so -> libgdiplus.so.0.0.0
lrwxrwxrwx 1 root root 19 Jan 11 2023 libgdiplus.so.0 -> libgdiplus.so.0.0.0
-rw-r--r-- 1 root root 531216 Jan 11 2023 libgdiplus.so.0.0.0
lrwxrwxrwx 1 root root 25 Jan 8 03:41 libgnustep-base.so.1.29 -> libgnustep-base.so.1.29.0
-rw-r--r-- 1 root root 6996368 Jan 8 03:41 libgnustep-base.so.1.29.0
lrwxrwxrwx 1 root root 31 Sep 24 17:35 libGraphicsMagick-Q16.so.3 -> libGraphicsMagick-Q16.so.3.24.4
-rw-r--r-- 1 root root 3101704 Sep 24 17:35 libGraphicsMagick-Q16.so.3.24.4
lrwxrwxrwx 1 root root 34 Sep 24 17:35 libGraphicsMagickWand-Q16.so.2 -> libGraphicsMagickWand-Q16.so.2.9.8
-rw-r--r-- 1 root root 194400 Sep 24 17:35 libGraphicsMagickWand-Q16.so.2.9.8
lrwxrwxrwx 1 root root 20 May 6 2020 libguytools.so.2 -> libguytools.so.2.1.0
-rw-r--r-- 1 root root 72424 May 6 2020 libguytools.so.2.1.0
lrwxrwxrwx 1 root root 22 Nov 21 11:25 libgvm-pg-server.so -> libgvm-pg-server.so.23
lrwxrwxrwx 1 root root 26 Nov 21 11:25 libgvm-pg-server.so.23 -> libgvm-pg-server.so.23.1.0
-rw-r--r-- 1 root root 38896 Nov 21 11:25 libgvm-pg-server.so.23.1.0
lrwxrwxrwx 1 root root 27 Jul 29 2019 libhardsid-builder.so.0 -> libhardsid-builder.so.0.0.1
-rw-r--r-- 1 root root 22856 Jul 29 2019 libhardsid-builder.so.0.0.1
-rw-r--r-- 1 root root 77958 Jan 6 2023 libhotpatch.a
-rw-r--r-- 1 root root 51576 Jan 6 2023 libhotpatch.so
-rw-r--r-- 1 root root 13800 Jan 6 2023 libhotpatchtest.so
lrwxrwxrwx 1 root root 20 Jun 13 2023 libmfhdfalt.so.0 -> libmfhdfalt.so.0.0.0
-rw-r--r-- 1 root root 161888 Jun 13 2023 libmfhdfalt.so.0.0.0
lrwxrwxrwx 1 root root 17 Sep 6 15:03 libmono-2.0.a -> libmonosgen-2.0.a
lrwxrwxrwx 1 root root 18 Sep 6 15:03 libmono-2.0.so -> libmonosgen-2.0.so
-rw-r--r-- 1 root root 1582736 Sep 6 15:03 libmono-btls-shared.so
lrwxrwxrwx 1 root root 23 Sep 6 15:03 libmono-native.so -> libmono-native.so.0.0.0
lrwxrwxrwx 1 root root 23 Sep 6 15:03 libmono-native.so.0 -> libmono-native.so.0.0.0
-rw-r--r-- 1 root root 784528 Sep 6 15:03 libmono-native.so.0.0.0
-rw-r--r-- 1 root root 296856 Sep 6 15:03 libMonoPosixHelper.so
-rw-r--r-- 1 root root 9911520 Sep 6 15:03 libmonosgen-2.0.a
lrwxrwxrwx 1 root root 24 Sep 6 15:03 libmonosgen-2.0.so -> libmonosgen-2.0.so.1.0.0
lrwxrwxrwx 1 root root 24 Sep 6 15:03 libmonosgen-2.0.so.1 -> libmonosgen-2.0.so.1.0.0
-rw-r--r-- 1 root root 4837600 Sep 6 15:03 libmonosgen-2.0.so.1.0.0
-rw-r--r-- 1 root root 157608 Sep 6 15:03 libMonoSupportW.so
lrwxrwxrwx 1 root root 14 Dec 1 2022 libogdi.so.4 -> libogdi.so.4.1
-rw-r--r-- 1 root root 113096 Dec 1 2022 libogdi.so.4.1
lrwxrwxrwx 1 root root 21 Dec 19 15:10 libopenvas_misc.so -> libopenvas_misc.so.22
lrwxrwxrwx 1 root root 25 Dec 19 15:10 libopenvas_misc.so.22 -> libopenvas_misc.so.22.7.9
-rw-r--r-- 1 root root 96264 Dec 19 15:10 libopenvas_misc.so.22.7.9
lrwxrwxrwx 1 root root 21 Dec 19 15:10 libopenvas_nasl.so -> libopenvas_nasl.so.22
lrwxrwxrwx 1 root root 25 Dec 19 15:10 libopenvas_nasl.so.22 -> libopenvas_nasl.so.22.7.9
-rw-r--r-- 1 root root 520456 Dec 19 15:10 libopenvas_nasl.so.22.7.9
lrwxrwxrwx 1 root root 12 Jul 9 2023 libpe.so -> libpe.so.1.0
lrwxrwxrwx 1 root root 12 Jul 9 2023 libpe.so.1 -> libpe.so.1.0
-rw-r--r-- 1 root root 366512 Jul 9 2023 libpe.so.1.0
lrwxrwxrwx 1 root root 19 Dec 16 2020 libqwt-qt5.so.6 -> libqwt-qt5.so.6.1.4
lrwxrwxrwx 1 root root 19 Dec 16 2020 libqwt-qt5.so.6.1 -> libqwt-qt5.so.6.1.4
-rw-r--r-- 1 root root 1399112 Dec 16 2020 libqwt-qt5.so.6.1.4
lrwxrwxrwx 1 root root 17 Feb 2 2021 libregfi.so.1 -> libregfi.so.1.0.1
-rw-r--r-- 1 root root 75720 Feb 2 2021 libregfi.so.1.0.1
lrwxrwxrwx 1 root root 25 Jul 29 2019 libresid-builder.so.0 -> libresid-builder.so.0.0.1
-rw-r--r-- 1 root root 187712 Jul 29 2019 libresid-builder.so.0.0.1
lrwxrwxrwx 1 root root 20 Jul 29 2019 libsidplay2.so.1 -> libsidplay2.so.1.0.1
-rw-r--r-- 1 root root 262240 Jul 29 2019 libsidplay2.so.1.0.1
-rw-r--r-- 1 root root 22272 Dec 25 09:29 libsupp.a
lrwxrwxrwx 1 root root 13 Dec 1 2022 libvpf.so.4 -> libvpf.so.4.1
-rw-r--r-- 1 root root 260368 Dec 1 2022 libvpf.so.4.1
lrwxrwxrwx 1 root root 21 Sep 6 13:28 libzopflipng.so.1 -> libzopflipng.so.1.0.3
-rw-r--r-- 1 root root 241480 Sep 6 13:28 libzopflipng.so.1.0.3
lrwxrwxrwx 1 root root 18 Sep 6 13:28 libzopfli.so.1 -> libzopfli.so.1.0.3
-rw-r--r-- 1 root root 63960 Sep 6 13:28 libzopfli.so.1.0.3
drwxr-xr-x 2 root root 4096 Jan 2 10:34 lighttpd
drwxr-xr-x 3 root root 4096 Dec 21 11:05 linux-boot-probes
drwxr-xr-x 5 root root 4096 Dec 21 10:50 linux-kbuild-6.5.0-kali3
drwxr-xr-x 7 root root 4096 Dec 21 10:50 llvm-14
drwxr-xr-x 7 root root 4096 Dec 21 10:50 llvm-15
drwxr-xr-x 7 root root 4096 Dec 21 10:51 llvm-16
drwxr-xr-x 3 root root 4096 Dec 21 11:19 llvm-17
drwxr-xr-x 502 root root 20480 Dec 21 10:52 locale
drwxr-xr-x 3 root root 4096 Jan 6 10:07 lsb
drwxr-xr-x 2 root root 4096 Jan 18 10:34 man-db
drwxr-xr-x 5 root root 4096 Dec 21 11:22 mc
drwxr-xr-x 2 root root 4096 Dec 21 10:48 merlin
drwxr-xr-x 3 root root 4096 Dec 21 10:33 mime
drwxr-xr-x 2 root root 4096 Jan 17 13:24 modprobe.d
drwxr-xr-x 3 root root 4096 Dec 21 10:27 modules
drwxr-xr-x 2 root root 4096 Jan 8 14:18 modules-load.d
drwxr-xr-x 23 root root 4096 Dec 21 11:03 mono
drwxr-xr-x 2 root root 4096 Dec 21 10:48 mono-source-libs
drwxr-xr-x 5 root root 4096 Dec 21 10:41 mozilla
drwxr-xr-x 3 root root 4096 Dec 21 10:33 mysql
drwxr-xr-x 2 root root 4096 Dec 21 11:23 needrestart
drwxr-xr-x 2 root root 4096 Dec 21 10:46 netwib
drwxr-xr-x 6 root root 4096 Dec 21 11:23 NetworkManager
drwxr-xr-x 3 root root 4096 Dec 26 10:54 nix
drwxr-xr-x 3 root root 4096 Dec 21 10:50 ogdi
drwxr-xr-x 2 root root 4096 Jan 6 10:07 openssh
drwxr-xr-x 2 root root 4096 Dec 21 10:38 openvpn
drwxr-xr-x 3 root root 4096 Dec 21 10:35 oracle
drwxr-xr-x 2 root root 4096 Dec 21 11:05 os-prober
drwxr-xr-x 4 root root 4096 Dec 21 11:05 os-probes
-rw-r--r-- 1 root root 279 Nov 28 06:16 os-release
drwxr-xr-x 2 root root 4096 Dec 21 10:40 p7zip
drwxr-xr-x 2 root root 4096 Jan 15 21:24 pam.d
drwxr-xr-x 2 root root 4096 Dec 21 10:45 passing-the-hash
drwxr-xr-x 5 root root 4096 Jan 15 21:24 pcrlock.d
drwxr-xr-x 3 root root 4096 Dec 21 10:34 pcsc
drwxr-xr-x 3 root root 4096 Dec 21 10:46 pev
drwxr-xr-x 4 root root 4096 Dec 21 10:34 php
drwxr-xr-x 2 root root 4096 Dec 21 10:48 pkgconfig
drwxr-xr-x 4 root root 4096 Dec 21 10:44 pm-utils
drwxr-xr-x 2 root root 4096 Dec 21 10:37 policykit-1
drwxr-xr-x 2 root root 4096 Dec 21 10:37 polkit-1
drwxr-xr-x 3 root root 4096 Dec 21 10:35 postgresql
drwxr-xr-x 3 root root 4096 Dec 21 10:45 pppd
drwxr-xr-x 4 root root 4096 Dec 21 10:47 proxmark3
drwxr-xr-x 26 root root 20480 Dec 21 10:56 python2.7
drwxr-xr-x 3 root root 4096 Dec 21 10:33 python3
drwxr-xr-x 36 root root 20480 Dec 23 10:40 python3.11
drwxr-xr-x 35 root root 12288 Jan 4 10:45 python3.12
drwxr-xr-x 2 root root 4096 Dec 21 10:51 qemu
drwxr-xr-x 3 root root 4096 Dec 21 10:43 qt5
drwxr-xr-x 4 root root 4096 Dec 21 10:43 qt6
drwxr-xr-x 2 root root 4096 Dec 21 10:51 realmd
drwxr-xr-x 4 root root 4096 Dec 21 10:46 regripper
drwxr-xr-x 3 root root 4096 Dec 21 10:39 resolvconf
drwxr-xr-x 4 root root 4096 Dec 21 10:47 rizin
drwxr-xr-x 5 root root 4096 Dec 21 11:24 rpm
drwxr-xr-x 5 root root 4096 Dec 21 10:35 ruby
drwxr-xr-x 2 root root 4096 Jan 22 11:20 runit-helper
drwxr-xr-x 2 root root 4096 Nov 11 23:17 sasl2
lrwxrwxrwx 1 root root 13 Jan 6 08:48 sendmail -> ../sbin/exim4
lrwxrwxrwx 1 root root 19 Dec 21 18:07 sftp-server -> openssh/sftp-server
drwxr-xr-x 2 root root 4096 Dec 21 10:46 sniffjoke
drwxr-xr-x 2 root root 4096 Jan 8 21:19 speech-dispatcher-modules
drwxr-xr-x 3 root root 4096 Jan 6 10:07 ssl
drwxr-xr-x 2 root root 4096 Jan 15 21:24 sysctl.d
drwxr-xr-x 2 root root 4096 Jan 12 17:05 sysstat
drwxr-xr-x 16 root root 12288 Jan 15 21:24 systemd
drwxr-xr-x 2 root root 4096 Jan 22 11:19 sysusers.d
drwxr-xr-x 4 root root 4096 Dec 21 10:28 tasksel
drwxr-xr-x 3 root root 4096 Dec 21 10:34 tcltk
drwxr-xr-x 9 root root 4096 Dec 21 10:47 tiger
drwxr-xr-x 2 root root 4096 Jan 22 11:19 tmpfiles.d
drwxr-xr-x 4 root root 4096 Jan 17 13:25 udev
drwxr-xr-x 2 root root 4096 Jan 17 13:24 udisks2
drwxr-xr-x 4 root root 4096 Dec 21 10:46 unicornscan
drwxr-xr-x 3 root root 4096 Dec 21 10:49 unity-settings-daemon-1.0
drwxr-xr-x 3 root root 4096 Jan 22 11:23 uwsgi
drwxr-xr-x 2 root root 4096 Dec 21 22:49 valgrind
drwxr-xr-x 3 root root 4096 Jan 20 11:13 w3m
drwxr-xr-x 2 root root 4096 Aug 18 11:21 websockify
drwxr-xr-x 2 root root 4096 Dec 26 01:58 wine
drwxr-xr-x 2 root root 4096 Dec 21 10:49 wpa-sycophant
drwxr-xr-x 4 root root 4096 Dec 21 10:46 X11
drwxr-xr-x 160 root root 151552 Jan 22 11:19 x86_64-linux-gnu
drwxr-xr-x 2 root root 4096 Dec 21 10:47 xmount
drwxr-xr-x 3 root root 4096 Jan 3 20:51 xorg
drwxr-xr-x 2 root root 4096 Dec 21 10:52 xserver-xorg-video-intel

┌──(root㉿kali)-[/home/dev]
└─#

statistic

statistic

2024-01-22 13:52

reporter   ~0018829

┌──(root㉿kali)-[/home/dev]
└─# python
Python 3.11.7 (main, Dec 8 2023, 14:22:46) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import sys
sys.path
['', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.11/dist-packages']

statistic

statistic

2024-01-25 10:25

reporter   ~0018854

any update on this issue?

statistic

statistic

2024-01-30 12:49

reporter   ~0018868

still no solution?

jlaurentino

jlaurentino

2024-01-30 13:33

reporter   ~0018869

Last edited: 2024-01-30 13:36

Hello statistic:

If you have a spare computer in which you could install everything from scratch, you could find out if it is your current computer or the installation updates/upgrades fault.

My updates/upgrades do work just fine (Kali everything 2023.4).

I keep a good log of what I install after installation and update/upgrades and keep a good housecleaning.

Whenever I find a brick wall like the one you are reporting, I just re-install from scratch and install the needed programs/applications according to my logs, and rsync my profile back in from either a backup (rsync out) or from the old drive I just replaced.

Also, take a look at "timeshift"; a snapshot application for baremetal installations.

Your problem; I believe, seems to be of your own making. That could be why there hasn't been any update on it.

Good luck!

Laurentino

image-2.png (12,796 bytes)   
image-2.png (12,796 bytes)   
statistic

statistic

2024-01-30 13:41

reporter   ~0018870

it is a clean install without any added software, just apt update and apt full-upgrade ... that is strange

jlaurentino

jlaurentino

2024-01-30 13:47

reporter   ~0018871

Just in case:

I had 36 packages not upgradable.

I ran sudo apt dist-upgrade and re-ran my usual update and here is the final result:

Best,

Laurentino

image-3.png (83,400 bytes)   
image-3.png (83,400 bytes)   
statistic

statistic

2024-01-30 13:50

reporter   ~0018872

maybe the problem is that i use kali with all tools included, the big iso file... but only have problem with this defectdojo, i have manualy removed its folder and now no problem with apt update/upgrade

Issue History

Date Modified Username Field Change
2024-01-10 16:26 barebonescyber New Issue
2024-01-15 08:57 jlaurentino Note Added: 0018789
2024-01-15 14:37 sbrun Assigned To => sbrun
2024-01-15 14:37 sbrun Status new => assigned
2024-01-15 16:16 sbrun Note Added: 0018792
2024-01-15 18:54 jlaurentino Note Added: 0018793
2024-01-17 10:43 cypherwolf Note Added: 0018800
2024-01-17 20:05 arthurcortesr Note Added: 0018802
2024-01-18 00:00 jlaurentino Note Added: 0018803
2024-01-18 16:11 sbrun Relationship added related to 0008596
2024-01-18 16:19 sbrun Note Added: 0018808
2024-01-18 21:17 jlaurentino Note Added: 0018810
2024-01-18 21:27 jlaurentino Note Added: 0018811
2024-01-19 12:58 sbrun Note Added: 0018814
2024-01-19 15:45 arthurcortesr Note Added: 0018816
2024-01-19 20:51 jlaurentino Note Added: 0018817
2024-01-19 21:20 statistic Note Added: 0018818
2024-01-21 11:27 jlaurentino Note Added: 0018821
2024-01-22 09:24 statistic Note Added: 0018823
2024-01-22 10:51 jlaurentino Note Added: 0018824
2024-01-22 10:52 jlaurentino Note Added: 0018825
2024-01-22 10:52 jlaurentino File Added: image.png
2024-01-22 12:01 statistic Note Added: 0018826
2024-01-22 12:01 statistic File Added: Screenshot from 2024-01-22 14-00-13.png
2024-01-22 13:24 sbrun Note Added: 0018827
2024-01-22 13:45 statistic Note Added: 0018828
2024-01-22 13:52 statistic Note Added: 0018829
2024-01-25 10:25 statistic Note Added: 0018854
2024-01-30 12:49 statistic Note Added: 0018868
2024-01-30 13:33 jlaurentino Note Added: 0018869
2024-01-30 13:33 jlaurentino File Added: image-2.png
2024-01-30 13:36 jlaurentino Note Edited: 0018869
2024-01-30 13:41 statistic Note Added: 0018870
2024-01-30 13:41 statistic File Added: Screenshot from 2024-01-30 15-39-48.png
2024-01-30 13:47 jlaurentino Note Added: 0018871
2024-01-30 13:47 jlaurentino File Added: image-3.png
2024-01-30 13:50 statistic Note Added: 0018872
2024-02-22 13:37 sbrun Status assigned => resolved
2024-02-22 13:37 sbrun Resolution open => fixed
2024-02-22 13:37 sbrun Fixed in Version => 2024.1