aptdaemon.enums — The enums module

enums - Enumerates for apt daemon dbus messages

aptdaemon.enums.PKGS_INSTALL = 0

Index of the list of to be installed packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_REINSTALL = 1

Index of the list of to be re-installed packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_REMOVE = 2

Index of the list of to be removed packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_PURGE = 3

Index of the list of to be purged packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_UPGRADE = 4

Index of the list of to be upgraded packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_DOWNGRADE = 5

Index of the list of to be downgraded packages in the dependencies and packages property of AptTransaction.

aptdaemon.enums.PKGS_KEEP = 6

Index of the list of to be keept packages in the dependencies property of AptTransaction.

aptdaemon.enums.EXIT_SUCCESS = 'exit-success'

The transaction was successful.

aptdaemon.enums.EXIT_CANCELLED = 'exit-cancelled'

The transaction has been cancelled by the user.

aptdaemon.enums.EXIT_FAILED = 'exit-failed'

The transaction has failed.

aptdaemon.enums.EXIT_UNFINISHED = 'exit-unfinished'

The transaction is still being queued or processed.

aptdaemon.enums.ERROR_PACKAGE_DOWNLOAD_FAILED = 'error-package-download-failed'

Failed to download package files which should be installed.

aptdaemon.enums.ERROR_REPO_DOWNLOAD_FAILED = 'error-repo-download-failed'

Failed to download package information (index files) from the repositories

aptdaemon.enums.ERROR_DEP_RESOLUTION_FAILED = 'error-dep-resolution-failed'

Failed to satisfy the dependencies or conflicts of packages.

aptdaemon.enums.ERROR_KEY_NOT_INSTALLED = 'error-key-not-installed'

The requested vendor key is not installed.

aptdaemon.enums.ERROR_KEY_NOT_REMOVED = 'error-key-not-removed'

The requested vendor could not be removed.

aptdaemon.enums.ERROR_NO_LOCK = 'error-no-lock'

The package management system could not be locked. Eventually another package manager is running.

aptdaemon.enums.ERROR_NO_CACHE = 'error-no-cache'

The package cache could not be opened. This indicates a serious problem on the system.

aptdaemon.enums.ERROR_NO_PACKAGE = 'error-no-package'

The requested package is not available.

aptdaemon.enums.ERROR_PACKAGE_UPTODATE = 'error-package-uptodate'

The package could not be upgraded since it is already up-to-date.

aptdaemon.enums.ERROR_PACKAGE_NOT_INSTALLED = 'error-package-not-installed'

The package could not be removed since it is not installed.

aptdaemon.enums.ERROR_PACKAGE_ALREADY_INSTALLED = 'error-package-already-installed'

The package which was requested to install is already installed.

aptdaemon.enums.ERROR_NOT_REMOVE_ESSENTIAL_PACKAGE = 'error-not-remove-essential'

It is not allowed to remove an essential system package.

aptdaemon.enums.ERROR_DAEMON_DIED = 'error-daemon-died'

The aptdaemon crashed or could not be connected to on the D-Bus.

aptdaemon.enums.ERROR_PACKAGE_MANAGER_FAILED = 'error-package-manager-failed'

On of the maintainer scripts during the dpkg call failed.

aptdaemon.enums.ERROR_CACHE_BROKEN = 'error-cache-broken'

There are packages with broken dependencies installed on the system. This has to fixed before performing another transaction.

aptdaemon.enums.ERROR_PACKAGE_UNAUTHENTICATED = 'error-package-unauthenticated'

It is not allowed to install an unauthenticated packages. Packages are authenticated by installing the vendor key.

aptdaemon.enums.ERROR_INCOMPLETE_INSTALL = 'error-incomplete-install'

A previous installation has been aborted and is now incomplete. Should be fixed by dpkg –configure -a or the FixIncomplete() transaction.

aptdaemon.enums.ERROR_UNREADABLE_PACKAGE_FILE = 'error-unreadable-package-file'

Failed to open and read the package file

aptdaemon.enums.ERROR_INVALID_PACKAGE_FILE = 'error-invalid-package-file'

The package file violates the Debian/Ubuntu policy

aptdaemon.enums.ERROR_SYSTEM_ALREADY_UPTODATE = 'error-system-already-uptodate'

The system is already up-to-date and don’t needs any upgrades

aptdaemon.enums.ERROR_NOT_SUPPORTED = 'error-not-supported'

