Desktop forbidden sign

Asked by Luis M.Jacinto

On top of Desktop there is this sign on opening there is “A problem occurred when checking for updates”.
Can open Synaptic or Ubuntu Software Center.
Clicking Synaptic following error comes:

E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

On Clicking the forbidden sign there is options and clicking on theme all gave this error:

An unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
E:Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list

How to fix this problem
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of the below command:

cat -n /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list; lsb_release -a; uname -a

Thanks

Revision history for this message
Luis M.Jacinto (ljacinto) said :
#2

luis@luis-G41M-Combo:~$ cat -n /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list; lsb_release -a; uname -a
     1 deb http://ppa.launchpad.net/upubuntu-com/graphics/ubuntu precise main
     2 deb-src http://ppa.launchpad.net/upubuntu-com/graphics/ubuntu precise main
     3 ain
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux luis-G41M-Combo 3.2.0-76-generic-pae #111-Ubuntu SMP Tue Jan 13 22:34:29 UTC 2015 i686 i686 i386 GNU/Linux
luis@luis-G41M-Combo:~$

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

open a terminal and issue the command

gksudo gedit /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list
This should ask for your password as confirmation for an administrative action, and will then open an editor with one of the package management configuration files loaded.

Delete the third line (being "ain"), save the file and close the editor.
Then issue the terminal command

sudo apt-get update

and check whether you get further warnings and/or error messages.
If you get any, copy/paste all output into this question document.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

or in 3 commands:

head -n 2 /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list > ~/upubuntu-com-graphics-precise.list

cat ~/upubuntu-com-graphics-precise.list | sudo tee /etc/apt/sources.list.d/upubuntu-com-graphics-precise.list

rm ~/upubuntu-com-graphics-precise.list

Revision history for this message
Luis M.Jacinto (ljacinto) said :
#5

Thanks actionparsnip, that solved my question.