Xazker Xazkerov
2007-Jun-22 11:42 UTC
Have some troubles after deleting group of packages...
Recently I've deleted some packages on my server, those packages was installed on It at 21.06.07(DATE) by mistake. What to learn exactly which packages was installed on system, I used command "ls -la /var/db/pkg|grep "Jun 21" ". After it I've deleted those packages by "pkg_delete" command. Firstly it seemed all OK, but later I have collided with such problems: $ sudo tcpdump /libexec/ld-elf.so.1: /lib/libpcap.so.4: Shared object has no run-time symbol table I was trying to rebuild gmake, libpcap, tcpdump but it has not lid to positive results... Except for that, when I was trying to build hping, I've got such error: $ cd /usr/ports/net/hping $ sudo make install clean ===> Building for hping-2.0.0r3,1 .....random.o scan.o hstring.o libars.a -lpcap /usr/lib/libpcap.so: file not recognized: Memory exhausted gmake: *** [hping2] ?????? 1 *** Error code 2 $ uname -a FreeBSD fambox.ru 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Fri Jun 8 11:00:49 MSD 2007 root@fambox.ru:/usr/obj/usr/src/sys/ITHOST-p5 i386 P.S. I am very sorry for my cRoOKeD English. Best Regards, Roman
Oliver Fromme
2007-Jun-22 13:26 UTC
Have some troubles after deleting group of packages...
Xazker Xazkerov wrote: > Recently I've deleted some packages on my server, those packages > was installed on It at 21.06.07(DATE) by mistake. What to learn > exactly which packages was installed on system, I used command "ls > -la /var/db/pkg|grep "Jun 21" ". I'm afraid that was a mistake. When you install a package, sometimes new files are written to thesubdirectories of other packages in order to record dependencies. The time of those directories are also updated. If you deleted them all, then you probably deleted too many. To fix that, review the list of deleted packages (if you don't remember it, then try to look for the pkg_delete commands in your shell's history). Install any that might be still needed. > After it I've deleted those packages by "pkg_delete" command. Firstly > it seemed all OK, but later I have collided with such problems: > > $ sudo tcpdump > /libexec/ld-elf.so.1: /lib/libpcap.so.4: Shared object has no run-time symbol table That's strange, because /lib/libpcap.so.4 is part of the FreeBSD base system. It doesn't come from any package. It seems that something else was also broken inadvertently, apart from the package deletions. What time stamp does that library have? You might have to reinstall that file from installation media (CD, FTP server or similar). Or, if you have the system sources installed, you can rebuild and install that library in /usr/src/lib/libpcap: # cd /usr/src/lib/libpcap # make clean depend all install > Except for that, when I was trying to build hping, I've got such error: > [...] > /usr/lib/libpcap.so: file not recognized: Memory exhausted That's probably caused by the same thing. > I am very sorry for my cRoOKeD English. You're perfectly comprehendible. I think your English is not worse than mine. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "In My Egoistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." -- Blair P. Houghton