Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Error Message

Thu Mar 21, 2013 7:29 pm

Hey guys,

Im fairly new (a couple of days) and im running:

Code: Select all

Sudo apt-get install  (Whatever) 
but every time i do i get the error message

Code: Select all

you might want to run 'apt-get -f install' to correct these:
  (Whatever):depends:(Whatever)(>=10) but it is not going to be installed
  libc6: depends : libgccl but it is not going to be installed
E: unmet dependencies. try  'apt-get -f install' with no packages (or specify a solution)
but if i run

Code: Select all

apt-get -f install
it dosent work so i use sudo to type

Code: Select all

sudo apt-get -f install
then it does some loading and reloads package lists and the usual then says

Code: Select all

after this operation, 203KB of additional disk space will be used.
do you want to continue [Y/n]?
so i type 'Y' to allow this process. i definetley have the space but after that it dosent do anything and takes me back to the typing prompt (root@raspberrypi:) ready to type again. so i re type what i want to install and the same error message comes up AGAIN !!!!

All the (Whatever)'s are the thing i want to install, it happens with anything i want to download, install or update.

Im fairly new so i dont know how to sort out the problem, please help,

Connor

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Error Message

Thu Mar 21, 2013 7:47 pm

Try

sudo apt-get update

to make sure the repository information is up to date.

then

sudo apt-get upgrade

to upgrade your current packages.

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Error Message

Thu Mar 21, 2013 7:49 pm

Are you running Raspbian?

Are you logged in as root?

'sudo' as root is problematic.

Do not use 'sudo' when logged in as root.

Try logging in as 'pi' and doing all apt-get commands with 'sudo'.

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 9:16 am

joan wrote:Try

sudo apt-get update

to make sure the repository information is up to date.

then

sudo apt-get upgrade

to upgrade your current packages.



if i try apt-get update/upgrade, it comes up with the same error code :?:

if i download or update ANYTHING this error code comes up. i even tried emergency kernel

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 9:18 am

tonyhughes wrote:Are you running Raspbian?

Are you logged in as root?

'sudo' as root is problematic.

Do not use 'sudo' when logged in as root.

Try logging in as 'pi' and doing all apt-get commands with 'sudo'.
Im running 'wheezy' raspbian, i am logged in as

Name:Pi
Pswd: Raspberry

which is the root account. using sudo used to work but my internet is bad so when i download stuff it gets to the end and cancels :/

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Error Message

Fri Mar 22, 2013 9:46 am

Conaz9847 wrote:
tonyhughes wrote:Are you running Raspbian?

Are you logged in as root?

'sudo' as root is problematic.

Do not use 'sudo' when logged in as root.

Try logging in as 'pi' and doing all apt-get commands with 'sudo'.
Im running 'wheezy' raspbian, i am logged in as

Name:Pi
Pswd: Raspberry

which is the root account. using sudo used to work but my internet is bad so when i download stuff it gets to the end and cancels :/

Your errors are confusing?

if your prompt is:
root@raspberrypi
you would be logged in as root? and sudo should not be used.

pi is not a root account it is a sudoer account have you manipulated pi's permissions this can cause all kind of errors. Are you using sudo startx? if so that is never advised.
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 7:59 pm

Your errors are confusing?

if your prompt is:
root@raspberrypi
you would be logged in as root? and sudo should not be used.

pi is not a root account it is a sudoer account have you manipulated pi's permissions this can cause all kind of errors. Are you using sudo startx? if so that is never advised.
i am using startx and im using the terminal so my prompt is:
pi@raspberrypi:
what can i do to fix the problem ?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Error Message

Fri Mar 22, 2013 8:36 pm

Hi Conaz9847,
I'm applying some "lateral thinking" here, and beginning to wonder if your "strange apt-get errors" are a symptom of something else ie. could your SD card be tight on space (and hence apt-get hasn't enough room to work properly)? To test this hypothesis ...

Q1: Are you using an SD card with a pre-installed image?
Q2: If not, when you first booted up the Pi and was presented with the raspi-config menu did you choose the "expand_rootfs" option, exit raspi-config and reboot?
Finally, please boot up your Pi, login and without running "startx" type and run the following:

cd /; sudo du -k | sort -n -r | head

You should see something like this:

Code: Select all

pi@raspigrey ~ $ cd /; sudo du -k | sort -n -r | head
du: cannot access `./proc/2327/task/2327/fd/4': No such file or directory
du: cannot access `./proc/2327/task/2327/fdinfo/4': No such file or directory
du: cannot access `./proc/2327/fd/4': No such file or directory
du: cannot access `./proc/2327/fdinfo/4': No such file or directory
2294596 .
1706884 ./usr
1049828 ./usr/share
511108  ./usr/lib
417152  ./var
365024  ./usr/share/icons
205348  ./var/cache
198848  ./var/cache/apt
187052  ./usr/share/icons/oxygen
185420  ./usr/share/locale
pi@raspigrey / $
The first number is the important one ie. 2294596 in the example above - this means that the file system is using 2294596 kilo-bytes of my 4Gb SD card.

Hope this is not a "red-herring" and proves helpful.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 8:49 pm

