Libglib quebrado no debian 6

0

Então, há algum tempo, eu queria atualizar o mpd de 1.5 para 1.6, o que exigia uma versão mais nova do libglib (> = 2.31.8) no amd64, então eu os compilava do source como estava no debian oldstable e couldn ' t encontrar uma maneira mais fácil de fazer isso. Por várias razões, não tive acesso a esse sistema novamente até agora. Quando tentei rodar o mpd ele me deu o seguinte erro:

mpd/usr/bin/mpd: symbol lookup error: /usr/bin/mpd: undefined symbol: g_malloc_n failed!

Eu tentei reinstalar o mpd mas sem resultado, então tentei instalar o libglib antigo do gerenciador de pacotes desta vez. A instalação não fez muito, já que relatou que o libglib é a versão mais recente e, quando tentou instalar alguns pacotes adicionais (como o libglib2.0-dev ou o libglib2.0-doc), ele não deu este erro:

* Installing 1 assembly from libglib2.0-cil into Mono
/usr/bin/mono: symbol lookup error: /usr/bin/mono: undefined symbol: g_malloc0_n
Use of uninitialized value $_ in scalar chomp at /usr/share/cli-common/runtimes.d/mono line 144.
Use of uninitialized value $fullname in concatenation (.) or string at /usr/share/cli-common/runtimes.d/mono line 113.
/usr/bin/mono: symbol lookup error: /usr/bin/mono: undefined symbol: g_malloc0_n

Então tentei a minha sorte com o apt-get --reinstall libglib2.0 e a saída foi esta:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
0 upgraded, 0 newly installed, 8 reinstalled, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/6,964 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 55452 files and directories currently installed.)
Preparing to replace libglib2.0-0 2.24.2-1 (using .../libglib2.0-0_2.24.2-1_amd64.deb) ...
Unpacking replacement libglib2.0-0 ...
Preparing to replace libglib2.0-data 2.24.2-1 (using .../libglib2.0-data_2.24.2-1_all.deb) ...
Unpacking replacement libglib2.0-data ...
Preparing to replace libglib2.0-dev 2.24.2-1 (using .../libglib2.0-dev_2.24.2-1_amd64.deb) ...
Unpacking replacement libglib2.0-dev ...
Preparing to replace libglib2.0-doc 2.24.2-1 (using .../libglib2.0-doc_2.24.2-1_all.deb) ...
Unpacking replacement libglib2.0-doc ...
Preparing to replace libglib2.0-0-dbg 2.24.2-1 (using .../libglib2.0-0-dbg_2.24.2-1_amd64.deb) ...
Unpacking replacement libglib2.0-0-dbg ...
Preparing to replace libglib2.0-0-refdbg 2.24.2-1 (using .../libglib2.0-0-refdbg_2.24.2-1_amd64.deb) ...
Unpacking replacement libglib2.0-0-refdbg ...
Setting up mono-gac (2.6.7-5.1) ...
* Installing 1 assembly from libglib2.0-cil into Mono
/usr/bin/mono: symbol lookup error: /usr/bin/mono: undefined symbol: g_malloc0_n
Use of uninitialized value $_ in scalar chomp at /usr/share/cli-common/runtimes.d/mono line 144.
Use of uninitialized value $fullname in concatenation (.) or string at /usr/share/cli-common/runtimes.d/mono line 113.
/usr/bin/mono: symbol lookup error: /usr/bin/mono: undefined symbol: g_malloc0_n
E: installing Assembly /usr/lib/cli/glib-sharp-2.0/glib-sharp.dll failed
E: Installation of libglib2.0-cil with /usr/share/cli-common/runtimes.d/mono failed
dpkg: error processing mono-gac (--configure):
 subprocess installed post-installation script returned error exit status 9
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of mono-runtime:
 mono-runtime depends on mono-gac (= 2.6.7-5.1); however:
  Package mono-gac is not configured yet.
dpkg: error processing mono-runtime (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-corlib2.0-cil:
 libmono-corlib2.0-cil depends on mono-runtime (>= 2.6.7); however:
  Package mono-runtime is not configured yet.
 libmono-corlib2.0-cil depends on mono-runtime (<< 2.6.8); however:
  Package mono-runtime is not configured yet.
dpkg: error processing libmono-corlib2.0-cil (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      configured to not write apport reports
                                                                            dpkg: dependency problems prevent configuration of libmono-system2.0-cil:
 libmono-system2.0-cil depends on libmono-corlib2.0-cil (>= 2.6.3); however:
  Package libmono-corlib2.0-cil is not configured yet.
 libmono-system2.0-cil depends on mono-runtime (>= 2.6.7); however:
  Package mono-runtime is not configured yet.
 libmono-system2.0-cil depends on mono-runtime (<< 2.6.8); however:
  Package mono-runtime is not configured yet.
dpkg: error processing libmono-system2.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-posix2.0-cil:
 libmono-posix2.0-cil depends on libmono-corlib2.0-cil (>= 2.6.3); however:
  Package libmono-corlib2.0-cil is not configured yet.
 libmono-posix2.0-cil depends on libmono-system2.0-cil (>= 2.6.3); however:
  Package libmono-system2.0-cil is not configured yet.
 libmono-posix2.0-cil depends on mono-runtime (>= 2.4); however:
  Package mono-runtime is not configured yet.
dpkg: error processing libmono-posix2.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libglib2.0-cil:
 libglib2.0-cil depends on libmono-corlib2.0-cil (>= 1.2.2.1); however:
  Package libmono-corlib2.0-cil is not configured yet.
 libglib2.0-cil depends on libmono-system2.0-cil (>= 2.4.3); however:
  Package libmono-system2.0-cil is not configured yet.
dpkg: error processing libglib2.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuraconfigured to not write apport reports
                                                                                 configured to not write apport reports
                 configured to not write apport reports
                                                       configured to not write apport reports
                                                                                             tion of libglib2.0-cil-dev:
 libglib2.0-cil-dev depends on libglib2.0-cil (= 2.12.10-1); however:
  Package libglib2.0-cil is not configured yet.
dpkg: error processing libglib2.0-cil-dev (--configure):
 dependency problems - leaving unconfigured
Setting up libglib2.0-0 (2.24.2-1) ...
Setting up libglib2.0-data (2.24.2-1) ...
Setting up libglib2.0-dev (2.24.2-1) ...
Setting up libglib2.0-doc (2.24.2-1) ...
Setting up libglib2.0-0-dbg (2.24.2-1) ...
Setting up libglib2.0-0-refdbg (2.24.2-1) ...
Errors were encountered while processing:
 mono-gac
 mono-runtime
 libmono-corlib2.0-cil
 libmono-system2.0-cil
 libmono-posix2.0-cil
 libglib2.0-cil
 libglib2.0-cil-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

O apt-get check não encontrou nenhum deps quebrado, então não ajudou muito. Felizmente, nada importante parece estar quebrado. Como eu disse, porque houve algum tempo desde que eu compilei o libglib, eu realmente não lembro o que eu fiz, e não tenho certeza de como revertê-lo.

    
por svart 26.02.2014 / 22:41

1 resposta

1

Então, o problema foi causado por eu ter compilado outra versão do glib em /usr/local/ . Como eu não me lembrava da versão exata que havia compilado, fui para /usr/local/lib/pkgconfig/ e olhei para o arquivo libglib2.0-0.pc , que relatou a versão 2.16. Como eu não tinha os arquivos de origem, fiz o download deles novamente de link e fez make uninstall , removendo assim todos os arquivos problemáticos, e com um apt-get update && apt-get upgrade tudo voltou ao normal.

    
por 27.02.2014 / 23:46