проблема с установкой apache.

Автор rencom, 11 сентября 2016, 11:03:27

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

rencom

Пришлось заняться администрированием сервера
Debian 7 Мало что понимаю , поэтому вопросы к сообществу .


Не могу обновить apache
При попытке выполнить
apt-get -f install

вот такой вывод

ЦитироватьReading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libclass-isa-perl libgd2-xpm libjpeg8 libplrpc-perl libswitch-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils fontconfig-config
  fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg62-turbo libjson-c2
  libpng16-16 libtiff5 libvpx1 libwebp6 php5-cli php5-common php5-gd php5-json
  php5-mcrypt php5-mysql ttf-dejavu-core
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom
  libgd-tools php-pear
Recommended packages:
  php5-readline
The following packages will be REMOVED:
  apache2-mpm-prefork apache2.2-bin apache2.2-common php5-xcache
The following NEW packages will be installed:
  apache2-bin apache2-data fonts-dejavu-core libgd3 libjbig0 libjpeg62-turbo
  libjson-c2 libpng16-16 libtiff5 libvpx1 libwebp6 php5-json
The following packages will be upgraded:
  apache2 apache2-utils fontconfig-config libfontconfig1 php5-cli php5-common
  php5-gd php5-mcrypt php5-mysql ttf-dejavu-core
10 upgraded, 12 newly installed, 4 to remove and 233 not upgraded.
19 not fully installed or removed.
Need to get 0 B/8140 kB of archives.
After this operation, 6530 kB of additional disk space will be used.
Do you want to continue [Y/n]? [master 592de65] saving uncommitted changes in /etc prior to apt run
1 file changed, 1 insertion(+), 1 deletion(-)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26573 files and directories currently installed.)
Preparing to unpack .../apache2-bin_2.4.23-4_amd64.deb ...
Unpacking apache2-bin (2.4.23-4) ...
dpkg: error processing archive /var/cache/apt/archives/apache2-bin_2.4.23-4_amd64.deb (--unpack):
trying to overwrite '/usr/lib/apache2/modules/httpd.exp', which is also in package apache2.2-bin 2.2.22-13+deb7u6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/apache2-bin_2.4.23-4_amd64.deb


куда копать ?

ogost

Покажите вывод cat /etc/apt/sources.list.
Переименуйте тему, название должно отражать суть вопроса.

rencom


ogost

Мдаа, ну и как вы дожили до жизни такой? С такой мешаниной релизов не мудрено, что не работает. Удивительно, как всё ещё работает.
Почитайте хоть что такое релизы, и почему их смешивание - риск прострелить себе ногу.
Решение №1: Делаете полный бэкап данных. Приводите sources.list в порядок, обновляетесь до testing/stretch. Путь рискованный, из-за мешанины результат непредсказуем.
Решение №2: Делаете полный бэкап данных. Устанавливаете систему заново, настройка, разворачиваете данные.
В любом случае простоя сервера не избежать.
На будущее, не смешивайте релизы, не устанавливайте софт из сторонних источников.

rencom

#4
ВОТ так правильно ?

deb http://httpredir.debian.org/debian/ wheezy main contrib non-free
deb-src http://httpredir.debian.org/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://httpredir.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ wheezy-updates main contrib non-free


* Используйте теги код для оформления сообщения, ihammers.

Deportivo

#5
Цитата: ogost от 15 сентября 2016, 04:21:15
Решение №1: Делаете полный бэкап данных. Приводите sources.list в порядок, обновляетесь до testing/stretch. Путь рискованный, из-за мешанины результат непредсказуем.
Стремно как то стреч на сервер, не?

Cообщение объединено 16 сентября 2016, 03:36:59

Цитата: rencom от 15 сентября 2016, 20:04:00
ВОТ так правильно ?

deb http://httpredir.debian.org/debian/ wheezy main contrib non-free
deb-src http://httpredir.debian.org/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://httpredir.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ wheezy-updates main contrib non-free
Для седьмого я бы рекомендовал так deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.debian.org/debian wheezy/ main contrib non-free
или deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://mirror.yandex.ru/debian/ wheezy main contrib non-free
поскольку исходники вам наверное ни к чему, собирать пакеты с них вам не придется.
Debian 9 Lenovo G5030

ihammers

