Hello, i'm fairly new to kali-linux, so I apologize for my lack of expertise.
I had installed Kali-Linux and Ubuntu successfully and updated everything. However, when installing Packages (I'd have the link for the list here but the forum said no) for Kali (only had the bare minimum of Kali installed) I came upon an issue, in every successive package un-met dependencies kept popping up that wouldn't be installed, no matter the package they would lead back to a package called 'set' that wouldn't install (its part of the kali-headless package install).
When trying to fix the install of 'set' this happens below.
It LOOKS like an issue with the archive not being in Debian format, but I'm honestly not sure what the actual issue is or how to fix it. I've tried re-installing 'headless' and associated packages, and searched online for the issue but came up with this issue happening for custom-packages in the file being 'broken'. Would love any advice anyone could provide or direct me to for this
└─# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
set
Suggested packages:
sendmail-bin
The following NEW packages will be installed:
set
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1393 not fully installed or removed.
Need to get 0 B/39.4 MB of archives.
After this operation, 50.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive signature
E: Internal error, could not locate member control.tar{.zst,.lz4,.gz,.xz,.bz2,.lzma,}
E: Prior errors apply to /var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
set seems indeed to be a broken/invalid deb package, cause the control file is missing. Try to remove it with dpkg -r set (dpkg doesn't resolve dependencies, apt takes care of that). If that works, run apt -f install once again.
I tried what you suggested, but returns with 'set' isn't even installed
dpkg: warning: ignoring request to remove set which isn't installed
I'm thinking of contacting the package creators of SET since I'm almost feeling its server side rather than client side, would love if someone could try installing SET themself and see if it works
Have done so, see the following, sorry for the delay been wrapped up with projects. I tried installing 'set' via the link @hicksd8 posted but did not solve the problem. Thanks for helping me with this @bendingrodriguez
rm -f /var/cache/apt/archives/set_*
┌──(roman㉿DESKTOP-QKJTF3S)-[/mnt/c/Users/roman/Documents/SEToolkit/setoolkit]
└─$ apt update && apt -d install set
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
┌──(roman㉿DESKTOP-QKJTF3S)-[/mnt/c/Users/roman/Documents/SEToolkit/setoolkit]
└─$ file /var/cache/apt/archives/set_*
/var/cache/apt/archives/set_*: cannot open `/var/cache/apt/archives/set_*' (No such file or directory)
┌──(roman㉿DESKTOP-QKJTF3S)-[/mnt/c/Users/roman/Documents/SEToolkit/setoolkit]
└─$ ls -l /var/cache/apt/archives/set_*
ls: cannot access '/var/cache/apt/archives/set_*': No such file or directory
┌──(roman㉿DESKTOP-QKJTF3S)-[/mnt/c/Users/roman/Documents/SEToolkit/setoolkit]
└─$
don't forget that you need root permissions for installing system wide stuff or for removing files in /var/cache/apt. So either become root via su - or use sudo.
Done, made sure to execute in root @bendingrodriguez I tried testing to see if 'set' was installed correctly by attempting to install kali-linux-headless but 'set' install still gave the same error as before
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# file /var/cache/apt/archives/set_*
/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb: writable, regular file, no read permission
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# ls -l /var/cache/apt/archives/set_*
-rw-r--r-- 1 root root 39411236 Oct 27 2020 /var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─#
Error came up for that cmd, you may be right to reinstall kali from scratch, but I'm unsure if it'll fix it though since I'm using the integrated linux bash for windows, open to trying, if you're not able to make sense of this output then I'll try reinstalling from scratch @bendingrodriguez
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# dpkg -i /var/cache/apt/archives/set_*
dpkg-deb: error: '/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# dpkg -l dpkg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii dpkg 1.21.1kali1 amd64 Debian package management system
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# dpkg-deb -c /var/cache/apt/archives/set_*
dpkg-deb: error: '/var/cache/apt/archives/set_8.0.3+git20200609-0kali2_all.deb' is not a Debian format archive
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# rgrep -i deb /etc/apparmor.d
┌──(root💀DESKTOP-QKJTF3S)-[~]
└─# strace -e trace=%file file /var/cache/apt/archives/set_*
Could not find command-not-found database. Run 'sudo apt update' to populate it.
strace: command not found
your system seems completely broken, sorry. It looks to me too laborious to fix, especially through this communication channel (means a written Q&A ping pong).
It doesn't recognize deb packages even though dpkg is up to date. And you write from bash for wind'ohs, so you have my condolences
Well, this is not really a forum for helping people on windows who try to run unix-based applications using things like the "integrated bash shell" on windows, etc. Running bash inside windows is not "unix or linux".
If you want to install and run kali, I suggest you should NOT run this in windows. Use a proper linux system.
If you want to run windows,, then I think it is best to seek help from "windows people". Google is your friend.
install kali on windows
I'm closing this topic,
Please post back when you are using a unix or linux system.
All windows operating systems are "completely broken" by definition
This is the world's oldest unix and linux forums for people who are using unix and linux which are much superior operating systems (and much more secure) compared to windows