Showing posts with label Open Source. Show all posts
Showing posts with label Open Source. Show all posts

Monday, January 22, 2018

How to Install a Local .deb File in Ubuntu (Like a Pro)

So, you've downloaded a .deb file and you're wondering: "What next?"

Let’s break it down.

When you install software using apt, Ubuntu performs two main actions:

  1. Resolves dependencies from the online repositories.

  2. Uses dpkg under the hood to install the actual packages.

However, when you're working with a local .deb file, the process changes slightly. Here's how you can install it properly depending on your setup.


Option 1: Install Using dpkg and Fix Dependencies

bash

sudo dpkg -i /path/to/package.deb sudo apt-get install -f
  • dpkg -i: Installs the .deb file

  • apt-get install -f: Attempts to fix any missing dependencies

This approach is manual but gives you control over the install and resolution process.


Option 2: Install Directly with apt (Recommended for Ubuntu 16.04+)

bash

sudo apt install ./package-name.deb

You can also provide the full path if the file isn't in the current directory:

bash

sudo apt install /home/sangram/Downloads/xyz.deb

Why this method is preferred:

  • Automatically resolves and installs dependencies.

  • Cleaner and more robust for modern Ubuntu versions.


Option 3: Use gdebi for a GUI-Based Install

Install the gdebi tool first:

bash

sudo apt install gdebi

Then:

  1. Right-click your .deb file.

  2. Choose “Open with GDebi Package Installer.”

GDebi Advantages:

  • Graphical interface.

  • Automatically checks and resolves dependencies.

  • Ideal for users who prefer not to use the terminal.


Extra Tip: Manual Installation for Older Systems

On some older systems where apt install doesn’t support local files, you can move the .deb file manually:

bash

sudo mv yourfile.deb /var/cache/apt/archives/

Then:

bash

cd /var/cache/apt/archives/ sudo apt-get install yourfile.deb

This mimics how apt handles package files internally.


A Word About Dependencies

All of these methods rely on the APT package index, defined in the following configuration files:

  • /etc/apt/sources.list

  • /etc/apt/sources.list.d/

If your system is unable to resolve dependencies, the installation will fail. To avoid issues, always make sure your repository list is up to date:

bash

sudo apt update

Source

Originally inspired by a helpful StackExchange post

Wednesday, January 27, 2016

My First Python Meetup Experience – Python 3, Pune 23 Jan 2016




Firstly, I would like to extend a sincere thank you to the organizers of the "Python 3 - 101" Meetup in Pune for arranging such a well-executed and engaging event.

This was my first time attending a Python meetup, and also my first blog post about a community event. As someone who is new to Python, this experience was both exciting and inspiring.


What Made It Special

  • The atmosphere was welcoming, and the learning environment was encouraging.

  • I had the opportunity to connect with fellow learners and experienced developers.

  • The hands-on approach and supportive community gave me a strong motivation to continue exploring Python.


A Note of Thanks to Kushal Das

Our mentor for the session, Kushal Das, led the event with clarity and enthusiasm. He introduced us to beginner-friendly exercises such as:

  • FizzBuzz

  • GetPass and secure input handling

While I couldn’t fully grasp all the concepts right away — being a beginner — the way the topics were presented helped me build a foundational understanding and a strong desire to learn more.

Thank you, Kushal Sir, for your guidance and for making the learning journey approachable for newcomers like me.


Appreciation for Red Hat

I would also like to thank Red Hat for providing the venue and supporting the local Python and open-source community.


Looking Ahead

This meetup has significantly boosted my interest in Python. I’m excited to continue learning, practicing, and contributing as I grow.

Thank you again to all the organizers, mentors, and participants for making this such a valuable experience.