Цитата: Deportivo от 16 сентября 2016, 03:35:46Стремно как то стреч на сервер, не?
Смотря что и как вы будете делать и настраивать.
Debian GNU/Linux Bookworm, LXQt/OpenBox: AMD Ryzen 5 5600G / 64Gb RAM
_______________________________
Debian GNU/Linux Bookworm, без графики: AMD Phenon X4 / 16Gb RAM
_______________________________
Debian GNU/Linux Bookworm, LXQt/OpenBox: Acer Aspire One 722 AMD C60 / 8Gb RAM / ATI HD6290

Deportivo

Я то нет, у меня не сервер. Он то сможет  что то исправить, если даже с репозиториями ералаш? На его месте рисковать на сервере не стоит.
Debian 9 Lenovo G5030

ogost

Посоветовал stretch, ибо в сырцах он стоит, значит есть пакеты оттуда. Думаю так будет проще обновляться.

rencom

#9
Частично заработало . Большое спасибо за помощь.

Я правильно понял что  хватит 2х строк  ? 
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.debian.org/debian wheezy/ main contrib non-free

почему то при установке imagemagick ругается

ЦитироватьReading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
imagemagick : Depends: libgomp1 (>= 4.2.1) but it is not going to be installed
               Depends: libmagickcore5 (>= 8:6.7.7.10) but it is not going to be installed
               Depends: libmagickwand5 (>= 8:6.7.7.10) but it is not going to be installed

Deportivo

#10
Цитата: rencom от 16 сентября 2016, 20:33:34

почему то при установке imagemagick ругается

ЦитироватьReading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
imagemagick : Depends: libgomp1 (>= 4.2.1) but it is not going to be installed
               Depends: libmagickcore5 (>= 8:6.7.7.10) but it is not going to be installed
               Depends: libmagickwand5 (>= 8:6.7.7.10) but it is not going to be installed

Оно пишет, что вы не можете установить некоторые пакеты, потому что используете нестабильный дистрибутив. У вас смешались пакеты от разных дистрибутивов. Теперь оно не может удовлетворить зависимости. Хотя в 7 есть  libgomp1 версии  4.7.2-5 и  libmagickcore5 8:6.7.7.10-5+deb7u7  libmagickwand5 8:6.7.7.10-5+deb7u7. А приведи ка выхлоп apt-cache policy libgomp1
deb http://ftp.debian.org/debian wheezy/ main contrib non-free после  wheezy слеш не нужен.
Debian 9 Lenovo G5030

rencom

#11
слеш откуда прилип в сообшении ) Там его нет



Цитироватьapt-cache policy libgomp1

Цитироватьlibgomp1:
  Installed: (none)
  Candidate: 4.7.2-5
  Version table:
     4.7.2-5 0
        500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages

Cообщение объединено 17 сентября 2016, 19:21:53

сделал
apt-get update
apt-get upgrade

Долго обновлялась . 
И обновилось .

Но проблема та же (

rencom

#12
пока никто не ответил , продолжаю самообразованием заниматься .
вычистил лишнее из /var/lib/dpkg/info

теперь apt-get -f install завершается вот так

ЦитироватьReading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

что за "1 not upgraded " ?

но команда apt-get install imagemagik

выдаёт такое
ЦитироватьReading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
imagemagick : Depends: libgomp1 (>= 4.2.1) but it is not going to be installed
               Depends: libmagickcore5 (>= 8:6.7.7.10) but it is not going to be installed
               Depends: libmagickwand5 (>= 8:6.7.7.10) but it is not going to be installed

куда теперь копать ? 


Cообщение объединено 18 сентября 2016, 07:20:29

И ещё 
apt-get install libgomp1  требует gcc-4.7-base .В системе стоит 4,9

как это решать ?

rencom

повторю . вопрос

пытаюсь  установить  apt-get install libgomp1 

Требует gcc-4.7-base .

не устанавливается .
В системе стоит 4,9

как это решать ?

Deportivo

#14
Цитата: rencom от 18 сентября 2016, 06:39:03

И ещё 
apt-get install libgomp1  требует gcc-4.7-base .В системе стоит 4,9

как это решать ?
Для начала apt-cache rdepends package- выяснить, что от него зависит. Потом можно установить необходимую версию.
sudo apt-get install package=version
Но походу у вас там таких сломанных зависимостей неизвестно сколько.  Если все необходимые данные в /home, то проще переустановить без форматирования /home.
Debian 9 Lenovo G5030