How to Install and Uninstall python-smbus Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: January 26,2025

1. Install "python-smbus" package

Please follow the guidance below to install python-smbus on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install python-smbus

2. Uninstall "python-smbus" package

Please follow the instructions below to uninstall python-smbus on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove python-smbus $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-smbus package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-smbus
Architecture: amd64
Version: 4.0-2
Multi-Arch: same
Priority: extra
Section: universe/python
Source: i2c-tools
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Aurelien Jarno
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32
Provides: python2.7-smbus
Depends: libc6 (>= 2.4), libi2c0, python (<< 2.8), python (>= 2.7~), python:any (<< 2.8), python:any (>= 2.7~)
Recommends: i2c-tools
Filename: pool/universe/i/i2c-tools/python-smbus_4.0-2_amd64.deb
Size: 7308
MD5sum: 149037668ddf8fcc5237f4693032e21f
SHA1: fca17e0d933277845007059240375c3ab537dd5a
SHA256: a48be7505d3004019427d28e86f296a903cd64af144b60053f8bef786ea077bf
Homepage: https://www.kernel.org/pub/software/utils/i2c-tools/
Description: Python bindings for Linux SMBus access through i2c-dev
Description-md5: c36ce675a1bddacc672388af4111ac28