dpkg: error processing package mysql-server (dependency problems)?

dpkg returning an error code 1 doesn’t mean anything specific but it usually has to do with dependency issues. In your case, you tried to install two versions/instances of the same package i.e. mysql-server and mysql-server-5.7. So do the following to remove any redundant dependency issues and install a functioning mysql package sudo apt-get clean … Read more

Compute a list of difference between packages installed on two hosts

On the reference installation (only once): dpkg-query -W -f=”${Package}\n” | sort > baselist.txt (The following assumes bash) To get the packages added from the reference installation (this doesn’t show what was removed): comm -1 -3 baselist.txt <(dpkg-query -W -f=”${Package}\n” | sort) Even better, avoiding copy of baselist.txt: comm -1 -3 <(ssh user@refserver cat /path/to/baselist.txt) <(dpkg-query … Read more

How can I properly sign a package I modified and recompiled?

PGP-signing Debian packages is not necessary if you built them for your own private use. It’s just the common authentication method for (official) Debian developers when they upload new packages into the Debian “unstable” branch. To avoid the error message just use: dpkg-buildpackage -uc -us (see also the manpage of dpkg-buildpackage)