LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-26-2014, 02:41 AM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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?
 
Old 01-26-2014, 02:59 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Code:
deb http:://ftp.us.debian.org/debian wheezy main
Try removing the extra ":" from this line.
jdk
 
1 members found this post helpful.
Old 01-26-2014, 03:08 AM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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 [
 
Old 01-26-2014, 03:10 AM   #4
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by jdkaye View Post
Try removing the extra ":" from this line.
Nice catch. You have sharp eyes.
 
Old 01-26-2014, 03:18 AM   #5
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Oops.

Last edited by Randicus Draco Albus; 01-26-2014 at 03:20 AM.
 
Old 01-26-2014, 04:19 AM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
1 members found this post helpful.
Old 01-26-2014, 01:19 PM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Randicus Draco Albus View Post
Nice catch. You have sharp eyes.
Thanks Randicus,
Note bad for a 72 year-old, eh?
jdk
 
Old 01-26-2014, 01:48 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 01-26-2014, 02:20 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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
 
Old 01-26-2014, 08:10 PM   #10
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
1 members found this post helpful.
Old 01-26-2014, 08:23 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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-
 
Old 01-26-2014, 08:35 PM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Yes run that as root.
 
1 members found this post helpful.
Old 01-26-2014, 08:43 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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)

Last edited by Ztcoracat; 01-26-2014 at 08:46 PM. Reason: Correct output
 
Old 01-26-2014, 09:04 PM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
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.
 
Old 01-26-2014, 09:08 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Code:
Why does it want to remove fglrx-driver?
Because it is already installed Mr. Widget said.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing recursive fault screen umbloaded Linux - General 2 06-18-2013 03:39 AM
Wheezy to Testing: About my sources.list aquaboot Debian 2 05-25-2013 02:21 PM
wheezy updates in sources.list rng Debian 12 02-25-2013 10:26 AM
Fixing recursive fault but reboot is needed! vkmgeek Programming 2 01-02-2008 07:03 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration