LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem Correcting Dependencies (https://www.linuxquestions.org/questions/linux-software-2/problem-correcting-dependencies-128625/)

Dip 12-24-2003 09:11 AM

Problem Correcting Dependencies
 
Hi all! The year's almost over and its time to move away from RH 7.3. So, I am upgrading.

However, I have come accross dependencies. The 2 listed are:
Quote:

mod_dav: PreDepends: webserver
mod_ssl: Depends: webserver
After trying [~]# apt-get -f install

I get:

Quote:

Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
httpd
The following packages will be REPLACED:
mod_dav (by httpd)
The following NEW packages will be installed:
httpd
0 packages upgraded, 1 newly installed, 1 replaced, 0 removed and 351 not upgraded.
Need to get 0B/939kB of archives.
After unpacking 2071kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Executing RPM (-Uvh)...
Preparing... ########################################### [100%]
1:httpd warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
warning: /etc/httpd/conf/magic created as /etc/httpd/conf/magic.rpmnew
error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename failed - Is a directory
E: Sub-process /bin/rpm returned an error code (1)
The question is simple. What should I do now? Thanks to all in advance. :)

teval 12-25-2003 12:18 AM

It fails on:

error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename failed - Is a directory

A simple rm -Rf /etc/httpd and then a reinstall should solve the problem.

Dip 12-25-2003 06:51 AM

Thanks for your help. :)

I am still a bit confused as to exactly what I should do. I am not an expert, so if you can tell me exactly what commands to use, I will be able to do it.

Thanks again.

teval 12-25-2003 08:00 AM

rm -Rf /etc/httpd

Make 10 checks so that you don't have a space after the first /.. turst me, it won't look preety :)
Or just run it without f, you'll have to press ok 10 times, but it's a lot safter. So..

rm -r /etc/httpd

After try to install it again. I think from somewhere you had /etc/httpd already, and a subdirectory called logs. The install script was expecting that to be a normal file. This should fix it.

Dip 12-25-2003 08:16 AM

Thanks... And exactly how do I (safely) install it again?


All times are GMT -5. The time now is 12:03 AM.