• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved apt dependencies broken (unmet dependencies)

Richacinas

New Pleskian
Hi all,

Trying to install GIT on my server (Debian7) through SSH, i ran the following command because apt-get install git-core wasn't working:

Code:
apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip

After this, it seems that Apache2 got an upgrade and there started to appear some extra config files (I kept all my config files through the process).

After this, all my Apache2 config seems broken and I can't access my websites anymore.

I tried:

Code:
plesk repair all -y

Getting this error:

Code:
There are incorrect permissions on some items: 
/var/www/cgi-bin/cgi_wrapper ...................................... [ERROR]
To see more details, run the command in the verbose mode: plesk repair fs -verbose
Do you want to repair incorrect permissions? [Y/n] Y
Repairing incorrect permissions ................................. [2019-03-27 22:52:01] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/fsmng' '--set-ac' '/var/www/cgi-bin/cgi_wrapper'] with exit code [1] 

fsmng failed: ERROR:[Errno 2] No such file or directory: '/var/www/cgi-bin/cgi_wrapper'

There are incorrect permissions on some items: 
/var/www/cgi-bin/cgi_wrapper/cgi_wrapper ............................ [ERROR]
To see more details, run the command in the verbose mode: plesk repair fs -verbose
Do you want to repair incorrect permissions? [Y/n] Y
Repairing incorrect permissions ................................... [2019-03-27 22:52:02] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/fsmng' '--set-ac' '/var/www/cgi-bin/cgi_wrapper/cgi_wrapper'] with exit code [1] 

fsmng failed: ERROR:[Errno 2] No such file or directory: '/var/www/cgi-bin/cgi_wrapper/cgi_wrapper'
[2019-03-27 22:52:07] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/fsmng' '--check-ac' '/var/lib/psa/dumps' '--perms' '0750' '--owner' 'psaadm' '--group' 'psaadm'] with exit code [1] 
fsmng failed: W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/main/source/Sources 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/contrib/source/Sources 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/non-free/source/Sources 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/contrib/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/non-free/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/main/binary-i386/Packages 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/contrib/binary-i386/Packages 404 Not Found

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy/non-free/binary-i386/Packages 404 Not Found


Then I tried to fix the CGI Wrapper problem following this guide from Plesk:

Apache fails to start: Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

And the feedback error is:

Code:
The following packages have unmet dependencies:
plesk-php70-snmp : Depends: libsnmp15 (>= 5.4.3~dfsg) but it is not going to be installed
psa-php5-configurator : Depends: php5-gd but it is not going to be installed
PreDepends: libapache2-mod-php5 but it is not going to be installed

Finally, I went on to edit my /etc/cat/sources.list to make sure that my sources are OK:

Code:
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

And:

Code:
apt-get install -f
dpkg -a --configure
apt-get update

Without success. None of them say anything relevant (like these commands didn't fix anything) and the problem persists.

Out of despair, I upgraded my dist, and tried again to fix dependencies, without success.

Code:
apt-get dist-upgrade

Any ideas about what else could I do? Is there any packages that I can reinstall so maybe I fix it?

Thanks a lot for your help..
 
Hi, please note that Debian 7 reached EoL .. try this source list instead :

Code:
deb http://archive.debian.org/debian/ wheezy main contrib non-free
 
Back
Top