Hello,
mine is a long story:
I wanted to install GRASS GIS 6.4 from the binaries, which means that I had to make some symbolic links from libgdal.so.1 to libgdal1.5.0.so.1 and so on. In the end it is necessary to run ldconfig, right?
When I run ldconfig, I get a very big mess, the beginning of it being:
Code:
jdelgado@jdelgado-laptop:~$ ldconfig
/sbin/ldconfig.real: �e is not a known library type
/sbin/ldconfig.real: ���@*k�Q-��Vѵ���P���N\|�
����m�(����c�:��82�i�0K=K�E�`���ż�b����/n��( �Lm�L_����t�����h��
Z?V��]������5I����)-4�T��b�O4xځ�quמ
After I run ldconfig, my prompt (like the beginning of each line on my shell) is not written in normal characters, but in very strange ones, like this:
Code:
┘␍␊┌±▒␍⎺@┘␍␊┌±▒␍⎺-┌▒⎻├⎺⎻:·$
I can actually keep typing and make commands, but I simply cannot understand anything. I have normally to close the terminal and open it again.
The problem is after I started with these operations I could never open synaptic again or do any kind of apt-get: I always get the following (which was already discussed in other threads, and believe me, I have tried them all):
Code:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.
I do exactly that, dpkg --configure -a, and the result is the same as when I do ldconfig (the weird characters).
This is why I want to install dpkg from source, which I did. But I got the following error:
Code:
jdelgado@jdelgado-laptop:~/Desktop/dpkg-1.14.12ubuntu4$ make
make all-recursive
make[1]: Entering directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4'
Making all in intl
make[2]: Entering directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/intl'
Making all in getopt
make[2]: Entering directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/getopt'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/getopt'
Making all in lib
make[2]: Entering directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/lib'
: trigdeferred.l
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -DCONFIGDIR=\"/usr/local/etc/dpkg\" -DCOPYINGFILE=\"/usr/local/share/common-licenses/GPL-2\" -g -O2 -MT trigdeferred.o -MD -MP -MF .deps/trigdeferred.Tpo -c -o trigdeferred.o trigdeferred.c
gcc: trigdeferred.c: No such file or directory
gcc: no input files
make[2]: *** [trigdeferred.o] Error 1
make[2]: Leaving directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jdelgado/Desktop/dpkg-1.14.12ubuntu4'
make: *** [all] Error 2
I don't know exactly what the problem is, if it is trigdeferred.c that is missing or something else (anyway I don't have a clue of what trigdeferred.c is...).
I decided to ignore the error and move forward, which brought me to run 'dpkg --configure -a' again. This time, there are no more weird characters but only a error message:
Code:
dpkg: failed to open package info file `/usr/local/var/dpkg/status' for reading: No such file or directory
I simply 'touch status' on the right directory. Then:
Code:
dpkg: failed to open package info file `/usr/local/var/dpkg/available' for reading: No such file or directory
and I just 'touch available' on the same directory.
In the end, I run 'dpkg --configure -a' and nothing happens. And I still can not run synaptic or any apt-get or run ldconfig, which is very critical for me.
Hope you made it to the end of the message
Thanks for your help
jose miguel
Bookmarks