Spivoxity / obc-3

Oxford Oberon-2 compiler
38 stars 7 forks source link

Can't install obc_3.3.0_amd64.deb on Ubuntu 20.04, missing dependency: libgdk-pixbuf-2.0-0 #46

Open wpdevelopment11 opened 1 year ago

wpdevelopment11 commented 1 year ago

I was not able to install obc_3.3.0_amd64.deb on fresh Ubuntu 20.04, because OBC depends on libgdk-pixbuf-2.0-0, but Ubuntu 20.04 provides only libgdk-pixbuf2.0-0 (without one hyphen).

How to fix it

We need to create the deb package with fixed dependencies.

  1. Remove the broken install of OBC

    sudo apt install -f
  2. cd to the directory with obc_3.3.0_amd64.deb

  3. Unpack the obc_3.3.0_amd64.deb

    dpkg-deb -R obc_3.3.0_amd64.deb obc-repack
  4. Change libgdk-pixbuf-2.0-0 to libgdk-pixbuf2.0-0 in the file obc-repack/DEBIAN/control

  5. Create the deb package with fix

    dpkg-deb -b obc-repack
  6. Install the fixed package

    sudo dpkg -i obc-repack.deb
  7. Install the dependencies

    sudo apt install -f