08-09-2018, 08:27 AM
Are you running Debian 8 with Debian 9 repository? This is not recommended as it can bring great conflict between package version and applications. Moreover it can even break the OS by installing more up to date packages but not compatible packages. Be careful with this!
Replace:
with this:
This will solve the first problem you had that reported conflicts due to duplications. Run "apt-get update" after replacing the sources to verify everything is working.
Regarding your second error. You have to install the authentication key of the custom repository you added so that your Debian server can trust the sources from which the packages are being downloaded.
Do the following to fix the issue.
Go to /tmp folder:
Download the webmin repository authentication key:
Install the authentication key:
After successfull installation of the key you can delete the downloaded file:
Install the HTTPS module for apt package manager:
Refresh package sources:
That should be it .
Replace:
Code: (Select All)
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/debian-security/ stretch/updates main
deb-src http://security.debian.org/debian-security/ stretch/updates main
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
with this:
Code: (Select All)
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb https://download.webmin.com/download/repository sarge contrib
This will solve the first problem you had that reported conflicts due to duplications. Run "apt-get update" after replacing the sources to verify everything is working.
Regarding your second error. You have to install the authentication key of the custom repository you added so that your Debian server can trust the sources from which the packages are being downloaded.
Do the following to fix the issue.
Go to /tmp folder:
Code: (Select All)
cd /tmp
Download the webmin repository authentication key:
Code: (Select All)
wget http://www.webmin.com/jcameron-key.asc
Install the authentication key:
Code: (Select All)
apt-key add jcameron-key.asc
After successfull installation of the key you can delete the downloaded file:
Code: (Select All)
rm -f jcameron-key.asc
Install the HTTPS module for apt package manager:
Code: (Select All)
apt-get install apt-transport-https
Refresh package sources:
Code: (Select All)
apt-get update
That should be it .