github-education-resources / classroom

GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.
https://classroom.github.com
1.34k stars 566 forks source link

Package libgconf2-4 dependency error #2505

Open julianstanley opened 4 years ago

julianstanley commented 4 years ago

Describe the bug GitHub classroom assistant 1.0.5_amd64.deb does not install on Ubuntu 19.10 due to a "Dependency is not satisfiable" error.

Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan
julian-ThinkPad-T460:Downloads$ sudo gdebi classroom-assistant_1.0.5_amd64.deb 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgconf2-4

To Reproduce Download @ https://classroom.github.com/assistant sudo dpkg -i classroom-assistant_1.0.5_amd64.deb

Expected behavior The classroom app should install.

Additional context: personal solution The classroom assistant's libgconf2-4 dependency is not satisfiable because because the libgconf2-4 package was renamed to libgconf-2-4.

I fixed my problem by manually re-routing the libgconf2-4 dependency to my libgconf-2-4 package.

sudo apt install -y libgconf-2-4
ar x classroom-assistant_1.0.5_amd64.deb
tar xzf control.tar.gz
sed -i s/libgconf2-4/libgconf-2-4/ control
tar --ignore-failed-read -cvzf control.tar.gz control
ar rcs classroom-assistant_1.0.5_amd64-FIXED.deb debian-binary control.tar.gz data.tar.xz
sudo dpkg -i classroom-assistant_1.0.5_amd64-FIXED.deb