Parrot-update is broken

Since last week my Parrot will not upgrade anymore.

The issue seems to be with Windows components and resources.

Perhaps the easy fix is to chmod 777 the directories, but I doubt that it is the right fix.

Posting it here incase more users come accross this problem.

Preparing to unpack …/00-beef-xss_0.4.7.3-0kali2_all.deb …
Unpacking beef-xss (0.4.7.3-0kali2) over (0.4.7.1-0kali2) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/00-beef-xss_0.4.7.3-0kali2_all.deb (–unpack):
unable to open ‘/usr/share/beef-xss/modules/browser/avant_steal_history/command.js.dpkg-new’: No such file or directory
Preparing to unpack …/01-metasploit-framework_5.0.24-1parrot1_amd64.deb …
Unpacking metasploit-framework (5.0.24-1parrot1) over (5.0.18-1parrot1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/01-metasploit-framework_5.0.24-1parrot1_amd64.deb (–unpack):
unable to open ‘/usr/share/metasploit-framework/data/eicar.com.dpkg-new’: No such file or directory
Preparing to unpack …/02-mimikatz_2.2.0-git20190512-0kali2_all.deb …
Unpacking mimikatz (2.2.0-git20190512-0kali2) over (2.2.0-delegation-1parrot1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/02-mimikatz_2.2.0-git20190512-0kali2_all.deb (–unpack):
unable to open ‘/usr/share/windows-resources/mimikatz/Win32/mimidrv.sys.dpkg-new’: Operation not permitted
Preparing to unpack …/03-nishang_0.7.6-0kali2_all.deb …
Unpacking nishang (0.7.6-0kali2) over (0.7.6-0kali1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/03-nishang_0.7.6-0kali2_all.deb (–unpack):
unable to open ‘/usr/share/nishang/ActiveDirectory/Get-Unconstrained.ps1.dpkg-new’: No such file or directory
Preparing to unpack …/04-responder_2.3.3.9-0kali3_all.deb …
Unpacking responder (2.3.3.9-0kali3) over (2.3.3.9-0kali2) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/04-responder_2.3.3.9-0kali3_all.deb (–unpack):
unable to open ‘/usr/share/responder/tools/MultiRelay/bin/mimikatz.exe.dpkg-new’: Operation not permitted
Preparing to unpack …/05-shellter_7.1-0kali4_amd64.deb …
Unpacking shellter (7.1-0kali4) over (7.1-0kali1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/05-shellter_7.1-0kali4_amd64.deb (–unpack):
unable to open ‘/usr/share/windows-resources/shellter/shellcode_samples/calc.dpkg-new’: Operation not permitted
Preparing to unpack …/06-powersploit_2.2-1kali2_all.deb …
Unpacking powersploit (2.2-1kali2) over (2.2-1kali1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/06-powersploit_2.2-1kali2_all.deb (–unpack):
unable to open ‘/usr/share/windows-resources/powersploit/AntivirusBypass/Find-AVSignature.ps1.dpkg-new’: Operation not permitted
Preparing to unpack …/07-sbd_1.37-1kali3_amd64.deb …
Unpacking sbd (1.37-1kali3) over (1.37-1kali1) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/07-sbd_1.37-1kali3_amd64.deb (–unpack):
unable to open ‘/usr/share/windows-resources/sbd/sbd.exe.dpkg-new’: Operation not permitted
Preparing to unpack …/08-wce_1.42-beta-0kali2_all.deb …
Unpacking wce (1.42-beta-0kali2) over (1.42-beta-0kali0) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/08-wce_1.42-beta-0kali2_all.deb (–unpack):
unable to open ‘/usr/share/windows-resources/wce/getlsasrvaddr.exe.dpkg-new’: Operation not permitted
Preparing to unpack …/09-webshells_1.1+kali5_all.deb …
Unpacking webshells (1.1+kali5) over (1.1-0kali0) …
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/09-webshells_1.1+kali5_all.deb (–unpack):
unable to open ‘/usr/share/webshells/asp/cmd-asp-5.1.asp.dpkg-new’: Operation not permitted
Preparing to unpack …/10-windows-binaries_0.6.7_all.deb …
dpkg-maintscript-helper: error: file ‘/usr/share/windows-binaries/backdoors’ not owned by package ‘windows-binaries’
dpkg-maintscript-helper: error: file ‘/usr/share/windows-binaries/backdoors/sbd.exe’ not owned by package ‘windows-binaries’
dpkg-maintscript-helper: error: file ‘/usr/share/windows-binaries/backdoors/sbdbg.exe’ not owned by package ‘windows-binaries’
dpkg-maintscript-helper: error: directory ‘/usr/share/windows-binaries’ contains files not owned by package windows-binaries, cannot switch to symlink
dpkg: error processing archive /tmp/apt-dpkg-install-0CVNU5/10-windows-binaries_0.6.7_all.deb (–unpack):
new windows-binaries package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/tmp/apt-dpkg-install-0CVNU5/00-beef-xss_0.4.7.3-0kali2_all.deb
/tmp/apt-dpkg-install-0CVNU5/01-metasploit-framework_5.0.24-1parrot1_amd64.deb
/tmp/apt-dpkg-install-0CVNU5/02-mimikatz_2.2.0-git20190512-0kali2_all.deb
/tmp/apt-dpkg-install-0CVNU5/03-nishang_0.7.6-0kali2_all.deb
/tmp/apt-dpkg-install-0CVNU5/04-responder_2.3.3.9-0kali3_all.deb
/tmp/apt-dpkg-install-0CVNU5/05-shellter_7.1-0kali4_amd64.deb
/tmp/apt-dpkg-install-0CVNU5/06-powersploit_2.2-1kali2_all.deb
/tmp/apt-dpkg-install-0CVNU5/07-sbd_1.37-1kali3_amd64.deb
/tmp/apt-dpkg-install-0CVNU5/08-wce_1.42-beta-0kali2_all.deb
/tmp/apt-dpkg-install-0CVNU5/09-webshells_1.1+kali5_all.deb
/tmp/apt-dpkg-install-0CVNU5/10-windows-binaries_0.6.7_all.deb

Did you added kali repo??
BTW never give 777 permission ,

I have not added any repositories.

Actually giving not access of directory to sudo user
is bit :expressionless::taco:
Have you playes with chmod nnn?

Or given 777 to dpkg ?

BTW as system already fixed , Enjoy

Thanks for your response.

This Parrot is basicially a clean install of about 2mo old and bareley any use.

I have not changed any permissions or ownership relating to these files.

The issue still persists, upgrade will not finish.

The upgrade is broken in two parts. The missing files for beef and metasploit, and the operation not permitted errors for windows-resources and windows-binaries.

These last two directories are owned by root and have drwxr-xr-x.

Ohk, so trt to purge that packages & then
Parrot-upgrade

Been there done that.

apt remove windows-binaries --purge
dpkg --configure -a
parrot-upgrade (fails)
dpkg -i --force-overwrite /path/windows-binaries.deb (fails)
dpkg --reconfigure windows-binaries.deb (fails)
apt -f install
rm -rf /var/lib/apt/lists/partial/*
parrot-upgrade (fails)

None of these helped. Still getting Operation Not Permitted errors on the files mentioned above.

Operation not permitted mean, you mot going to get access

Try via root user and tell me

[USER WHICH VIEW POST IN FUTURE , YOU NEVER LOGIN AS ROOT, HERE I JUST WANT TO CHECK WHAT IS ACTUALLY ERROR

Logging in as root and then trying the upgrade did not yield any different results than running the upgrade as normal user with sudo.

Hi! We are very sorry about your problem. Looks like latest version of windows-binaries is conflict with your current version. Can you try:
sudo apt purge windows-binaries then sudo apt install windows-binaries?

You never log in as root
Ever.
Reinstall after reading the docs andd use

Sudo parrot-upgrade to update

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.