FTrevorGowen wrote:Hi Conaz9847,
I'm applying some "lateral thinking" here, and beginning to wonder if your "strange apt-get errors" are a symptom of something else ie. could your SD card be tight on space (and hence apt-get hasn't enough room to work properly)? To test this hypothesis ...

Q1: Are you using an SD card with a pre-installed image?
Q2: If not, when you first booted up the Pi and was presented with the raspi-config menu did you choose the "expand_rootfs" option, exit raspi-config and reboot?
Finally, please boot up your Pi, login and without running "startx" type and run the following:

cd /; sudo du -k | sort -n -r | head

You should see something like this:

Code: Select all

pi@raspigrey ~ $ cd /; sudo du -k | sort -n -r | head
du: cannot access `./proc/2327/task/2327/fd/4': No such file or directory
du: cannot access `./proc/2327/task/2327/fdinfo/4': No such file or directory
du: cannot access `./proc/2327/fd/4': No such file or directory
du: cannot access `./proc/2327/fdinfo/4': No such file or directory
2294596 .
1706884 ./usr
1049828 ./usr/share
511108  ./usr/lib
417152  ./var
365024  ./usr/share/icons
205348  ./var/cache
198848  ./var/cache/apt
187052  ./usr/share/icons/oxygen
185420  ./usr/share/locale
pi@raspigrey / $
The first number is the important one ie. 2294596 in the example above - this means that the file system is using 2294596 kilo-bytes of my 4Gb SD card.

Hope this is not a "red-herring" and proves helpful.
Trev.

okay, i tried the

cd /; sudo du -k | sort -n -r | head

and got 1322692 of my 2GB memory card used

and i didnt boot up with a pre installed image or choose 'expand_rootfs' or any of that

i checked to make 100% certian i had network connection and i havent downloaded anything so i dont see how my space is being used up?:/

Also, i made a spare SD card which hasnt been used yet ,so if you wouldnt mind taking me through the basic setup then hopefully i wont get errors :D

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 9:06 pm

Also, now im getting the error code when i try to look for packages to install

Code: Select all

 E: Unable to parse package file            /var/lib/apt/lists/nirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_packages (1)
E: Problem opening /var/lib/apt/lists/nirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_packages
E: The package lists or status file could not be parsed or opened 
also happens if i do updates or anything to do with
sudo apt-get ..........
and if i dont use sudo it just says im not authorized

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Error Message

Fri Mar 22, 2013 9:23 pm

Conaz9847 wrote: okay, i tried the

cd /; sudo du -k | sort -n -r | head

and got 1322692 of my 2GB memory card used

and i didnt boot up with a pre installed image or choose 'expand_rootfs' or any of that

i checked to make 100% certian i had network connection and i havent downloaded anything so i dont see how my space is being used up?:/

Also, i made a spare SD card which hasnt been used yet ,so if you wouldnt mind taking me through the basic setup then hopefully i wont get errors :D
O.K. I guess from the above that you're writing your (raspbian) image to the SD card with one of the suggested tools, which one? (Because my netbook is dual-boot WindowsXP/Ubuntu I use "ImageWriter" and a USB stick SDHC reader/writer rather than the in-built SD card slot which is NOT marked as SDHC compatible).
The two partitions that the image contains do NOT completely fill a 2Gb SD card and you must choose and run raspi-config's expand_rootfs option to gain the remaining space. The apt-get installer needs room for its data-base during the update and upgrade processes even if it hasn't yet downloaded any packages. IIRC your figure of 1322692 kb is fairly close to the unexpanded rootfs partition's size. Most of my SD cards are 4Gb, I've only used a 2Gb one for RISC OS.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 9:27 pm

im 15 and very new to pi
i didnt know some of the things you just said but i know what you mean... roughly.

so i turn on my pi, run the expand_rootfs, then login as pi and go from there?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Error Message

Fri Mar 22, 2013 9:55 pm

Conaz9847 wrote: im 15 and very new to pi
i didnt know some of the things you just said but i know what you mean... roughly.

so i turn on my pi, run the expand_rootfs, then login as pi and go from there?
No problem, I'm an "old ..." to my youngest daughter who's your age, but there's a lot of Linux/Pi stuff I don't know about.
So, turn on the Pi, if raspi-config no longer runs automatically (it only does that on the very first boot) use
sudo raspi-config
to re-run it (you can do this again to set up other options like change password, keyboard type, timezone etc.). Select the expand_rootfs option, let the Pi re-boot (IIRC you're prompted - if not, when you're back on the "black screen" use
sudo shutdown -r now
to re-boot. More info. on raspi-config can be found in the wiki at http://elinux.org/RPi_raspi-config along with a lot of other useful stuff. Also you're welcome to visit my webpages (link on the right) to see what I've been upto - however some of the notes there are not that detailed, but there's quite a few pictures and screenshots.
Cheers,
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Conaz9847
Posts: 16
Joined: Thu Dec 06, 2012 6:09 pm

Re: Error Message

Fri Mar 22, 2013 10:57 pm

Thanks,
i tried the expand rootfs option and re booted but now there is a different error when downloading. :/
im just gunna re download everything and re do everything :D

Thanks,

Connor

Return to “Beginners”