LinuxForum.Fans
Тема

Не работает apt-get

Автор: drozel 4 сообщений 2862 просмотров
#259824

Здравствуйте.

Следующая ситуация с Ubuntu 10.10 Server.
Установлен postgres(на нем висит 1с). С какого то момента стала происходить следующая вещь:

Устанавливаем любой пакет или обновление

text
sudo apt-get upgrade

А в ответ:

text
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 postgresql-client-8.4 : Depends: libpq5 (>= 8.4~0cvs20090328) but it is not installed
                         Depends: postgresql-client-common (>= 104~) but it is not installed
E: Unmet dependencies. Try using -f.

Если делать, как сказано sudo apt-get -f install

text

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libpq5 postgresql-client-common
The following NEW packages will be installed:
  libpq5 postgresql-client-common
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/148kB of archives.
After this operation, 418kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 119271 files and directories currently installed.)
Unpacking libpq5 (from .../libpq5_8.4.11-0ubuntu0.10.10_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libpq5_8.4.11-0ubuntu0.10.10_i386 .deb (--unpack):
 trying to overwrite '/usr/lib/libpq.so.5.2', which is also in package postgresql-libs 8.4.3-4.1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking postgresql-client-common (from .../postgresql-client-common_111_all.deb) ...
dpkg: error processing /var/cache/apt/archives/postgresql-client-common_111_all.deb (--unpack):
 trying to overwrite '/usr/bin/vacuumlo', which is also in package postgresql-contrib 8.4.3-4.1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libpq5_8.4.11-0ubuntu0.10.10_i386.deb
 /var/cache/apt/archives/postgresql-client-common_111_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

при попытке установить libpq5 из deb с помощью dpkg ругается

text
Unpacking libpq5 (from .../libpq5_8.4.11-0ubuntu0.10.10_i386.deb) ...
dpkg: error processing /home/admin/files/libpq5_8.4.11-0ubuntu0.10.10_i386.deb (--install):
 trying to overwrite '/usr/lib/libpq.so.5.2', which is also in package postgresql-libs 8.4.3-4.1
Errors were encountered while processing:
 /home/admin/files/libpq5_8.4.11-0ubuntu0.10.10_i386.deb

Чем можно помочь в этой ситуации?
Заранее благодарен.

#260010

Попробуйте удалить эти два postgresql-пакета, возможно, с помощью --force-all,
а затем установить те два, которые пытались. В крайнем случае можно будет
установить удалённые обратно.
Либо, если это ошибка разработчиков, ждать, пока исправят.

Пётр.

#260022

левую репу не использовали?

#273790
"Харитон" написал:
вую репу не использовали?

Использовал deb пакеты postgres от 1С и, каюсь, забыл об этом. Обновления не запретил. В результате обновились какие то пакеты postgres и возникла проблема.
Всем спасибо за помощь!

Войдите или зарегистрируйтесь, чтобы ответить.