apt-get problems

Asked by Bystander

Whenever i try to use apt-get to do anything (install, remove, update, source, etc.) there is an error.
E: Type 'n' is not known on line 1 in source list /etc/apt/sources.list.d/sun-java-community-team-sun-java6-lucid.list
I know it's a problem with java, and i'm assuming this problem was caused by the installation of the wrong package for my system.

Ubuntu 10.04

I don't however, know how to fix this problem. Please help

As well on the top Panel, on the right, there is a red circle with a white line in it. when i roll over it with my cursor it says this:

An error occurred, please run Package Manager form the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Error: Opening the cache (E:Type 'n' is not known on line 1 in source list /etc/apt/sources.list.d/sun-java-community-team-sun-java6-lucid.list, E:The list of sources could not be read.)'This usually means that yor installed packages have unmet dependencies
What does this mean exactly?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
arochester (arochester) said :
#1

Open the file with the command:
gksudo gedit /etc/apt/sources.list.d/sun-java-community-team-sun-java6-lucid.list

What does it say on line 1? If necessary copy and paste the whole thing here so we can have a look at it.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Bystander (rbo10661) said :
#3

All that it says in the file is 'n'
what should i do?
P.S. i apologize for taking so long to reply

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

It seems there is nothing reasonable contained in that file, so you best just delete it.

open a terminal and execute

sudo rm /etc/apt/sources.list.d/sun-java-community-team-sun-java6-lucid.list

If you really need that PPA you could re-enable it with the instructions as shown in https://launchpad.net/~sun-java-community-team/+archive/sun-java6

Revision history for this message
Bystander (rbo10661) said :
#5

Thanks Manfred Hampl, that solved my question.