*CAUTION* THIS MAY BREAK THE SYSTEM UNINTENTIONALLY
Search packages on:
http://packages.ubuntu.com/
http://www.ubuntuupdates.org/
http://www.debian.org/distrib/packages
1. Extracts the filesystem tree:
$ dpkg -x original.deb data
2. Extracts the control information (default to DEBIAN/):
$ dpkg -e original.deb
3. Edit the dependency of the packages:
$ vi DEBIAN/control
$ mv DEBIAN data/
4. Create a new debian archive:
$ dpkg -b data new.deb
5. Install the new package:
$ sudo dpkg -i new.deb
If some dependency issues still occurred, dpkg may suggest you to use "--auto-deconfigure" to solve those issue. *CAUTION* THIS MAY ALSO BREAK THE DEPENDENCY OF OTHER INSTALLED PACKAGES.
If the dependency is broken after using the "--auto-deconfigure" option, try the following commands to fix it:
Reinstall the original version of some packages which break the dependency:
$ sudo apt-get install package=x.y.z-m.n
Use "-f / --fix-broken" option in apt-get:
$ sudo apt-get -f install package
OR (if still unable to correct the problem, but may be a LOT of works to do.)
$ sudo apt-get -f install
沒有留言:
張貼留言