Error inInstalling ldap on ubuntu 16.04 with php7.0, E: Sub-process /usr/bin/dpkg returned an error code (1) - ldap

I got this error while i write this command Please help
root#mukul-HP-15-Notebook-PC:/var/lib/dpkg# apt-get install php7.0-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.0-ldap is already the newest version (7.0.13-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 217 not upgraded.
15 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up php7.0-common (7.0.13-0ubuntu0.16.04.1) ...
dpkg: error processing package php7.0-common (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of php7.0-json:
php7.0-json depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-json (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-opcache:
php7.0-opcache depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-opcache (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-readline:
php7.0-readline depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-readline (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-cli:
php7.0-cli depends on php7.0-common (= 7.0.13-0ubuNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
ntu0.16.04.1); however:
Package php7.0-common is not configured yet.
php7.0-cli depends on php7.0-json; however:
Package php7.0-json is not configured yet.
php7.0-cli depends on php7.0-opcache; however:
Package php7.0-opcache is not configured yet.
php7.0-cli depends on php7.0-readline; however:
Package php7.0-readline is not configured yet.
dpkg: error processing package php7.0-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php7.0:
libapache2-mod-php7.0 depends on php7.0-cli; however:
Package php7.0-cli is not configured yet.
libapache2-mod-php7.0 depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
libapache2-mod-php7.0 depends on php7.0-json; however:
Package php7.0-json is not configured yet.
libapache2-mod-php7.0 depends on php7.0-opcache; however:
Package php7.0-opcache is not configured yet.
dpkg: error processing package No apport report written because MaxReports is reached already
libapache2-mod-php7.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-ldap:
php7.0-ldap depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-ldap (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php-ldap:
php-ldap depends on php7.0-ldap; however:
Package php7.0-ldap is not configured yet.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: error processing package php-ldap (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0:
php7.0 depends on php7.0-fpm | libapache2-mod-php7.0 | php7.0-cgi; however:
Package php7.0-fpm is not installed.
Package libapache2-mod-php7.0 is not configured yet.
Package php7.0-cgi is not installed.
php7.0 depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-curl:
php7.0-curl depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-curl (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-gd:
php7.0-gd depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-gd (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-mbstring:
php7.0-mbstring depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-mbstring (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-mcrypt:
php7.0-mcrypt depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-mcrypt (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-mysql:
php7.0-mysql depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-mysql (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.0-xml:
php7.0-xml depends on php7.0-common (= 7.0.13-0ubuntu0.16.04.1); however:
Package php7.0-common is not configured yet.
dpkg: error processing package php7.0-xml (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
php7.0-common
php7.0-json
php7.0-opcache
php7.0-readline
php7.0-cli
libapache2-mod-php7.0
php7.0-ldap
php-ldap
php7.0
php7.0-curl
php7.0-gd
php7.0-mbstring
php7.0-mcrypt
php7.0-mysql
php7.0-xml
E: Sub-process /usr/bin/dpkg returned an error code (1)

You need to install the dependencies first manually or you can do apt-get install -f to automatically install them.

Related

how do you install drivers for AMD radeon PRO WX 4100 on debian 10?

I am trying to install amdgpu-pro on debian 10 kernel 4.19.0-13, and I am getting the following error:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:5.4.7.62-1084971) ...
Removing old amdgpu-5.4.7.62-1084971 DKMS files...
------------------------------
Deleting module version: 5.4.7.62-1084971
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.4.7.62-1084971 DKMS files...
Building for 4.19.0-13-amd64
Building for architecture amd64
Building initial module for 4.19.0-13-amd64
Error! Bad return status for module build on kernel: 4.19.0-13-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.4.7.62-1084971/build/make.log for more information.
dpkg: error processing package amdgpu-dkms
adamluco#lucocc:~/a (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.4.7.62-1084971); however:
Package amdgpu-dkms is not configured yet.
dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.10-1084971); however:
Package amdgpu is not configured yet.
dpkg: error processing package amdgpu-pro (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.10-1084971) | amdgpu-hwe (= 20.10-1084971); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.10-1084971) | amdgpu-pro-hwe (= 20.10-1084971); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.
dpkg: error processing package amdgpu-pro-lib32 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)
I get the same error when trying to install using the install files
I am not sure how to resolve the dpkg errors
I don't know what other information to add to this post so that stack overflow lets me post it, so maybe if I keep writing words it will accept it
The short answer seems to be it's not supported:
https://wiki.debian.org/AMDGPUDriverOnStretchAndBuster2
That page will give you instructions for patching the kernel (assuming you have 4.19) and porting over Ubuntu drivers, but as the page says:
This page documents non-recommended practices such as installing packages meant for other GNU/Linux distributions and manually patching files provided by packages.

apt --fix-broken install does not work, package manager broken after installing wine-stable

after uninstalling old version of wine-1.8 and installing it again, I encountered an ERROR in package manager for Broken packages:
Preparing to unpack .../libwine_3.0-1ubuntu1_amd64.deb ...
Unpacking libwine:amd64 (3.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libwine_3.0-1ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/wine/acledit.dll.so', which is also in package wine1.8-amd64 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libwine_3.0-1ubuntu1_i386.deb ...
Unpacking libwine:i386 (3.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libwine_3.0-1ubuntu1_i386.deb (--unpack):
trying to overwrite '/usr/lib/i386-linux-gnu/wine/acledit.dll.so', which is also in package wine1.8-i386:i386 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libwine_3.0-1ubuntu1_amd64.deb
/var/cache/apt/archives/libwine_3.0-1ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I SOLVED this problem with the following solution:
sudo dpkg --force depends -P wine1.8-i386
sudo dpkg --force depends -P wine1.8
sudo dpkg --force depends -P wine1.8-amd64
and finally you need to run this command to fix all broken packages:
sudo apt --fix-broken install
(for more reference check this out.)

Kata 1.6.2 dependency chain broken

Kata 1.6.2 release page here:
https://github.com/kata-containers/runtime/releases/tag/1.6.2
We are trying to consume the latest stable-1.6 release of kata but are hitting the dependency error below when attempting to install the package.
$ sudo apt install kata-runtime
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
kata-runtime : Depends: kata-linux-container (>= 4.19.34.33-4) but 4.19.28.31-3 is to be installed
E: Unable to correct problems, you have held broken packages.
http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.6/xUbuntu_16.04/
https://imgur.com/aA8GOe2.jpg
To answer this question. You can download the latest package based on the fixes identified in 1.6.2. In particular, this fix.
You can always download the 1.6.2 package too: kata-static-1.6.2-x86_64.tar.xz.

Unmet dependencies on Debian

I have unmet dependencies for libapache2-mod-php7.0. In my attempt to fix this issue I have been playing around with my sources and have done a variety of upgrades. I was on Stretch when I started, I know I've probably gone about it the wrong way but I like to try before I ask.
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux stable-updates (sid)
Release: stable-updates
Codename: sid
cat /etc/issue.net
Debian GNU/Linux buster/sid
cat /proc/version
Linux version 3.2.0-4-amd64 (debian-kernel#lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.93-1
apt-get update
apt-get updgrade
...
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libapache2-mod-php7.0 : Depends: apache2-api-20120211
Depends: apache2-bin (>= 2.4.16) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt --fix-broken install
...
dpkg: error processing archive /var/cache/apt/archives/apache2-bin_2.4.29-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/apache2/modules/httpd.exp', which is also in package apache2.2-bin 2.2.22-13+deb7u12
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/apache2-bin_2.4.29-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get clean
apt-get autoclean
apt-get -f install
...
Unpacking apache2-bin (2.4.25-3+deb9u3) ...
dpkg: error processing archive /var/cache/apt/archives/apache2-bin_2.4.25-3+deb9u3_amd64.deb (--unpack):
trying to overwrite '/usr/lib/apache2/modules/httpd.exp', which is also in package apache2.2-bin 2.2.22-13+deb7u12
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/apache2-bin_2.4.25-3+deb9u3_amd64.deb
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg --configure -a
dpkg: dependency problems prevent configuration of libapache2-mod-php7.0:
libapache2-mod-php7.0 depends on apache2-api-20120211; however:
Package apache2-api-20120211 is not installed.
libapache2-mod-php7.0 depends on apache2-bin (>= 2.4.16); however:
Package apache2-bin is not installed.
dpkg: error processing package libapache2-mod-php7.0 (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-4.14.0-1-amd64 (4.14.2-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.14.0-1-amd64
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/disk/by-uuid/1cd988f1-4ed7-4bb1-81a5-15f7dc900a47'.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-4.14.0-1-amd64 (--configure):
installed linux-image-4.14.0-1-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-4.14.0-1-amd64; however:
Package linux-image-4.14.0-1-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0:
php7.0 depends on libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi; however:
Package libapache2-mod-php7.0 is not configured yet.
Package php7.0-fpm is not installed.
Package php7.0-cgi is not installed.
dpkg: error processing package php7.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php:
php depends on php7.0; however:
Package php7.0 is not configured yet.
dpkg: error processing package php (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of phpmyadmin:
phpmyadmin depends on php; however:
Package php is not configured yet.
Package php7.0 which provides php is not configured yet.
dpkg: error processing package phpmyadmin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libapache2-mod-php7.0
linux-image-4.14.0-1-amd64
linux-image-amd64
php7.0
php
phpmyadmin
apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libapache2-mod-php7.0 : Depends: apache2-api-20120211
Depends: apache2-bin (>= 2.4.16) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
What else can I try to resolve this?
you need to remove apache
apt-get remove apache2.2-bin
you can force the installation of apache2-bin:
dpkg -i --force-overwrite /var/cache/apt/archives/apache2-bin_2.4.20-2_amd64.deb
and then try
apt-get -f install
for me it worked ;)
Try these steps
1. sudo apt-get update
2. sudo apt-get dist-upgrade
3. apt-get install -f --reinstall apache2
-f to fix unmet dependencies.

Ubuntu 16.04 - Error Installing Apache2 & Opencpu-server

I'm stuck. I try to install apache, opencpu-server, R but all fails to:
opencpu-server is already the newest version (2.0.3-xenial10).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libapache2-mod-apreq2 (2.13-4ubuntu2) ...
dpkg: error processing package libapache2-mod-apreq2 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libapache2-mod-r-base (1.2.7-1) ...
dpkg: error processing package libapache2-mod-r-base (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of opencpu-server:
opencpu-server depends on libapache2-mod-r-base (>= 1.2.5); however:
Package libapache2-mod-r-base is not configured yet.
dpkg: error processing package opencpu-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
libapache2-mod-apreq2
libapache2-mod-r-base
opencpu-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to do sudo a2enmod R but it says module does not exists. I'm not really good with linux servers. Any tips?
You seem to have package conflict for apache on your system, in particular libapache2-mod-apreq2 which is a dependency of rapache. What do you see for:
sudo apt-get install libapache2-mod-apreq2
I'm guessing you have been installing packages from other repositories or some system upgrade has not gone well. You might want to apt-get purge some packages. Also check that there are no sources in /etc/apt/ that point to repositories from incorrect debian/ubuntu versions.