Issues with Kali updating repositories

I just started following The Complete Web Penetration Testing & Bug Bounty Course.
At a certain point i need to update my repositories Im running kali in Virtual box, however whenever i do that it seems to not be able to install anything anymore. I get the following message:

The following packages have unmet dependencies:
libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-19 is to be installed
python3-tornado : Breaks: mitmproxy (< 5.0~) but 4.0.4-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

if anyone knows how to fix this problem id be very thankfull

which kali do you use?

or try this

to solve this problem you just need to remove the broken packages.

apt remove "package name"

and keep on trying to update using “apt-get upgrade” in each step it will give someunmute dependency so you have to remove each packages manually.

at a instant the code “apt-get upgrade” starts working.

1 Like

apt-get install python3.7

then Install Veil after you install Python3.7

Worked for Me.

You can fix this issue like so:

  1. Open the sources using the following command
    leafpad /etc/apt/sources.list
  2. Remove everything there and add the following
    deb http://http.kali.org/kali kali-last-snapshot main non-free contrib
  3. Save the document and quit.
    Install Veil after updating the sources:
    apt-get update
    apt-get install libgcc-8-dev
    apt-get install python3.7
    apt-get install -y veil

Let me know how it goes!