How to fix: “apt-get command not found” on Jailbroken idevice

Problem:

Trying to run any apt-get command from an ssh session on your Apple device returns the error “apt-get command not found” similar to below:

Screen Shot 2017-02-08 at 3.39.48 PM

Solution:

First things first we need to confirm that the dpkg package is installed and that it is at least  1.14.x

R83Gj_DZ.jpg-large

 

1) Confirm the files are in the /private/var/mobile/Media directory

# ls -l /private/var/mobile/Media

2) Confirm berkeleydb is installed

# dpkg -l | grep berkeleydb

If you do not receive any output, then it is not installed.

On the other hand if you see an output similar to the one below, then it is:

ii  berkeleydb                               4.6.21-5        iphoneos-arm Oracle’s embeddable database engine

To install berkeleydb, download and transfer these file to the base filesystem using ifunbox:

http://apt.saurik.com/debs/berkeleydb_4.6.21-1_iphoneos-arm.deb

Then install it

# dpkg -i /private/var/mobile/Media/berkeleydb_4.6.21-1_iphoneos-arm.deb

3) Repeat step 4 for openssl using the link http://apt.saurik.com/debs/openssl_0.9.8y-10_iphoneos-arm.deb

4) Repeat step 3 for curl using the link http://apt.saurik.com/debs/curl_7.17.1-1_iphoneos-arm.deb

5) Download and transfer these file to the base filesystem using ifunbox

http://apt.saurik.com/debs/apt7_0.7.25.3-8_iphoneos-arm.deb
http://apt.saurik.com/debs/apt7-key_0.7.20.2-1_iphoneos-arm.deb
http://apt.saurik.com/debs/apt7-lib_0.7.25.3-14_iphoneos-arm.deb

6) Install the apt package

# dpkg -i /private/var/mobile/Media/apt*

7) If you received no errors until this point, you can test apt-get by running:

# apt-get update

If you found this article useful, don’t forget to share it by clicking one of the buttons below. You can also share your thoughts in the comments section below.

You can also follow me on Twitter, add me to your circle on Google+, or like my Facebook page to keep yourself updated on all the latest of Hardware and Software articles.

Found this post useful?

Subscribe to our RSS feed, follow us on Twitter or help us grow by sharing our content using the buttons below

This entry was posted in Apple, Cydia, Jailbreak. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.