LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   can anyone tell me whats in these folders i think i removed something (https://www.linuxquestions.org/questions/ubuntu-63/can-anyone-tell-me-whats-in-these-folders-i-think-i-removed-something-471716/)

adamf4i 08-07-2006 04:29 PM

can anyone tell me whats in these folders i think i removed something
 
/etc/preferences

/etc/apt/preferences

randell6564 08-07-2006 04:33 PM

Quote:

Originally Posted by adamf4i
/etc/preferences

/etc/apt/preferences

I dont even have these in my system.

adamf4i 08-07-2006 04:49 PM

just do vi /etc/preferences
and vi /etc/apt/preferences
andtell me whats in there

randell6564 08-07-2006 05:07 PM

Quote:

Originally Posted by adamf4i
just do vi /etc/preferences
and vi /etc/apt/preferences
andtell me whats in there

Nadda! This is what it looks like after doing both:

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/apt/preferences" [New File] 0,0-1 All



fragos 08-07-2006 06:09 PM

In my Gnome Ubuntu system there are no such directories. /etc has lots of configuration data. As a rule, if configuration files are deleted they will be recreated to default values the next time the configuration is required.

randell6564 08-07-2006 06:16 PM

Quote:

Originally Posted by fragos
In my Gnome Ubuntu system there are no such directories. /etc has lots of configuration data. As a rule, if configuration files are deleted they will be recreated to default values the next time the configuration is required.

Thats what I thought. Hence, "I dont even have these in my system"

adamf4i 08-07-2006 06:19 PM

hmm, i cant figure out why imgettin an error then when tryin to do and apt-get upgrade

randell6564 08-07-2006 06:34 PM

Quote:

Originally Posted by adamf4i
hmm, i cant figure out why imgettin an error then when tryin to do and apt-get upgrade

Whats the error? Are you doing a 'sudo apt-get upgrade'? (or is it sudo apt-get install upgrade?)

adamf4i 08-07-2006 06:41 PM

E: Invalid record in the preferences file, no Package header

randell6564 08-07-2006 06:46 PM

Quote:

Originally Posted by adamf4i
E: Invalid record in the preferences file, no Package header

I dont know man, I'm stumped! I have never seen that error before.

Maybe that invalid record is on the repo side! maybe the repository is at fault!

adamf4i 08-07-2006 07:14 PM

when i look at teh repositories i get these 2 errors

E: Invalid record in the preferences file, no Package header
E: Cannot read vendors.list file

randell6564 08-07-2006 07:23 PM

Quote:

Originally Posted by adamf4i
when i look at teh repositories i get these 2 errors

E: Invalid record in the preferences file, no Package header
E: Cannot read vendors.list file

Well, I'll be Damned! Looks like a repo problem to me!

adamf4i 08-07-2006 07:25 PM

how do you fix that , i just unistalled the package manager now i cant reinstall it cause it gives me that errer again about invalid record

randell6564 08-07-2006 07:43 PM

Quote:

Originally Posted by adamf4i
how do you fix that , i just unistalled the package manager now i cant reinstall it cause it gives me that errer again about invalid record

Well., Get rid of your /etc/apt/sources.list and copy mine.

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

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

## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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/ dapper universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe 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/ dapper-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe



Make sure to make a backup copy of your current list so that you can always go back to it if needed.

adamf4i 08-07-2006 08:11 PM

notworkin for me LOL i copied it but still same error


All times are GMT -5. The time now is 12:52 AM.