Install apache2 on Ubuntu -


i upgrade apache2 v2.2 v2.4, follow instructions on site using command line:

# apt-get install apache2 apache2.2-common apache2-mpm-prefork apache2-utils reading package lists... done building dependency tree        reading state information... done **apache2 newest version.** apache2-utils newest version. might want run 'apt-get -f install' correct these: following packages have unmet dependencies. apache2-mpm-prefork : depends: apache2.2-bin (= 2.2.22-1ubuntu1.10) not going installed apache2.2-common : depends: apache2.2-bin (= 2.2.22-1ubuntu1.10) not going installed **e: unmet dependencies. try 'apt-get -f install' no packages (or specify solution).** 

it says installed, run:

# service apache2 status apache2: unrecognized service 

then run command line:

#apt-get -f install following packages installed: apache2-mpm-worker apache2.2-bin apache2.2-common suggested packages: apache2-doc apache2-suexec apache2-suexec-custom following new packages installed apache2-mpm-worker apache2.2-bin apache2.2-common 0 upgrade, 3 newly install, 0 remove , 3 not upgrade. 1 not installed or removed. need 0 b/1,572 kb of archives. after operation, 4,568 kb of additional disk space used. want continue [y/n]?  (reading database ... 185590 files , directories installed.) unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.10_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.10_amd64.deb (--unpack):  trying overwrite '/usr/lib/apache2/modules/mod_dir.so', in package apache2-bin 2.4.16-4+deb.sury.org~precise+4 dpkg-deb: error: subprocess paste killed signal (broken pipe) unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb (--unpack): trying overwrite '/usr/share/man/man8/apache2.8.gz', in package apache2-bin 2.4.16-4+deb.sury.org~precise+4 dpkg-deb: error: subprocess paste killed signal (broken pipe) unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.10_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.10_amd64.deb (--unpack): trying overwrite '/usr/sbin/apache2', in package apache2-bin 2.4.16-4+deb.sury.org~precise+4 processing triggers man-db ... errors encountered while processing: /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.10_amd64.deb /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.10_amd64.deb /var/cache/apt/archives/apache2-mpm-worker_2.2.22-1ubuntu1.10_amd64.deb e: sub-process /usr/bin/dpkg returned error code (1)     

i've got many errors, has idea it

thanks lot

do following:

sudo apt-get purge apache2  sudo apt-get autoremove  sudo apt-get install apache2  sudo service apache2 status 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -