please help add/remove programs

Asked by sosoy77

when i open adept manager i got this msg:the APT Database could not be opened!this may caused by incorrect apt configuration or some similar problem.try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem. and when i do this i get this message;E: Type '“deb' is not known on line 60 in source list /etc/apt/sources.list
E: The list of sources could not be read. please help i need-it.thanx anticipate

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu kdebase Edit question
Assignee:
No assignee Edit question
Solved by:
Pete
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Pete (pete123) said :
#1

It looks like you might have added a line to your /etc/apt/sources.list, correct?

Revision history for this message
sosoy77 (sosoy77) said :
#2

i gues.i try to install automatix,but no succes.i am new in this,and if you want more inf.you must tell me step by step how to find this.PLEASE HELP

Revision history for this message
Pete (pete123) said :
#3

Can you go into a terminal and type the following,

sudo cp /etc/apt/sources.list /etc/apt/sources/list.backup

and then

sudo sed -i '/^\"/d' /etc/apt/sources.list

followed by

sudo apt-get update

Give the output of the last here, if it gives an error!

Revision history for this message
Pete (pete123) said :
#4

Can you go into a terminal and type the following (you may wish to copy and paste these),

sudo cp /etc/apt/sources.list /etc/apt/sources/list.backup

and then

sudo sed -i '/^\"/d' /etc/apt/sources.list

followed by

sudo apt-get update

Give the output of the last here, if it gives an error!

Revision history for this message
sosoy77 (sosoy77) said :
#5

