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

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.

Related

CentOs 7 cant install mod_wsgi

I am trying to get a server up and running to run python scripts (Django framework) and such by using the mod_wsgi apache module to handle the scripts, however, it's not playing ball and I don't know enough to figure out what's happening or what I'm doing wrong.
I have been unable to come right using the YUM installer. So far, this is the output:
# sudo yum install mod_wsgi
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 169.255.59.74
* cpanel-addons-production-feed: 169.255.59.74
* base: mirror.wiru.co.za
* epel: fedora.mirror.ac.za
* extras: mirror.wiru.co.za
* ius: mirrors.ircam.fr
* updates: mirror.wiru.co.za
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package mod_wsgi.x86_64 0:3.4-12.el7_0 will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package:
mod_wsgi-3.4-12.el7_0.x86_64
--> Finished Dependency Resolution
Error: Package: mod_wsgi-3.4-12.el7_0.x86_64 (base)
Requires: httpd-mmn = 20120211x8664
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The first thing that jumped out is the dependency httpd which I tried (and failed) to install using yum. After this, I did some research and found out its an issue with cPanel and that apparently it prevents you from using Yum to install Apache modules and everywhere says I am supposed to use the interface but I have no idea how?
My goal is to figure out how I'm 'supposed' to be loading these modules to get around these obstacles and get my server going. Someone, please help!
I am running:
CentOs 7.5
Apache 2.4.34
EasyApache 4
cPanel 7.40
PHP 5.6.38
On a CentOS 7.5 machine, I updated httpd (Apache) using yum to 2.4.6-80.el7.centos.1. Not exactly sure what your situation is with your pre-installed httpd version 2.4.34. Like I said in my comment above, I only trust versions of software available though yum. Your version is above the standard version so you could experience unexpected results.
Updated:
httpd.i686 0:2.4.6-80.el7.centos.1
Dependency Updated:
httpd-devel.i686 0:2.4.6-80.el7.centos.1
httpd-manual.noarch 0:2.4.6-80.el7.centos.1
httpd-tools.i686 0:2.4.6-80.el7.centos.1
mod_ldap.i686 0:2.4.6-80.el7.centos.1
mod_ssl.i686 1:2.4.6-80.el7.centos.1
After upgrading httpd, I added mod_wsgi and it installed without any problems:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mod_wsgi i686 3.4-12.el7_0 base 75 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 75 k
Installed size: 187 k
Is this ok [y/d/N]: y
Downloading packages:
mod_wsgi-3.4-12.el7_0.i686.rpm | 75 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mod_wsgi-3.4-12.el7_0.i686 1/1
Verifying : mod_wsgi-3.4-12.el7_0.i686 1/1
Installed:
mod_wsgi.i686 0:3.4-12.el7_0
Complete!
I guess the point I'm trying to make is that if you use version of software no available through yum you can experience unexpected results. I have been down this road before and I now use version of software only if they are available through yum.
The error you recieved: Requires: httpd-mmn = 20120211x8664 is for a package not yet available through yum. I performed a yum search on a CentOS 7.5 machine and it yields nothing available for httpd-mmn:
yum search httpd-mmn
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Warning: No matches found for: httpd-mmn
No matches found
So, you would have to compile it yourself possibly to get your setup to work.

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.

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

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.

Can't update with yum, seeing error PYCURL ERROR 7 - "couldn't connect to host" Alternatives?

I'm trying to update a PHP module using yum, but am getting an error.
Here's what I am trying and seeing :
yum install php-ldap
result :
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
: subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.x86_64 0:5.3.3-3.el6_2.6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php-ldap x86_64 5.3.3-3.el6_2.6 rhel-x86_64-server-6 36 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 36 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
php-ldap-5.3.3-3.el6_2.6.x86_64: failed to retrieve getPackage/php-ldap-5.3.3- 3.el6_2.6.x86_64.rpm from rhel-x86_64-server-6
error was [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
I really need to install this module tonight. What are my alternatives ?
Thanks
The problem was that our Network Admin had blocked access to the internet from that machine. Yum was just timing out.