duzydamian
Posts: 3
Joined: Thu Sep 13, 2012 6:38 am

apt-get upgrade and install new soft problem

Thu Sep 13, 2012 8:59 pm

Hi. Yesterday I started using my Raspebyry Pi. I have trouble with full upgrade and install new software. I try reboot, update and --fixmissing option.

Code: Select all

pi@raspberrypi ~ $ LC_ALL=C sudo apt-get update 
Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease       
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done

Code: Select all

pi@raspberrypi ~ $ LC_ALL=C sudo apt-get install htop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  ltrace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded.
Need to get 74.8 kB of archives.
After this operation, 212 kB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main htop armhf 1.0.1-1
  Could not connect to mirror.de.leaseweb.net:80 (46.165.198.1). - connect (110: Connection timed out)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/h/htop/htop_1.0.1-1_armhf.deb  Could not connect to mirror.de.leaseweb.net:80 (46.165.198.1). - connect (110: Connection timed out)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Code: Select all

pi@raspberrypi ~ $ LC_ALL=C sudo apt-get install htop --fix-missing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  ltrace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded.
Need to get 74.8 kB of archives.
After this operation, 212 kB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main htop armhf 1.0.1-1
  Could not connect to mirror.de.leaseweb.net:80 (46.165.198.1). - connect (110: Connection timed out)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/h/htop/htop_1.0.1-1_armhf.deb  Could not connect to mirror.de.leaseweb.net:80 (46.165.198.1). - connect (110: Connection timed out)
E: Internal Error, ordering was unable to handle the media swap

Code: Select all

i@raspberrypi ~ $ LC_ALL=C sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
yThe following packages have been kept back:
  alsa-base
The following packages will be upgraded:
  aptitude aptitude-common base-files console-setup console-setup-linux debconf debconf-i18n debconf-utils desktop-base dpkg dpkg-dev gconf-service gconf2
  gconf2-common ifupdown iso-codes keyboard-configuration kmod libbsd0 libc-bin libc-dev-bin libc6 libc6-dev libdpkg-perl libgail-3-0 libgail18
  libgconf-2-4 libgdu0 libgl1-mesa-glx libglapi-mesa libgpg-error0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libgudev-1.0-0 libicu-dev libicu48 libkmod2 liblapack3gf libpulse0 libsasl2-2 libsasl2-modules libsmbclient libssh2-1 libthai-data libthai0 libudev-dev
  libudev0 libwbclient0 locales lua5.1 multiarch-support samba-common sysv-rc tasksel tasksel-data udev xkb-data
61 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 62.5 MB of archives.
After this operation, 632 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main base-files armhf 6.11
  Could not connect to mirror.de.leaseweb.net:80 (46.165.198.1). - connect (110: Connection timed out)
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main dpkg armhf 1.16.8
  Unable to connect to mirror.de.leaseweb.net:http:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc6-dev armhf 2.13-35
  Unable to connect to mirror.de.leaseweb.net:http:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc-dev-bin armhf 2.13-35

duzydamian
Posts: 3
Joined: Thu Sep 13, 2012 6:38 am

Re: apt-get upgrade and install new soft problem

Thu Sep 13, 2012 10:25 pm

I forgot to add system info.

Raspbian “wheezy”
2012-08-16-wheezy-raspbian

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.2.27+ #102 PREEMPT Sat Sep 1 01:00:50 BST 2012 armv6l GNU/Linux

aaa801
Posts: 428
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire

Re: apt-get upgrade and install new soft problem

Thu Sep 13, 2012 10:54 pm

duzydamian wrote:I forgot to add system info.

Raspbian “wheezy”
2012-08-16-wheezy-raspbian

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.2.27+ #102 PREEMPT Sat Sep 1 01:00:50 BST 2012 armv6l GNU/Linux
looks like you might have a bad mirror there =/

duzydamian
Posts: 3
Joined: Thu Sep 13, 2012 6:38 am

Re: apt-get upgrade and install new soft problem

Thu Sep 13, 2012 11:03 pm

aaa801 wrote:
duzydamian wrote:I forgot to add system info.

Raspbian “wheezy”
2012-08-16-wheezy-raspbian

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.2.27+ #102 PREEMPT Sat Sep 1 01:00:50 BST 2012 armv6l GNU/Linux
looks like you might have a bad mirror there =/
But how it is possible ?

User avatar
The Captain
Posts: 49
Joined: Mon Aug 27, 2012 5:14 pm
Location: UK East Midlands

Re: apt-get upgrade and install new soft problem

Fri Sep 14, 2012 3:42 am

It looks as though the mirror "mirror.de.leaseweb.net" was unavailable at the time. Trying again later should get an alternative mirror served up by the redirector.

Also, Using apt-get upgrade all the time has its limits.

This upgrades only new versions of the software already installed. It doesn't add any new dependencies or "suggests" packages.

This is why the warning "packages held back" occurs.

Once in a while it is good to do apt-get dist-upgrade
This will look for extra files that are required for the new upgrades to work properly.

http://www.debian-administration.org/articles/69

Return to “Troubleshooting”