2

I have a problem with installing kali-themes package on Kali Linux. The error I get is the following:

eaving 'diversion of /etc/xdg/xfce4/panel/default.xml to /etc/xdg/xfce4/panel/default.xml.original by kali-
themes'
dpkg-divert: error: unknown option --no-rename

Use --help for help about diverting files.
dpkg: error processing archive /var/cache/apt/archives/kali-themes_2020.1.0_all.deb (--unpack):
 new kali-themes package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/kali-themes_2020.1.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any thougths ?

2

Solved here, that's what i did :

  1. First, create a new directory and extract the .deb there

    mkdir tmp
    dpkg-deb -R /var/cache/apt/archives/kali-themes_2020.1.0_all.deb tmp
    
  2. Edit the extracted files, by looking for "--no-rename" and replace it with "".

    cd tmp/DEBIAN
    leafpad preinst
    grep "no-rename" ./* -r
    sed -i "s/--no-rename//g" <files from above grep> 
    
  3. Repack and execute the .deb

    dpkg-deb -b tmp fixed.deb
    sudo dpkg -i fixed.deb
    
  • This worked! As a side note, the *.deb can be created anywhere. The paths indicated above are only illustrative – Rajesh S Feb 2 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.