Only download the package (phpmyadmin for example) with apt-get:
apt-get download phpmyadmin
That will download the binary .deb files but will not attempt to install them.
Now you can use dpkg to force install them (sudo dpkg –force-all -i [name of the .deb files you downloaded]):
sudo dpkg –force-all -i phpmyadmin