While performing an apt-get update with Kali Linux, packages cannot be retrieved, but a ping works. sources.list file needs to be setup. To fix it in a terminal: Type sudo -iType touch /etc/apt/sources.listType chmod 644 /etc/apt/sources.listType echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.listType apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6Type apt-get updateGood to go.
The first step is to install the extension needed. The official extension is edited by Microsoft. By typing 'Python' in 'Search' field, it will be the first one. Once installed, it should be able to use 'pylint' and 'pep8' to show errors and autoformat the code on save. Be sure that 'pylint' and 'pep8' extensions … Continue reading Configure Visual Studio Code for Python