5

I don't have an internet connection on my PC. So, can I download software on my Android and then install them on Ubuntu 16.04? Please provide a step by step guide.

4
  • 2
    why don't you use wifi hotspot from your android device to provide a wifi connection on ubuntu? Jan 2 '17 at 16:32
  • 3
    Tnx. But that could be a good solution, if i had a stable connection. I can hardly visite a webpage from my phone. I have to go outside to get a strong network. So, hope you got the situation. ;-(
    – sifat
    Jan 2 '17 at 16:38
  • @sifat you should add that the question, many users will think for quick solution like tethering (Either WiFI, Bluetooth, or USB). But you are looking for an off-line method.
    – user.dz
    Jan 2 '17 at 17:18
  • You could download and install deb files, though dependencies may be an issue with no internet. Here are the repos packages.ubuntu.com Save them to the phone and move them to the PC and double click. Not an elegant solution but may be a good place to start.
    – Mark Kirby
    Jan 2 '17 at 17:39
4

You can successfully install software without an Internet connection if the software is fully packed with all met dependencies of which is something very hard to achieve!

Otherwise, you have to manually install all dependencies which is something very painful as most packages need many dependencies of which these dependencies packages need other dependencies in order to work (the chain goes on).

The only possible solution to this is using Portable Package Manager like CamicriCube or Kery, but the problem is they are not available for the Android OS!

2
  • But is there any package manager which is web-based?
    – sifat
    Jan 2 '17 at 17:08
  • no!there is no any! Jan 2 '17 at 18:08
0

Updating Ubuntu offline

Whenever a new version of Ubuntu is released (if you're sticking with LTS, this means every new point release of the LTS (e.g. 14.04.5 LTS), which is where all the updates are included in the install USB/DVD), backup your files, download the new release, make an install USB/DVD with the .iso, boot from the install USB/DVD and, during the install process, there should be an option to upgrade from your previous version of Ubuntu to the one on the install USB/DVD (e.g. upgrading from Ubuntu 16.04 LTS to Ubuntu 16.04.1 LTS), select this option, install as usual. If something goes wrong, run the install USB/DVD for the new version of Ubuntu again but this time select the option to wipe everything and manually restore all the files and software you'd installed previously.

Installing/running specific software (Everything other than Deb)

Given installing Debs offline is a bit of a nightmare since Debs don't bundle dependencies, this is the recommended route if it's possible.

  1. Search for the software you want online enter image description here
  2. Download the Linux version of the software (for the correct architecture, 32-bit or 64-bit) enter image description here
  3. Plug your Android device into your computer (probably with a microUSB-to-USB (male-to-male) cable), find the folder where the file was downloaded into on the device (probably Downloads), select it, right-click it and click 'Copy' or 'Cut', find a folder on your computer to save it in, right-click in an empty space and click 'Paste'.
  4. Follow the install instructions for that software to install/run it. enter image description here

Installing or updating specific software (Deb)

If you're going to install a Deb package, it's best to get it the official package from the Ubuntu repository.

  1. Download the relevant Deb package onto the Android device
    1. Go to Ubuntu Packages Search
    2. Select your Ubuntu version in the dropdown in the Search section
    3. Search for the package you want in the Keyword box and click Search (you might want to Google '[program name] Ubuntu package' to find out what the Ubuntu package name for the program is) Searching for 0ad in the Ubuntu package search
    4. Click the link on the distribution version yakkety (16.10) is the link
    5. Click on the architecture link for your architecture Architecture links for 0AD
    6. Click on the nearest mirror, that should download the file 0AD mirror links
    7. Repeat steps 1.5 and 1.6 for all the dependencies you don't have installed (that could be quite a lot!) When I say a lot, I mean a lot (To check what dependencies you do or don't have use dpkg-query -l packagename in Terminal. If you get anything other than dpkg-query: no packages found matching xonotic then you have the package installed already. Note, you may also need to install the dependencies of the dependencies, and the dependencies of the dependencies of the dependencies etc.)
  2. Plug your Android device into your computer (probably with a microUSB-to-USB (male-to-male) cable), find the folder where the files were downloaded into on the device (probably Downloads), select them all, right-click them and click 'Copy' or 'Cut', find a folder on your computer to save them in, right-click in an empty space and click 'Paste'.
  3. Install each package one by one, starting with the lowest dependencies working upwards. Just double-click on each one to install it with Ubuntu Software.
1
  • Changed my mind and made it my own answer rather than a community wiki as Mark Kirby suggested
    – Ads20000
    Jan 14 '17 at 3:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.