The requested feature is not supported yet (mainly used by PackageKit

aptdaemon.enums.ERROR_LICENSE_KEY_INSTALL_FAILED = 'error-license-key-install-failed'

The license key is invalid

aptdaemon.enums.ERROR_LICENSE_KEY_DOWNLOAD_FAILED = 'error-license-key-download-failed'

The license key download failed

aptdaemon.enums.ERROR_UNKNOWN = 'error-unknown'

An unknown error occured. In most cases these are programming ones.

aptdaemon.enums.STATUS_SETTING_UP = 'status-setting-up'

The transaction was created, but hasn’t been queued.

aptdaemon.enums.STATUS_WAITING = 'status-waiting'

The transaction is waiting in the queue.

aptdaemon.enums.STATUS_WAITING_MEDIUM = 'status-waiting-medium'

The transaction is paused and waits until a required medium is inserted. See ProvideMedium().

aptdaemon.enums.STATUS_WAITING_CONFIG_FILE_PROMPT = 'status-waiting-config-file-prompt'

The transaction is paused and waits for the user to resolve a configuration file conflict. See ResolveConfigFileConflict().

aptdaemon.enums.STATUS_WAITING_LOCK = 'status-waiting-lock'

Wait until the package management system can be locked. Most likely another package manager is running currently.

aptdaemon.enums.STATUS_RUNNING = 'status-running'

The processing of the transaction has started.

aptdaemon.enums.STATUS_LOADING_CACHE = 'status-loading-cache'

The package cache is opened.

aptdaemon.enums.STATUS_DOWNLOADING = 'status-downloading'

The required package files to install are getting downloaded.

aptdaemon.enums.STATUS_COMMITTING = 'status-committing'

The actual installation/removal takes place.

aptdaemon.enums.STATUS_CLEANING_UP = 'status-cleaning-up'

The package management system is cleaned up.

aptdaemon.enums.STATUS_RESOLVING_DEP = 'status-resolving-dep'

The dependecies and conflicts are now getting resolved.

aptdaemon.enums.STATUS_FINISHED = 'status-finished'

The transaction has been completed.

aptdaemon.enums.STATUS_CANCELLING = 'status-cancelling'

The transaction has been cancelled.

aptdaemon.enums.STATUS_QUERY = 'status-query'

The transaction performs a query

aptdaemon.enums.STATUS_DOWNLOADING_REPO = 'status-downloading-repo'

The information about available packages is downloaded

aptdaemon.enums.ROLE_UNSET = 'role-unset'

The role of the transaction has not been specified yet.

aptdaemon.enums.ROLE_INSTALL_PACKAGES = 'role-install-packages'

The transaction will install one or more packages.

aptdaemon.enums.ROLE_INSTALL_FILE = 'role-install-file'

The transaction will install a local package file.

aptdaemon.enums.ROLE_UPGRADE_PACKAGES = 'role-upgrade-packages'

The transaction will upgrade one or more packages.

aptdaemon.enums.ROLE_UPGRADE_SYSTEM = 'role-upgrade-system'

The transaction will perform a system upgrade.

aptdaemon.enums.ROLE_UPDATE_CACHE = 'role-update-cache'

The transaction will update the package cache.

aptdaemon.enums.ROLE_REMOVE_PACKAGES = 'role-remove-packages'

The transaction will remove one or more packages.

aptdaemon.enums.ROLE_COMMIT_PACKAGES = 'role-commit-packages'

The transaction will perform a combined install, remove, upgrade or downgrade action.

aptdaemon.enums.ROLE_ADD_VENDOR_KEY_FILE = 'role-add-vendor-key-file'

The transaction will add a local vendor key file to authenticate packages.

aptdaemon.enums.ROLE_ADD_VENDOR_KEY_FROM_KEYSERVER = 'role-add-vendor-key-from-keyserver'

The transaction will download vendor key to authenticate packages from a keyserver.

aptdaemon.enums.ROLE_REMOVE_VENDOR_KEY = 'role-remove-vendor-key'

The transaction will remove a vendor key which was used to authenticate packages.

aptdaemon.enums.ROLE_FIX_INCOMPLETE_INSTALL = 'role-fix-incomplete-install'

The transaction will try to finish a previous aborted installation.

aptdaemon.enums.ROLE_FIX_BROKEN_DEPENDS = 'role-fix-broken-depends'

The transaction will to resolve broken dependencies of already installed packages.

aptdaemon.enums.ROLE_ADD_REPOSITORY = 'role-add-repository'

The transaction will enable a repository to download software from.

aptdaemon.enums.ROLE_ENABLE_DISTRO_COMP = 'role-enable-distro-comp'

The transaction will enable a component in the distro repositories, e.g main or universe

aptdaemon.enums.ROLE_CLEAN = 'role-clean'

The transaction will remove all downloaded package files.

aptdaemon.enums.ROLE_RECONFIGURE = 'role-reconfigure'

The transaction will reconfigure the given already installed packages

aptdaemon.enums.ROLE_PK_QUERY = 'role-pk-query'

The transaction performs a query compatible to the PackageKit interface

aptdaemon.enums.ROLE_ADD_LICENSE_KEY = 'role-add-license-key'

The transaction will add a license key to the system

aptdaemon.enums.DOWNLOAD_DONE = 'download-done'

The download has been completed.

aptdaemon.enums.DOWNLOAD_AUTH_ERROR = 'download-auth-error'

The file could not be downloaded since the authentication for the repository failed.

aptdaemon.enums.DOWNLOAD_ERROR = 'download-error'

There file could not be downloaded, e.g. because it is not available (404).

aptdaemon.enums.DOWNLOAD_FETCHING = 'download-fetching'

The file is currently being downloaded.

aptdaemon.enums.DOWNLOAD_IDLE = 'download-idle'

The download is currently idling.

aptdaemon.enums.DOWNLOAD_NETWORK_ERROR = 'download-network-error'

The download failed since there seem to be a networking problem.

aptdaemon.enums.PKG_INSTALLING = 'pkg-installing'

The package gets installed

aptdaemon.enums.PKG_CONFIGURING = 'pkg-configuring'

The package gets configured

aptdaemon.enums.PKG_REMOVING = 'pkg-removing'

The package gets removed

aptdaemon.enums.PKG_PURGING = 'pkg-purging'

The package gets purged

aptdaemon.enums.PKG_UPGRADING = 'pkg-upgrading'

The package gets upgraded

aptdaemon.enums.PKG_RUNNING_TRIGGER = 'pkg-running-trigger'

The post installation trigger of the package is processed

aptdaemon.enums.PKG_DISAPPEARING = 'pkg-disappearing'

The package disappered - very rare

aptdaemon.enums.PKG_PREPARING_REMOVE = 'pkg-preparing-removal'

The removal of the package gets prepared

aptdaemon.enums.PKG_PREPARING_INSTALL = 'pkg-preparing-install'

The installation of the package gets prepared

aptdaemon.enums.PKG_PREPARING_PURGE = 'pkg-preparing-purge'

The purging of the package gets prepared

aptdaemon.enums.PKG_PREPARING_PURGE = 'pkg-preparing-purge'

The purging of the package gets prepared

aptdaemon.enums.PKG_INSTALLED = 'pkg-installed'

The package is installed

aptdaemon.enums.PKG_REMOVED = 'pkg-removed'

The package is removed

aptdaemon.enums.PKG_PURGED = 'pkg-purged'

The package was completely removed

aptdaemon.enums.PKG_UNPACKING = 'pkg-unpacking'

The package gets unpacked

aptdaemon.enums.PKG_UNKNOWN = 'pkg-unknown'

Failed to get a current status of the package

aptdaemon.enums.get_status_icon_name_from_enum(enum)

Get the icon name for a transaction status.

Parameters:enum – The transaction status enum, e.g. STATUS_WAITING.
Returns:The icon name string.
aptdaemon.enums.get_role_icon_name_from_enum(enum)

Get an icon to represent the role of a transaction.

Parameters:enum – The transaction role enum, e.g. ROLE_UPDATE_CACHE.
Returns:The icon name string.
aptdaemon.enums.get_status_animation_name_from_enum(enum)

Get an animation to represent a transaction status.

Parameters:enum – The transaction status enum, e.g. STATUS_WAITING.
Returns:The animation name string.
aptdaemon.enums.get_package_status_from_enum(enum)

Get the description of a package status.

Parameters:enum – The download status enum, e.g. PKG_INSTALLING.
Returns:The description string.
aptdaemon.enums.get_role_localised_past_from_enum(enum)

Get the description of a completed transaction action.

Parameters:enum – The transaction role enum, e.g. ROLE_UPDATE_CACHE.
Returns:The description string.
aptdaemon.enums.get_exit_string_from_enum(enum)

Get the description of a transaction exit status.

Parameters:enum – The transaction exit status enum, e.g. EXIT_FAILED.
Returns:The description string.
aptdaemon.enums.get_role_localised_present_from_enum(enum)

Get the description of a present transaction action.

Parameters:enum – The transaction role enum, e.g. ROLE_UPDATE_CACHE.
Returns:The description string.
aptdaemon.enums.get_role_error_from_enum(enum)

Get the description of a failed transaction action.

Parameters:enum – The transaction role enum, e.g. ROLE_UPDATE_CACHE.
Returns:The description string.
aptdaemon.enums.get_error_description_from_enum(enum)

Get a long description of an error.

Parameters:enum – The transaction error enum, e.g. ERROR_NO_LOCK.
Returns:The description string.
aptdaemon.enums.get_error_string_from_enum(enum)

Get a short description of an error.

Parameters:enum – The transaction error enum, e.g. ERROR_NO_LOCK.
Returns:The description string.
aptdaemon.enums.get_status_string_from_enum(enum)

Get the description of a transaction status.

Parameters:enum – The transaction status enum, e.g. STATUS_WAITING.
Returns:The description string.
aptdaemon.enums.get_download_status_from_enum(enum)

Get the description of a download status.

Parameters:enum – The download status enum, e.g. DOWNLOAD_DONE.
Returns:The description string.

Previous topic

aptdaemon.client — The client module

Next topic

aptdaemon.gtk3widgets — The gtk3widgets module

This Page