Custom Search

Thursday, October 8, 2015

How to fix unmet dependencies of a deb package

1)
$cd /home/saju/pkgoverride

$wget http://jiocloud.rustedhalo.com/ubuntu/pool/main/r/rjil-cicd/rjil-cicd_2014.2.234_all.deb

2)
http://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies
a)
Unpack:
$ar x rjil-cicd_2014.2.234_all.deb

b)
Unpack control archive:
$tar xzf control.tar.gz

c)
Fix dependencies in control (use a text editor)
$vim control

d)
Repack control.tar.gz:
$tar c {post,pre}{inst,rm} md5sums control | gzip -c > control.tar.gz

e)
Repack deb:
$ar rcs newpackage.deb debian-binary control.tar.gz data.tar.xz

f)
$dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

3)
$vim /etc/apt/sources.list.d/overrides.list
deb [trusted=yes] file:/home/saju/pkgoverride ./

4)
$apt-get update

5)
$apt-cache policy rjil-cicd

6)
$apt-get install rjil-cicd



1 comment:


  1. $vim /var/lib/dpkg/status

    http://askubuntu.com/questions/220649/problem-installing-packages

    ReplyDelete