ParrotSecurity 4.2: Download package source code with apt source

Table of Contents

1 Cannot run apt source by default

The apt source will be failed by default. This is because deb-src is comment out in /etc/apt/sources.list.

$ apt source linuxReading package lists… DoneE: You must put some ‘source’ URIs in your sources.list

2 Enable deb-src

Enable deb-src.

#!/bin/sh -efor f in /etc/apt/sources.list /etc/apt/sources.list.d/*; do grep ‘^deb ‘ “${f}” | sed ‘s/^deb /deb-src /g’ | sudo tee -a /etc/apt/sources.list.d/deb-src.listdonesudo apt update -y

The apt source will work.

$ apt source linuxReading package lists…NOTICE: ‘linux’ packaging is maintained in the ‘Git’ version controlsystem at:<snip>

Android | Linux | SDL - Narrow Escape