LINUX.ORG.RU

Как в Debian 3.0 woodo восстановить файлы заголовков в /usr/include/*.h?


0

0

Админ по выделенкам удалил на серваке клиента случайно все файлы /usr/include/*.h
Сервер продолжает нормально работать, пакеты ставяться нормально через apt-get, но скомпилировать с сырцов, разумеется, уже невозможно ;(

Можно как нибудь восстановить эти файлы с помощью apt-get из пакетов Дебьяна?.. И как называется пакет, содержащий все эти файлы? Или хотя бы бОльшую часть?..

Можно, конечно пройтись по всем пакетам и скопировать оттуда файлы, но их так много ;(

Есть ли в дебьяне возможность переустановить все пакеты не меняя конфигурации сервака или сносить всё и ставить с нуля?..

Подскажите плиз, и не пинайте слишком ламера ;) Ну не знаю я дебьяна ;)


$ apt-get install --reinstall `join <(dpkg --get-selections |grep '\<install$' |cut -d$'\t' -f1) <(apt-file search /usr/include |cut -d: -f1 |sort -u)`

Переустановит все пакеты, которые содержат файлы в /usr/include.
Правда, надо для начала поставить пакет apt-file и сделать

$ apt-file update

watashiwa_daredeska ★★★★
()
Ответ на: комментарий от watashiwa_daredeska

Malika:~# apt-file update
Error: http://security.debian.org//dists/stable/updates/Contents-i386.gz not found
Fetching ftp://ftp.debian.org/debian//dists/stable/Contents-i386.gz
##################################################
fetch_contents_file
Not yet implementedError: http://linux.iatp.by/debian/dists/./Contents-i386.gz not found


Malika:~#
Malika:~# apt-get install --reinstall `join <(dpkg --get-selections |grep '\<install$' |cut -d$'\t' -f1) <(apt-file search /usr/include |cut -d: -f1 |sort -u)`
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Malika:~# ls -la /usr/include/
total 96
drwxr-xr-x 6 root root 8192 Jun 24 17:43 .
drwxr-xr-x 16 root root 4096 Jan 22 18:18 ..
lrwxrwxrwx 1 root root 20 Jun 15 17:25 X11 -> ../X11R6/include/X11
drwxr-xr-x 4 root root 4096 Jun 24 17:37 g++-3
-rw-r--r-- 1 root root 1403 May 29 2002 initreq.h
-rw-r--r-- 1 root root 3787 Apr 14 2002 liba2ps.h
-rw-r--r-- 1 root root 11722 Jan 10 2002 ltdl.h
drwxr-xr-x 2 root root 4096 Jun 15 17:15 net
drwxr-xr-x 2 root root 4096 Jan 22 18:19 openssl
drwxr-xr-x 2 root root 4096 Oct 28 2001 proc
-rw-r--r-- 1 root root 7810 Mar 12 2002 zconf.h
-rw-r--r-- 1 root root 40900 Mar 12 2002 zlib.h


;( ну не знаю я дебьян ;(

unReal
() автор топика
Ответ на: комментарий от watashiwa_daredeska

>Вуду пишется woodoo, а Debian 3.0 - woody.

Афаик, вуду пишется voodoo ;)

bsh ★★★
()
Ответ на: комментарий от watashiwa_daredeska

Malika:/etc/apt# cat /etc/apt/sources.list|grep -v ^# deb ftp://ftp.us.debian.org/debian/ stable main

Malika:/etc/apt# apt-file update Malika:/etc/apt# apt-get update Get:1 ftp://ftp.us.debian.org stable/main Packages [1774kB] Get:2 ftp://ftp.us.debian.org stable/main Release [95B] Fetched 1774kB in 48s (36.3kB/s) Reading Package Lists... Done Building Dependency Tree... Done Malika:/etc/apt# apt-get install --reinstall `join <(dpkg --get-selections |grep '\<install$' |cut -d$'\t' -f1) <(apt-file search /usr/include |cut -d: -f1 |sort -u)` Reading Package Lists... Done Building Dependency Tree... Done 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Malika:/etc/apt# apt-file update Fetching ftp://ftp.us.debian.org/debian//dists/stable/Contents-i386.gz ################################################## Malika:/etc/apt# apt-get install --reinstall `join <(dpkg --get-selections |grep '\<install$' |cut -d$'\t' -f1) <(apt-file search /usr/include |cut -d: -f1 |sort -u)` Reading Package Lists... Done Building Dependency Tree... Done 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Malika:/etc/apt# l /usr/include/ total 84 lrwxrwxrwx 1 root root 20 Jun 15 17:25 X11 -> ../X11R6/include/X11 drwxr-xr-x 4 root root 4096 Jun 24 17:37 g++-3 -rw-r--r-- 1 root root 1403 May 29 2002 initreq.h -rw-r--r-- 1 root root 3787 Apr 14 2002 liba2ps.h -rw-r--r-- 1 root root 11722 Jan 10 2002 ltdl.h drwxr-xr-x 2 root root 4096 Jun 15 17:15 net drwxr-xr-x 2 root root 4096 Jan 22 18:19 openssl drwxr-xr-x 2 root root 4096 Oct 28 2001 proc -rw-r--r-- 1 root root 7810 Mar 12 2002 zconf.h -rw-r--r-- 1 root root 40900 Mar 12 2002 zlib.h

;(

может в аську стукнет кто? 116858531 разобраться не могу ;(

unReal
() автор топика
Ответ на: комментарий от unReal

> Done 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

А может, там и не было ничего? '*-dev' пакеты установлены в системе?
Покажи, что выводит просто join:

$ join <(dpkg --get-selections |grep '\<install$' |cut -d$'\t' -f1) <(apt-file search /usr/include |cut -d: -f1 |sort -u)

watashiwa_daredeska ★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.