Results 1 to 3 of 3

Thread: Type 'dev-src' is not known on line 6 in source list /etc/apt/sources.list

  1. #1
    Join Date
    Sep 2013
    Beans
    41

    Type 'dev-src' is not known on line 6 in source list /etc/apt/sources.list

    I don't see what's wrong. The only change I've made to the file is to comment out the cdrom line and removed the '#' before each `dev-src` entry.

    Code:
    sudo apt update: Type 'dev-src' is not known on line 6 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

    Code:
    # deb cdrom:[Ubuntu-MATE 20.10 _Groovy Gorilla_ - Release amd64 (20201022)]/ groovy main multiverse restricted universe
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://ca.archive.ubuntu.com/ubuntu/ groovy main restricted
    dev-src http://ca.archive.ubuntu.com/ubuntu/ groovy main restricted
    
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ca.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
    dev-src http://ca.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
    
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://ca.archive.ubuntu.com/ubuntu/ groovy universe
    dev-src http://ca.archive.ubuntu.com/ubuntu/ groovy universe
    deb http://ca.archive.ubuntu.com/ubuntu/ groovy-updates universe
    dev-src http://ca.archive.ubuntu.com/ubuntu/ groovy-updates universe

  2. #2
    Join Date
    Jun 2016
    Beans
    2,286
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Type 'dev-src' is not known on line 6 in source list /etc/apt/sources.list

    Every "dev-src" should be deb-src .
    Xubuntu 20.04/Pop!_OS 21.04/System76 hardware ♦ Debian 10/Xubuntu/VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  3. #3
    Join Date
    Sep 2013
    Beans
    41

    Re: Type 'dev-src' is not known on line 6 in source list /etc/apt/sources.list

    Quote Originally Posted by halogen2 View Post
    Every "dev-src" should be deb-src .
    Yup. Works like a charm.

    Thanks

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •