LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Fresh Install of Debian Wheezy/Wrong sources.list/Fixing recursive fault error (https://www.linuxquestions.org/questions/debian-26/fresh-install-of-debian-wheezy-wrong-sources-list-fixing-recursive-fault-error-4175492591/)

Ztcoracat 01-26-2014 02:41 AM

Fresh Install of Debian Wheezy/Wrong sources.list/Fixing recursive fault error
 
Hi:

I used nano to edit my sources.list.
Upon running a update it's failing to fetch with the wrong sources.list entry.
I thought I had this right by following these instructions:
http://www.howtogeek.com/howto/42980...e-text-editor/


This is my current sources.list
Code:

# deb cdrom:[Debian GNU/Linux 7.3.0 _Wheezy_ - Official amd64 CD Binary-1 20131215-04:56]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.3.0 _Wheezy_ - Official amd64 CD Binary-1 20131215-04:56]/ wheezy main

deb http://security.debian.org/ wheezy/updates main contrib non free
deb-src http://security.debian.org/ wheezy/updates main
deb http:://ftp.us.debian.org/debian wheezy main
deb http://ftp.us.debian.org/debian wheezy-backports main



Code:

root@:/home/ra3# aptitude update
Err http: wheezy Release.gpg
  Unable to connect to :http:
Ign http: wheezy Release
Err http: wheezy/main amd64 Packages
  Unable to connect to :http:
Err http: wheezy/main Translation-en_US                                 
  Unable to connect to :http:
Err http: wheezy/main Translation-en
  Unable to connect to :http:
Hit http://ftp.us.debian.org wheezy-backports Release.gpg               
Hit http://ftp.us.debian.org wheezy-backports Release
Hit http://ftp.us.debian.org wheezy-backports/main amd64 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.us.debian.org wheezy-backports/main Translation-en/DiffIndex
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
67% [Working]W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/Release.gpg: Unable to connect to :http:
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/binary-amd64/Packages: Unable to connect to :http:
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/i18n/Translation-en_US: Unable to connect to :http:
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/i18n/Translation-en: Unable to connect to :http:
W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release: Unable to find expected entry 'non/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache

Why the failed to fetch error and the wrong sources.list entry malformed file?

There were 2 error messages appeared at start up and I had to perform a hard shut down after the second message hung on a black screen.

Code:

fixing recursive fault but reboot is needed
Code:

[udevd] 460: time out Killing sbin/blkid-0dev-p /dev/sda2 [667]
I ran dmesg and read the log. I didn't find any errors.
Is this a bug maybe?

jdkaye 01-26-2014 02:59 AM

Code:

deb http:://ftp.us.debian.org/debian wheezy main
Try removing the extra ":" from this line.
jdk

Ztcoracat 01-26-2014 03:08 AM

I removed the extra (:) colon- thanks jdkaye!

Code:

root@Mock:/home/cora3# aptitude update
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1,672 B]
Hit http://ftp.us.debian.org wheezy-backports Release.gpg   
Hit http://security.debian.org wheezy/updates Release.gpg
Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://ftp.us.debian.org wheezy-backports Release
Get: 3 http://ftp.us.debian.org wheezy/main amd64 Packages [5,848 kB]
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3,852 kB]         
Hit http://ftp.us.debian.org wheezy-backports/main amd64 Packages/DiffIndex   
Hit http://ftp.us.debian.org wheezy-backports/main Translation-en/DiffIndex   
Fetched 9,870 kB in 36s (273 kB/s)                                             
W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release: Unable to find expected entry 'non/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache

Current status: 14 updates [


Randicus Draco Albus 01-26-2014 03:10 AM

Quote:

Originally Posted by jdkaye (Post 5105395)
Try removing the extra ":" from this line.

Nice catch. You have sharp eyes.

Randicus Draco Albus 01-26-2014 03:18 AM

Oops.

widget 01-26-2014 04:19 AM

Very interesting.

Looks like it should work to me.

A couple things though.

Have you rebooted to recovery mode? This will sometimes be of some help. It is more verbose and some functions are self correcting. Will also drop you, with your root password, to a root prompt (#) where you could try the commands from without the encumberance of the xwindows system.

Just for gigles you may want, while at that prompt, to run;
Code:

dpkg --audit
There is actually nothing suggesting that is needed but there is some problem, this will let you know if something is no fully installed.

There are a couple of other commands that are related to updating your package list that might be of use here.
Code:

apt-get clean
Code:

dpkg --clear-avail
These will clear the package lists and give you a clean slate to start from. From your error messages in your first post there was something not quite right with your package management from the start. Don't see anything in the source.list to suggest that but you shouldn't have been getting those messages. There could be some things left in there from when you installed that were not cleaned up by the installer.

jdkaye 01-26-2014 01:19 PM

Quote:

Originally Posted by Randicus Draco Albus (Post 5105400)
Nice catch. You have sharp eyes.

Thanks Randicus,
Note bad for a 72 year-old, eh?
jdk

Ztcoracat 01-26-2014 01:48 PM

Bad news
 
Now all I have is console mode-
All I did is follow these instructions on this Debian page https://wiki.debian.org/ATIProprietary
under Debian 7 Wheezy and restarted. Upon restarting now I'm stuck here--see output below.

I tried x -configure mentioned here: http://www.x.org/wiki/ConfigurationHelp/

Here's what I'm trying to figure out--
Code:

Fatal Server error:
no screens found
Please consult the X.Org Foundation Support at http://wiki.x.org
for help
Please also check the log file at /var/log/X.O.log for additional information.

Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error
root@me:/home/myname/Downloads# x -configure
bash: command not found

When I tried to install the driver there were dependency problems and I also tried to install those 2 pkg's : libfglrx & glx and had an error with that as well.

Code:

root@ck:/home/a3/Downloads# dpkg -i fglrx-driver_12-6+point-3_amd64.deb
(Reading database ... 106531 files and directories currently installed.)
Preparing to replace fglrx-driver 1:12-6+point-3 (using fglrx-driver_12-6+point-3_amd64.deb) ...
Unpacking replacement fglrx-driver ...
dpkg: dependency problems prevent configuration of fglrx-driver:
 fglrx-driver depends on libfglrx (= 1:12-6+point-3); however:
  Package libfglrx is not installed.
 fglrx-driver depends on glx-alternative-fglrx (>= 0.2); however:
  Package glx-alternative-fglrx is not installed.

dpkg: error processing fglrx-driver (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 fglrx-driver

Not sure what to try.
You guys have more experience with Debian and being so I'm trusting you as I am baffled at the moment as to what needs to be done to resolve this.

Ztcoracat 01-26-2014 02:20 PM

I tried to install fglrx:
Code:

apt-get install fglrx
Reading package list... Done
Package fglrx is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'fglrx' has no installation canidate


widget 01-26-2014 08:10 PM

First off, you were having a problem with your package management system. It is best not to try installing some other packages until you get the system straightened out.

Second it is good to read what your console output is when you run commands.
Code:

root@ck:/home/a3/Downloads# dpkg -i fglrx-driver_12-6+point-3_amd64.deb
(Reading database ... 106531 files and directories currently installed.)
Preparing to replace fglrx-driver 1:12-6+point-3 (using fglrx-driver_12-6+point-3_amd64.deb) ...
Unpacking replacement fglrx-driver ...
dpkg: dependency problems prevent configuration of fglrx-driver:
 fglrx-driver depends on libfglrx (= 1:12-6+point-3); however:
  Package libfglrx is not installed.
 fglrx-driver depends on glx-alternative-fglrx (>= 0.2); however:
  Package glx-alternative-fglrx is not installed.

dpkg: error processing fglrx-driver (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 fglrx-driver

Note that in this case dpkg is trying to download and install "fglrx-driver" and that it found TWO THINGS;
1>the current version is installed.
2>there is an uninstalled package on which fglrx-driver depends.

If you had run;
Code:

dpkg --audit
it should have shown this to be the case.

There was little to go on as to what your problem with APT is in the first place. Now it is simply more tangled than before.

Try;
Code:

apt-get -f install
Might help. Might not.

Ztcoracat 01-26-2014 08:23 PM

Code:

$apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock  - open (13:  Permission denied)
E: Unable to lock the administration directory  (/var/lib/dpkg/) : are you root?

Run this cmd as root, Widget?

I'm asking so I don't create any further problems-

k3lt01 01-26-2014 08:35 PM

Yes run that as root.

Ztcoracat 01-26-2014 08:43 PM

Code:

Reading package list... Done
Building dependency tree
Reading state information ... Done
Correcting dependencies... Done
The following packages will be REMOVED
fglrx-driver
0 upgraded 0 newly installed or removed 1 to removed and 14 not upgraded
After this operation 24.9 MB disk space will be freed.
Do you want to continue [Y/n]?

Yes is what I want correct, k3lt01?
(making sure)

k3lt01 01-26-2014 09:04 PM

Why does it want to remove fglrx-driver? because there is a package missing that it depends on to work. So I would run
Code:

apt-get install glx-alternative-fglrx fglrx-driver
instead because just running
Code:

apt-get -f install
isn't forcing it to install the dependency as well.

Ztcoracat 01-26-2014 09:08 PM

Code:

Why does it want to remove fglrx-driver?
Because it is already installed Mr. Widget said.


All times are GMT -5. The time now is 08:41 PM.