Results 1 to 3 of 3

Thread: PRoblem with source lsit

  1. #1
    Join Date
    2016-Sep
    Location
    Greece
    Posts
    3

    PRoblem with source lsit

    Hello, I installed kali linux from scratch on virtual box. The problem I am facing is that every time I am trying to install something I get an error message that package was not found. I edited the source list file but ended up deleting it. Then I ran this command

    Code:
    echo -e "deb http.kali.org/kali sana main non-free contrib\ndeb http://security.kali.org/kali-security/ sana/updates main contrib non-free" > /etc/apt/sources.list
    It created a new source list file with these two repo

    Code:
    deb http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
    Then tried again

    Code:
    apt-get update
    But I am getting this error

    Code:
    E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
    E: The list of sources could not be read.
    How can I fix this and restore the repo file, so I can download everything again?

    Thank you for your time

    Update: Reinstalling the OS fixed the problem
    Last edited by WantedStarling; 3 Weeks Ago at 20:08.

  2. #2
    Join Date
    2016-Dec
    Posts
    372
    What instructed to run that echo command? Sana hasn't been supported in a long while.

  3. #3
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    209
    Quote Originally Posted by WantedStarling View Post
    Hello, I installed kali linux from scratch on virtual box. The problem I am facing is that every time I am trying to install something I get an error message that package was not found. I edited the source list file but ended up deleting it. Then I ran this command

    Code:
    echo -e "deb http.kali.org/kali sana main non-free contrib\ndeb http://security.kali.org/kali-security/ sana/updates main contrib non-free" > /etc/apt/sources.list
    It created a new source list file with these two repo

    Code:
    deb http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
    Then tried again

    Code:
    apt-get update
    But I am getting this error

    Code:
    E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
    E: The list of sources could not be read.
    How can I fix this and restore the repo file, so I can download everything again?

    Thank you for your time

    Update: Reinstalling the OS fixed the problem
    https://docs.kali.org/general-use/ka...t-repositories

    Must be a old version of kali for that one.
    easy to start; hard to finish

Similar Threads

  1. Problem with source.list
    By Prabh73552 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-03-17, 07:00
  2. Can't get source headers for ARM 1.0.5
    By vsqz in forum ARM Archive
    Replies: 0
    Last Post: 2013-10-02, 14:59
  3. The best and stable source list
    By Felice S. Catus in forum General Archive
    Replies: 0
    Last Post: 2013-07-18, 12:46

Posting Permissions

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