marius@ubuntu:~$ sudo cp /etc/apt/sources.list /etc/apt/sources/list.backup
cp: cannot create regular file `/etc/apt/sources/list.backup': No such file or directory
this what i get at first...sudo sed -i '/^\"/d' /etc/apt/sources.list .....and whit this nothig happend marius@ubuntu:~$ sudo apt-get update
E: Type '“deb' is not known on line 60 in source list /etc/apt/sources.list
the same.What else can do
please help

Revision history for this message
Pete (pete123) said :
#6

Sorry, the cp command should have been

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

does not matter now.

Can you paste the contents of your /etc/apt/sources.list here? (To do this start gedit and copy it all)

Revision history for this message
sosoy77 (sosoy77) said :
#7

i know how to paste contents,but i dont know how and were to find /etc/apt/sources.list. Sorry!

Revision history for this message
Pete (pete123) said :
#8

From the run dialogue (Hold down alt and press F2) type

gedit /etc/apt/sources.list

Revision history for this message
sosoy77 (sosoy77) said :
#9

i guess my problem its bad,this is what i got:gedit /etc/apt/sources.list
could not run the specified command.Please tell me if there is a chance for me,or i haft to reinstall the os again.thanx

Revision history for this message
Pete (pete123) said :
#10

Looks like your /etc/apt/sources.list has been deleted then! I presume you are using Ubuntu, but which version are you using?

Revision history for this message
Pete (pete123) said :
#11

Infact it looks like you don't have gedit, are you using something other than Ubuntu, such as Kubuntu or Xubuntu etc?

Revision history for this message
sosoy77 (sosoy77) said :
#12

yes i am using kubuntu

Revision history for this message
Kris Marsh (moogman) said :
#13

Hi sosoy77. If you open Konqueror file browser, and navigate to: /etc/apt/ do you see a sources.list? If so, click (or double-click) it and it should open in a file editor... possibly "kate". You should be able to copy and paste from there then.

Revision history for this message
sosoy77 (sosoy77) said :
#14

SOURCES.LIST
# deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted

deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
“deb http://www.getautomatix.com/apt dapper main”
deb http://www.getautomatix.com/apt feisty main
SOURCES.LIST.BACKUP
# deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted

deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
“deb http://www.getautomatix.com/apt dapper main”
deb http://www.getautomatix.com/apt feisty main
SOURCES.LIST.DISTUPGRADE .#
# deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted

deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
SOURCES.LIST.SAVE #
# deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted

deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.2)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
THIS IS ALL THE LIST I HAVE HERE

Revision history for this message
Kris Marsh (moogman) said :
#15

Hi soysoy77,

The problem is this line in your sources.list

“deb http://www.getautomatix.com/apt dapper main”

The quotes are the problem, as the update system cannot understand it. I would recommend keeping away from Automatix for the time being, and you should be able to do everything you need without it. Up to you of course :-)

To fix the problem and keep Automatix, modify the sources.list file as root and remove the two quotes on that line. To do this, go to your run dialog and type: kdesu kate /etc/apt/sources.list

Alternatively, it looks like if you uninstall Automatix, it *should* also revert the changes it made to the file.

Hope this helps!
Kris

Revision history for this message
sosoy77 (sosoy77) said :
#16

u haft to tell me step by step,i am new,i try but i need more inf. please help.What i must remove to make my sys work

Revision history for this message
Kris Marsh (moogman) said :
#17

Sure, sorry if I wasn't clear enough.

You will need to edit the file /etc/apt/sources.list, so to do this you should first open the file:

Click the "K" button, then click "Run Command". Type the following:

kdesudo kate /etc/apt/sources.list

When Kate the text editor starts up, you can modify the line at the bottom:

“deb http://www.getautomatix.com/apt dapper main”

And take out the "s so it looks like this:

deb http://www.getautomatix.com/apt dapper main

Save the file and it should all hopefully be fixed!
Kris

Revision history for this message
Pete (pete123) said :
#18

Surprised the sed command earlier didn't work, anyway, to be able to edit you need to have root permissions (somewhat like administrator)

To do this type

sudo kwrite /etc/apt/sources.list

This will allow you to save changes to /etc/apt/sources.list

Change the line

“deb http://www.getautomatix.com/apt dapper main”

to

deb http://www.getautomatix.com/apt dapper main

save the file. Then, from a terminal type

sudo apt-get update

This should sort out the issues hopefully.

Revision history for this message
sosoy77 (sosoy77) said :
#19

thanx guys.

Revision history for this message
sosoy77 (sosoy77) said :
#20

i want to know ho to do this:now i have a hdd 160 gb whit kubuntu in it and i want to add another one whit 250 gb an this one i want it only whit media and ktorrent and i want a partition 100gb and 150gb. And the first whit 160 i want to partition in 40gb for os,and another two prtition 60gb and 60gb.please tell me how to add the hdd and how to partitoin.please help

Revision history for this message
Kris Marsh (moogman) said :
#21

Hi soysoy77, please raise a new question for this - https://answers.launchpad.net/ubuntu/+addquestion

Revision history for this message
sosoy77 (sosoy77) said :
#22

i gues i have another problem now.This is what i got when i try to install or remove application:COULD NOT COMMIT CHANGES-ADEPT INSTALLER There was an error commiting changes. Possibly there was a problem downloading some packages or the commit would break packages. I did-it again please help

Revision history for this message
Pete (pete123) said :
#23

Something has got really messed up here. How long ago did you install this machine? If it was not long and you have not spent that much time working on it, I'd suggest reinstalling. You would have a working machine back within half an hour or so. (If you do, stay away from automatix, it seems to have really caused problems!)

If this is not an option, or you would prefer not to reinstall just say and a solution can probably be found.

I presume after changing the line in /etc/apt/sources.list you did run

sudo apt-get update

Revision history for this message
sosoy77 (sosoy77) said :
#24

but sudo apt-get update work fine,just when i try to install or uninstall any apps i got this mesage.please help if that don t work i will install the os again

Revision history for this message
Pete (pete123) said :
#25

Can you try this please, if your package you wish to install is called xxyy for example, type the following into a terminal:

sudo apt-get install xxyy

and give the output here. Remember to replace the xxyy with the name of the package you are trying to install!

Revision history for this message
sosoy77 (sosoy77) said :
#26

sudo apt-get install kleansweep Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libcompizconfig0 python-compizconfig
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  kleansweep
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 141kB of archives.
After unpacking 467kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com gutsy/universe kleansweep 0.2.8-0ubuntu3 [141kB]
Fetched 141kB in 23s (5973B/s)
Selecting previously deselected package kleansweep.
(Reading database ... 94173 files and directories currently installed.)
Unpacking kleansweep (from .../kleansweep_0.2.8-0ubuntu3_i386.deb) ...
Setting up libqt3-mt (3:3.3.8really3.3.7-0ubuntu11.1) ...

Configuration file `/etc/qt3/qt_plugins_3.3rc'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** qt_plugins_3.3rc (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/qt3/qt_plugins_3.3rc ...

Setting up kdesudo (1.1-0ubuntu2.2) ...
Setting up kleansweep (0.2.8-0ubuntu3) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
i gues from konsole works!!!!and now very strange....it s work from add/remuve programs too !!! I guess my pc it s hunted by windows ghost :) i will keep you informed ,i may need a ghost hunter.

Revision history for this message
Best Pete (pete123) said :
#27

Maybe the question produced about "/etc/qt3/qt_plugins_3.3rc" was throwing the graphical interface off.

Anyway, good it is now working!

Revision history for this message
sosoy77 (sosoy77) said :
#28

Thanks Pete, that solved my question.