Note, selecting 'libreadline-dev' instead of 'libreadline6-dev' Package libgcc-9-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libgcc-9-dev' has no installation candidate
Error:- package has no installation candidate
TYPE IN TERMINAL (nano /etc/apt/sources.list
)
DELETE ALL LINES INTO IT
GO TO (https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
)
or
copy repositories below mentioned
COPY AND PASTE THESE LINES INTO SOURCE LIST
{*deb http://http.kali.org/kali kali-rolling main non-free contrib*
*deb http://http.kali.org/kali kali-last-snapshot main non-free contrib*
*deb http://http.kali.org/kali kali-experimental main non-free contrib*
*deb-src http://http.kali.org/kali kali-rolling main non-free contrib*}
TO EXIT AND SAVE press (ctrl
+x
) and press Y
to confirm saving
Type apt update
&& apt upgrade
in terminal
//hope it will work//