Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using linux mint 9. Recently I have been facing this problem, when ever I want to install any software through sudo apt-get install it does not succeed. It shows

E: Malformed line 12 in source list /etc/apt/sources.list (dist parse)

even though I don't remember changing the file, ever!

The contents of the /etc/apt/sources.list are as below

deb http://packages.linuxmint.com/ isadora main upstream import
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ lucid partner
deb http://packages.medibuntu.org/ lucid free non-free

# deb http://archive.getdeb.net/ubuntu lucid-getdeb apps
# deb http://archive.getdeb.net/ubuntu lucid-getdeb games
deb http://archive.canonical.com/ precise partner
deb http://archive.canonical.com/ precise partner
deb http://archive.canonical.com/ natty
deb http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ precise partner
deb http://archive.canonical.com/ precise partner

I have tried to update by using the command sudo apt-get update, even this shows the same error

I have no idea what to do. Please help. Thanks

share|improve this question

closed as off topic by Jorge Castro, hhlp, fossfreedom Mar 19 '13 at 14:58

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
Mint questions go on: unix.stackexchange.com Thanks! –  Jorge Castro Mar 19 '13 at 12:12
1  
Try asking in the Mint Forums or on The Stack Exchange - Unix and Linux. The question is off topic here. –  Warren Hill Mar 19 '13 at 12:37
    
considering the fact that Mint is based on Ubuntu, I asked the question here. Sorry if it did not belong in here. –  codeMan Mar 20 '13 at 4:13

1 Answer 1

up vote 0 down vote accepted

Remove:

deb http://archive.canonical.com/ natty
deb http://archive.canonical.com/ natty partner

Add:

deb http://archive.canonical.com/ubuntu/ natty partner
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.