debianvlcwindows-subsystem-for-linux

Debian WSL Error : You must put some 'source' URIs in your sources.list


I'm trying to get build-dep vlc through Debian WSL in Windows 10. In the sources.list, all I get is:

deb http://deb.debian.org/debian buster main                                                                            
deb http://deb.debian.org/debian buster-updates main
deb http://security.debian.org/debian-security/ buster/updates main
deb http://ftp.debian.org/debian buster-backports main

Looks to me like I'm missing a couple sources, if so how can I get those?


Solution

  • You can duplicate and append the lines in sources.list by replacing deb with deb-src. Like this:

    ...
    deb-src http://deb.debian.org/debian buster main
    ...
    

    And run apt update; then apt build-dep should work.

    UPDATE 2024:

    The path to sources.list changed to /etc/apt/sources.list.d/debian.sources and the format also changed.

    You can run this to add deb-src:

    sed -i 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources