I surely made a mistake trying to install 'audacity v1.3.8 beta'.
Someone told me that this new beta version was really different from
earlier releases, so I wanted to test it.
Since 'apt-get install audacity' told me that my already installed 1.3.5
beta version was the last version available, I decided to try 'testing'
directories in my /etc/apt/sources.list. This and the apt-get update
being done, I renewed my attempt with apt-get install. This time, it did
start to install v1.3.8 of audacity. But I encountered a problem !
Before the end of install process, I got this message :
"
Configuring libc6
Running services and programs that are using NSS need to be restarted,
otherwise they might not be able to do lookup or authentication any
more. The installation process is able to restart some services (such as
ssh or telnetd), but other programs cannot be restarted automatically.
One such program that needs manual stopping and restart after the glibc
update by yourself is xdm - because automatic restart might disconnect
your active X11 sessions.
This script detected the following installed services which must be
stopped before the upgrade : gdm
If you want to interrupt the upgrade now and continue later, please
answer no to the question below.
Do you want to upgrade glibc now ?
"
I replied 'no', and, so far, I have not attempted to continue this
install process of 'audacity' and the upgrade of glibc. My
/etc/apt/sources.list have been restaured to what it was before, that is :
deb http://ftp.fr.debian.org/debian/ lenny main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ lenny main non-free contrib
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
and I did an 'apt-get update' too.
Ever since then, I am encountering problems and error messages when
trying to install something. For instance, if I do :
#apt-get install gphoto2
the install process starts... then :
"
Can't exec "locale": no file or directory of this type at
/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp
at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg : � ldconfig � not found in the variable PATH.
dpkg: 1 expected program not found in the variable PATH.
NB : the variable PATH of the superuser should contain /usr/local/sbin,
/usr/sbin et /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
I got something similar when trying to install flashplugin.
Should I go finish the upgrade of libc6 which I interrupted before the
end as explained above ? On the contrary, would I be better cancelling
the previous unfinished job (but how to cancel it ?) and go back to libc5 ?
Thanks in advance for your help
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
[...]
> Since 'apt-get install audacity' told me that my already installed
> 1.3.5 beta version was the last version available, I decided to try
> 'testing' directories in my /etc/apt/sources.list. This and the
> apt-get update being done, I renewed my attempt with apt-get
> install. This time, it did start to install v1.3.8 of audacity. But
> I encountered a problem ! Before the end of install process, I got
> this message :
>
> "
> Configuring libc6
[...]
> Do you want to upgrade glibc now ?
> "
>
> I replied 'no', and, so far, I have not attempted to continue this
> install process of 'audacity' and the upgrade of glibc.
[...]
> Ever since then, I am encountering problems and error messages when
> trying to install something. For instance, if I do :
>
> #apt-get install gphoto2
>
> the install process starts... then :
>
> "
> Can't exec "locale": no file or directory of this type at
> /usr/share/perl5/Debconf/Encoding.pm line 16.
> Use of uninitialized value $Debconf::Encoding::charmap in scalar
> chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
> dpkg : « ldconfig » not found in the variable PATH.
> dpkg: 1 expected program not found in the variable PATH.
> NB : the variable PATH of the superuser should contain
> /usr/local/sbin, /usr/sbin et /sbin.
> E: Sub-process /usr/bin/dpkg returned an error code (2)
/usr/bin/locale and especially /sbin/ldconfig are important programs
which are part of the libc-bin package. Your aborted libc6 upgrade seems
to have removed this package (and possibly others), or something is
wrong with your $PATH.
Please post the output of this command
dpkg -l libc6\* libc-\* | awk '/^[^D|+]/{print $1,$2,$3}'
so that we can see the status of libc-related packages on your system.
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
new-host:/home/bd# dpkg -l libc6\* libc-\* | awk '/^[^D|+]/{print $1,$2,$3}'
Souhait=inconnU/Install�/suppRim�/Purg�/H=� garder
rc libc-bin 2.9-25
un libc-dev <n�ant>
ii libc6 2.7-18
ii libc6-dev 2.7-18
ii libc6-i686 2.7-18
un libc6.1 <n�ant>
new-host:/home/bd#
That does not look too bad on first glance, you seem to have the Lenny
versions of the libc6* packages installed, and the testing version of
libc-bin was removed again. In that case /sbin/ldconfig should still be
part of libc6 itself. What do you get from:
file /sbin/ldconfig
dpkg -L libc6 | grep ldconfig
echo $PATH
(the last one as root)
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Here is what I get :
file /sbin/ldconfig
/sbin/ldconfig: ERROR: cannot open `/sbin/ldconfig' (No such file or directory)
dpkg -L libc6 | grep ldconfig
(it just returns the shell, nothing else)
root@new-host:/home/bd# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[...]
> >>new-host:/home/bd# dpkg -l libc6\* libc-\* | awk '/^[^D|+]/{print $1,$2,$3}'
> >>Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
> >>rc libc-bin 2.9-25
> >>un libc-dev <néant>
> >>ii libc6 2.7-18
> >>ii libc6-dev 2.7-18
> >>ii libc6-i686 2.7-18
> >>un libc6.1 <néant>
[...]
> Here is what I get :
>
> file /sbin/ldconfig
> /sbin/ldconfig: ERROR: cannot open `/sbin/ldconfig' (No such file or directory)
>
> dpkg -L libc6 | grep ldconfig
> (it just returns the shell, nothing else)
It seems that dpkg is confused: It claims that libc6 version 2.7-18 is
installed without problems, but it does not know about /sbin/ldconfig
and the file itself is not present on your system.
> root@new-host:/home/bd# echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
That is OK at least.
I propose to try reinstalling libc6 2.7-18 with dpkg. The necessary .deb
file should still be in your apt cache, so this might work:
dpkg -i /var/cache/apt/archives/libc6_2.7-18_*.deb
If the .deb is missing then you can download it manually with your
favorite browser:
http://packages.debian.org/lenny/libc6
(Scroll down to the section "Download libc6" and click on the link for
your architecture in the table.)
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
I will test this right away. Before doing this, so as to make sure I
won't forget later, I am pasting an output below :
bd@new-host:/var/cache/apt/archives$ ls -l libc6*
-r--r--r-- 1 root root 4437976 ao� 26 03:06 libc6_2.7-18_i386.deb
-rw-r--r-- 1 root root 3802420 ao� 17 00:05 libc6_2.9-25_i386.deb
-rw-r--r-- 1 root root 3802602 ao� 31 19:02 libc6_2.9-26_i386.deb
-rw-r--r-- 1 root root 3377088 jan 5 2009 libc6-dev_2.7-18_i386.deb
-rw-r--r-- 1 root root 4802506 ao� 17 00:05 libc6-dev_2.9-25_i386.deb
-rw-r--r-- 1 root root 4803706 ao� 31 19:02 libc6-dev_2.9-26_i386.deb
-rw-r--r-- 1 root root 1234710 ao� 17 00:05 libc6-i686_2.9-25_i386.deb
-rw-r--r-- 1 root root 1234902 ao� 31 19:02 libc6-i686_2.9-26_i386.deb
The file dates are interresting. I have several libc6 packages. The ones
dated aug 31 (libc6_2.9-26_i386.deb and libc6-i686_2.9-26_i386.deb) must
be the ones that tried to get install in the process of installing
'audacity 1.3.8 testing'. The install process clearly stated that it was
going to update my libc6. The only package dated aug 26 must be the one
that got installed in the process of setting up my new Lenny at that
date ; there was no associated dev package. I don't know what are
packages dated aug17, since it was a few days before I installed Lenny ;
at the time I was still running Sarge and, since I did not upgrade but
reformated and installed from scratch, I should have no remains from old
Sarge in my system. What is puzzling me is that the package dated aug 16
is of a newer version than the one dated aug 26. An other thing that
come to my attention is that all of these deb package files are 'rw',
except the first one that appears on the list, dated aug26, the date of
my Lenny install.
This being said, I will be trying to re-install libc6. Coming back soon.
> If the .deb is missing then you can download it manually with your
> favorite browser:
>
> http://packages.debian.org/lenny/libc6
>
> (Scroll down to the section "Download libc6" and click on the link for
> your architecture in the table.)
>
>
--
Here is what I get :
root@new-host:/home/bd# dpkg -i /var/cache/apt/archives/libc6_2.7-18_*.deb
dpkg : � ldconfig � introuvable dans la variable PATH.
dpkg: 1 programme(s) attendu(s) introuvable(s) dans la variable PATH.
NB : la variable PATH du superutilisateur doit normalement contenir
/usr/local/sbin, /usr/sbin et /sbin.
root@new-host:/home/bd#
Maybe I should run 'ldconfig' ? I wouldn't dare to test this without
more knowledge ; I wouldn't know what options and arguments to add.
> If the .deb is missing then you can download it manually with your
> favorite browser:
>
> http://packages.debian.org/lenny/libc6
>
> (Scroll down to the section "Download libc6" and click on the link for
> your architecture in the table.)
>
>
--
[...]
> Here is what I get :
>
>
> root@new-host:/home/bd# dpkg -i /var/cache/apt/archives/libc6_2.7-18_*.deb
> dpkg : « ldconfig » introuvable dans la variable PATH.
> dpkg: 1 programme(s) attendu(s) introuvable(s) dans la variable PATH.
> NB : la variable PATH du superutilisateur doit normalement contenir
> /usr/local/sbin, /usr/sbin et /sbin.
> root@new-host:/home/bd#
>
> Maybe I should run 'ldconfig' ? I wouldn't dare to test this
> without more knowledge ; I wouldn't know what options and arguments
> to add.
The problem is that ldconfig (and probably other important stuff) is
missing on your system; dpkg wants to call ldconfig before it installs
the libc6 package, therefore it is jammed. The next thing you can try is
to split the installation into two steps:
dpkg --unpack /var/cache/apt/archives/libc6_2.7-18_i386.deb
dpkg --configure libc6
That might work if "--unpack" does not require dpkg to run ldconfig; I
do not know the internals of dpkg well enough to judge the chances of
success.
If the above does not work then you may have to resort to manually
extracting the files contained in libc6_2.7-18_i386.deb:
http://www.debian.org/doc/manuals/reference/ch02.en.html#_extracting_package_without_dpkg
Alternatively you could try to fool dpkg by copying /bin/true to /sbin
and then rename the copy to "ldconfig". Again I would not dare to
predict the chances of success of this rather dirty trick.
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
It does... Therefore that doesn't work
> I
> do not know the internals of dpkg well enough to judge the chances of
> success.
>
> If the above does not work then you may have to resort to manually
> extracting the files contained in libc6_2.7-18_i386.deb:
>
> http://www.debian.org/doc/manuals/reference/ch02.en.html#_extracting_package_without_dpkg
>
>
So far I had no success with this process. If I go into
'/var/cache/apt/archives' where my libc6 .deb files are, and type :
ar x libc6_2.9-26_i386.deb
I get nothing
> Alternatively you could try to fool dpkg by copying /bin/true to /sbin
> and then rename the copy to "ldconfig". Again I would not dare to
> predict the chances of success of this rather dirty trick.
>
>
--
[...]
> >>root@new-host:/home/bd# dpkg -i /var/cache/apt/archives/libc6_2.7-18_*.deb
> >>dpkg : « ldconfig » introuvable dans la variable PATH.
> >>dpkg: 1 programme(s) attendu(s) introuvable(s) dans la variable PATH.
> >>NB : la variable PATH du superutilisateur doit normalement contenir
> >>/usr/local/sbin, /usr/sbin et /sbin.
> >>root@new-host:/home/bd#
> >>
> >>Maybe I should run 'ldconfig' ? I wouldn't dare to test this
> >>without more knowledge ; I wouldn't know what options and arguments
> >>to add.
> >
> >The problem is that ldconfig (and probably other important stuff) is
> >missing on your system; dpkg wants to call ldconfig before it installs
> >the libc6 package, therefore it is jammed.
[...]
> >If the above does not work then you may have to resort to manually
> >extracting the files contained in libc6_2.7-18_i386.deb:
> >
> >http://www.debian.org/doc/manuals/reference/ch02.en.html#_extracting_package_without_dpkg
>
> So far I had no success with this process. If I go into
> '/var/cache/apt/archives' where my libc6 .deb files are, and type :
>
> ar x libc6_2.9-26_i386.deb
>
> I get nothing
What does "nothing" mean here, "no output" or "no files extracted"?
(The former would be normal and the latter could be due to missing write
privileges.) There is no reason to clutter /var/cache/apt/archives with
the extracted files; the instructions to which I referred clearly show
the command being run from some other directory (you do not even have to
be root).
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Since all error messages mentioned that 'ldconfig' was missing, I
checked my DELL laptop on Ubuntu 8.04, which was released about the same
date as Debian Lenny. On that Ubuntu system, I found two executable
files that are absent from my Debian system : /usr/sbin/ldconfig and
/sbin/ldconfig.real. Such files must have been on my system at one time,
since the man file is still there ; the executable may have been erased
by God only knows what evil process. So, I recuperated those two files
from my Ubuntu system and copied them into the same directories with the
same rights on my Debian machine. Then I typed :
#ldconfig
The shell came back without a word of protest. So, some process took place.
This being done, I first tried to install 'gphoto2', which had
repeatedly failed so far. This time, it did work. Gphoto2 is now
installed and its functions appear to operate correctly. Still, the
install process returned a few remarks, but it went to its end. Below
are the comments ; they include mentions of 'ttf-mscorefonts-installer'
which I have not found how to remove from the list of unfinished tasks
to be retried ; I have abredged most lines concerning
'ttf-mscorefonts-installer'
# apt-get install gphoto2
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances
Lecture des informations d'�tat... Fait
Les paquets suppl�mentaires suivants seront install�s :
libcdk5
Paquets sugg�r�s :
gtkam
Les NOUVEAUX paquets suivants seront install�s :
gphoto2 libcdk5
0 mis � jour, 2 nouvellement install�s, 0 � enlever et 31 non mis � jour.
1 partiellement install�s ou enlev�s.
Il est n�cessaire de prendre 0o/319ko dans les archives.
Apr�s cette op�ration, 1233ko d'espace disque suppl�mentaires seront
utilis�s.
Souhaitez-vous continuer [O/n] ?
Can't exec "locale": Aucun fichier ou r�pertoire de ce type at
/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp
at /usr/share/perl5/Debconf/Encoding.pm line 17.
S�lection du paquet libcdk5 pr�c�demment d�s�lectionn�.
(Lecture de la base de donn�es... 110771 fichiers et r�pertoires d�j�
install�s.)
D�paquetage de libcdk5 (� partir de .../libcdk5_5.0.20060507-1_i386.deb) ...
S�lection du paquet gphoto2 pr�c�demment d�s�lectionn�.
D�paquetage de gphoto2 (� partir de .../gphoto2_2.4.0-1_i386.deb) ...
Traitement des actions diff�r�es (� triggers �) pour � man-db �...
Param�trage de ttf-mscorefonts-installer (2.7) ...
Can't exec "locale": Aucun fichier ou r�pertoire de ce type at
/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp
at /usr/share/perl5/Debconf/Encoding.pm line 17.
These fonts were provided by Microsoft "in the interest of cross-
platform compatibility". This is no longer the case, but they are
still available from third parties.
You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
--2009-09-05 17:14:49--
http://surfnet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
R�solution de surfnet.dl.sourceforge.net... �chec: Connexion termin�e
par expiration du d�lai d'attente.
wget: unable to resolve host address `surfnet.dl.sourceforge.net'
........... (stuff deleted)
................
andale32.exe: No such file or directory
All done, errors in processing 1 file(s)
dpkg : erreur de traitement de ttf-mscorefonts-installer (--configure) :
le sous-processus post-installation script a retourn� une erreur de
sortie d'�tat 1
Param�trage de libcdk5 (5.0.20060507-1) ...
Param�trage de gphoto2 (2.4.0-1) ...
Des erreurs ont �t� rencontr�es pendant l'ex�cution :
ttf-mscorefonts-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
It is to be noticed that install errors are reported only for
'ttf-mscorefonts-installer', not for 'gphoto2'
After this first test, I tried to reinstall libc6, which had so far led
to failures.
# aptitude reinstall libc6
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances
Lecture des informations d'�tat... Fait
Lecture de l'information d'�tat �tendu
Initialisation de l'�tat des paquets... Fait
�criture de l'information d'�tat �tendu... Fait
Lecture des descriptions de t�ches... Fait
Les paquets suivants seront R�INSTALL�S :
libc6
Les paquets partiellement install�s suivants seront configur�s :
ttf-mscorefonts-installer
0 paquets mis � jour, 0 nouvellement install�s, 1 r�install�s, 0 �
enlever et 31 non mis � jour.
Il est n�cessaire de t�l�charger 0o/4438ko d'archives. Apr�s
d�paquetage, 0o seront utilis�s.
�criture de l'information d'�tat �tendu... Fait
Can't exec "locale": Aucun fichier ou r�pertoire de ce type at
/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp
at /usr/share/perl5/Debconf/Encoding.pm line 17.
Pr�configuration des paquets...
(Lecture de la base de donn�es... 110812 fichiers et r�pertoires d�j�
install�s.)
Pr�paration du remplacement de libc6 2.7-18 (en utilisant
.../archives/libc6_2.7-18_i386.deb) ...
Can't exec "locale": No such file or directory at
/usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp
at /usr/share/perl5/Debconf/Encoding.pm line 17.
D�paquetage de la mise � jour de libc6 ...
Traitement des actions diff�r�es (� triggers �) pour � man-db �...
Param�trage de libc6 (2.7-18) ...
Installation de la nouvelle version du fichier de configuration
/etc/gai.conf ...
Installation de la nouvelle version du fichier de configuration
/etc/bindresvport.blacklist ...
invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.
dpkg : erreur de traitement de libc6 (--configure) :
le sous-processus post-installation script a retourn� une erreur de
sortie d'�tat 100
Param�trage de ttf-mscorefonts-installer (2.7) ...
These fonts were provided by Microsoft "
............ stuff deleted
....................................
All done, errors in processing 1 file(s)
dpkg : erreur de traitement de ttf-mscorefonts-installer (--configure) :
le sous-processus post-installation script a retourn� une erreur de
sortie d'�tat 1
Param�trage de libc6 (2.7-18) ...
invoke-rc.d: unknown initscript, /etc/init.d/glibc.sh not found.
dpkg : erreur de traitement de libc6 (--configure) :
le sous-processus post-installation script a retourn� une erreur de
sortie d'�tat 100
Des erreurs ont �t� rencontr�es pendant l'ex�cution :
ttf-mscorefonts-installer
libc6
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances
Lecture des informations d'�tat... Fait
Lecture de l'information d'�tat �tendu
Initialisation de l'�tat des paquets... Fait
Lecture des descriptions de t�ches... Fait
So, even though this reinstall went a lot farther than usual, I don't
know to what point I really got.
What should I do next ?
How do you know those files from Ubuntu system works on Debian. I do
not think you even checked version. There is no binary compatibility
gurantee even though it works sometims.
FYI: I only have /sbin/ldconfig and no /sbin/ldconfig.real on my lenny.
Your action may have work as emergency tactics but this kind of action
requires full reinstall after backing up your data on the system.
It looks to me you have broken system sometime ago by yourself.
Reinstall is the easiest way to get same state for such case.
Osamu