E: Type 'n' is not known on line 1 in source list /etc/apt/sources.list.d/libreoffice-ppa-lucid.list
I was attempting to remove open office and replacing it with libre office.
synaptic package manager is showing this error:
"E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report."
The following is the result of the commands on this page:
"https:/
doug@doug:~$ sudo apt-get install update-manager
[sudo] password for doug:
E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
doug@doug:~$ update-manager
doug@doug:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for doug:
doug@doug:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
doug@doug:~$ uname -a
Linux doug 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 15:27:15 UTC 2011 i686 GNU/Linux
doug@doug:~$ sudo rm /var/lib/
doug@doug:~$ sudo cp -arf /var/lib/dpkg /var/lib/
doug@doug:~$ sudo cp /var/lib/
doug@doug:~$ sudo cp /var/lib/
doug@doug:~$ sudo rm -rf /var/lib/
doug@doug:~$ sudo rm -rf /var/lib/apt/lists
doug@doug:~$ sudo rm /var/cache/
doug@doug:~$ sudo mkdir /var/lib/apt/lists
doug@doug:~$ sudo mkdir /var/lib/
doug@doug:~$ LANG=C;sudo apt-get clean
doug@doug:~$ LANG=C;sudo apt-get autoclean
E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
doug@doug:~$ LANG=C;sudo apt-get --purge autoremove
E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
doug@doug:~$ LANG=C;sudo apt-get update -o APT::Cache-
E: Type 'n' is not known on line 1 in source list /etc/apt/
doug@doug:~$ sudo dpkg --clear-avail
doug@doug:~$ sudo dpkg --configure -a
Processing triggers for shared-mime-info ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
Processing triggers for python-support ...
doug@doug:~$ LANG=C;sudo apt-get -f install
E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
doug@doug:~$ LANG=C;sudo apt-get --fix-missing install
E: Type 'n' is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
doug@doug:~$ LANG=C;sudo apt-get update -o APT::Cache-
E: Type 'n' is not known on line 1 in source list /etc/apt/
doug@doug:~$
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Doug Lahren