How To Install dbus-user-session on Ubuntu 20.04
Introduction
In this tutorial we learn how to install dbus-user-session
on Ubuntu 20.04.
What is dbus-user-session
dbus-user-session is:
D-Bus is a message bus, used for sending messages between applications. Conceptually, it fits somewhere in between raw sockets and CORBA in terms of complexity.
On systemd systems, this package opts in to the session model in which a user’s session starts the first time they log in, and does not end until all their login sessions have ended. This model merges all parallel non-graphical login sessions (text mode, ssh, cron, etc.), and up to one graphical session, into a single “user-session” or “super-session” within which all background D-Bus services are shared.
Multiple graphical sessions per user are not currently supported in this mode; as a result, it is particularly suitable for gdm, which responds to requests to open a parallel graphical session by switching to the existing graphical session and unlocking it.
To retain dbus’ traditional session semantics, in which login sessions are artificially isolated from each other, remove this package and install dbus-x11 instead.
See the dbus package description for more information about D-Bus in general. Task: server, print-server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: dbus-user-session Architecture: amd64 Version: 1.12.16-2ubuntu2 Multi-Arch: foreign Priority: optional Section: admin Source: dbus Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Utopia Maintenance Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 126 Provides: dbus-session-bus, default-dbus-session-bus Depends: dbus (>= 1.12.16-2ubuntu2), libpam-systemd, systemd Recommends: systemd-sysv Breaks: dbus-x11 (« 1.9.10-2~), policykit-1 (« 0.105-12~), udisks2 (« 2.1.5-2~) Filename: pool/main/d/dbus/dbus-user-session_1.12.16-2ubuntu2_amd64.deb Size: 9424 MD5sum: 2ad52e87c8b17ef29828d43b7a438669 SHA1: c56ed42d9563c886fc1b0fc9186e0a61cdd568d6 SHA256: 895f54690142787d331c061e9a25b60ba5d732c255c7c8e69a571339c70726a5 Homepage: http://dbus.freedesktop.org/ Description-en: simple interprocess messaging system (systemd –user integration) D-Bus is a message bus, used for sending messages between applications. Conceptually, it fits somewhere in between raw sockets and CORBA in terms of complexity.
On systemd systems, this package opts in to the session model in which a user’s session starts the first time they log in, and does not end until all their login sessions have ended. This model merges all parallel non-graphical login sessions (text mode, ssh, cron, etc.), and up to one graphical session, into a single “user-session” or “super-session” within which all background D-Bus services are shared.
Multiple graphical sessions per user are not currently supported in this mode; as a result, it is particularly suitable for gdm, which responds to requests to open a parallel graphical session by switching to the existing graphical session and unlocking it.
To retain dbus’ traditional session semantics, in which login sessions are artificially isolated from each other, remove this package and install dbus-x11 instead.
See the dbus package description for more information about D-Bus in general. Task: server, print-server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install dbus-user-session
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dbus-user-session Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dbus-user-session
using apt-get
by running the following command:
sudo apt-get -y install dbus-user-session
Install dbus-user-session Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dbus-user-session
using apt
by running the following command:
sudo apt -y install dbus-user-session
Install dbus-user-session Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install dbus-user-session
using aptitude
by running the following command:
sudo aptitude -y install dbus-user-session
How To Uninstall dbus-user-session on Ubuntu 20.04
To uninstall only the dbus-user-session
package we can use the following command:
sudo apt-get remove dbus-user-session
Uninstall dbus-user-session And Its Dependencies
To uninstall dbus-user-session
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove dbus-user-session
Remove dbus-user-session Configurations and Data
To remove dbus-user-session
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge dbus-user-session
Remove dbus-user-session configuration, data, and all of its dependencies
We can use the following command to remove dbus-user-session
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dbus-user-session
References
Summary
In this tutorial we learn how to install dbus-user-session
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.