libalpm_errors(3)
π libalpm_errors β Error Codes
okay so welcome to the libalpm_errors(3) page bestie, this is part of the Library Functions Manual and it's literally all about the error codes that libalpm hands back to you when things go sideways π«Ά
- Error codes returned by libalpm.
β¨ SYNOPSIS β¨
πΈ Enumerations
enum alpm_errno_t { ALPM_ERR_OK = 0, ALPM_ERR_MEMORY, ALPM_ERR_SYSTEM,
ALPM_ERR_BADPERMS, ALPM_ERR_NOT_A_FILE, ALPM_ERR_NOT_A_DIR,
ALPM_ERR_WRONG_ARGS, ALPM_ERR_DISK_SPACE, ALPM_ERR_HANDLE_NULL,
ALPM_ERR_HANDLE_NOT_NULL, ALPM_ERR_HANDLE_LOCK, ALPM_ERR_DB_OPEN,
ALPM_ERR_DB_CREATE, ALPM_ERR_DB_NULL, ALPM_ERR_DB_NOT_NULL,
ALPM_ERR_DB_NOT_FOUND, ALPM_ERR_DB_INVALID, ALPM_ERR_DB_INVALID_SIG,
ALPM_ERR_DB_VERSION, ALPM_ERR_DB_WRITE, ALPM_ERR_DB_REMOVE,
ALPM_ERR_SERVER_BAD_URL, ALPM_ERR_SERVER_NONE,
ALPM_ERR_TRANS_NOT_NULL, ALPM_ERR_TRANS_NULL,
ALPM_ERR_TRANS_DUP_TARGET, ALPM_ERR_TRANS_DUP_FILENAME,
ALPM_ERR_TRANS_NOT_INITIALIZED, ALPM_ERR_TRANS_NOT_PREPARED,
ALPM_ERR_TRANS_ABORT, ALPM_ERR_TRANS_TYPE,
ALPM_ERR_TRANS_NOT_LOCKED, ALPM_ERR_TRANS_HOOK_FAILED,
ALPM_ERR_PKG_NOT_FOUND, ALPM_ERR_PKG_IGNORED, ALPM_ERR_PKG_INVALID,
ALPM_ERR_PKG_INVALID_CHECKSUM, ALPM_ERR_PKG_INVALID_SIG,
ALPM_ERR_PKG_MISSING_SIG, ALPM_ERR_PKG_OPEN,
ALPM_ERR_PKG_CANT_REMOVE, ALPM_ERR_PKG_INVALID_NAME,
ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_SIG_MISSING,
ALPM_ERR_SIG_INVALID, ALPM_ERR_UNSATISFIED_DEPS,
ALPM_ERR_CONFLICTING_DEPS, ALPM_ERR_FILE_CONFLICTS,
ALPM_ERR_RETRIEVE, ALPM_ERR_INVALID_REGEX, ALPM_ERR_LIBARCHIVE,
ALPM_ERR_LIBCURL, ALPM_ERR_EXTERNAL_DOWNLOAD, ALPM_ERR_GPGME,
ALPM_ERR_MISSING_CAPABILITY_SIGNATURES }
that's libalpm's error type π periodt.
π¦ Functions
alpm_errno_t alpm_errno (alpm_handle_t *handle)β Returns the current error code from the handle.const char * alpm_strerror (alpm_errno_t err)β Returns the string corresponding to an error number.
π Detailed Description π
Error codes returned by libalpm. that's it, that's the whole vibe π
π Enumeration Type Documentation π
π§ enum alpm_errno_t
libalpm's error type β here's the full roster, no skips, no cap:
Enumerator
ALPM_ERR_OKβ No error. (the iconic zero, the main character,= 0β¨)ALPM_ERR_MEMORYβ Failed to allocate memory. πALPM_ERR_SYSTEMβ A system error occurred.ALPM_ERR_BADPERMSβ Permmision denied.ALPM_ERR_NOT_A_FILEβ Should be a file.ALPM_ERR_NOT_A_DIRβ Should be a directory.ALPM_ERR_WRONG_ARGSβ Function was called with invalid arguments.ALPM_ERR_DISK_SPACEβ Insufficient disk space. πALPM_ERR_HANDLE_NULLβ Handle should be null.ALPM_ERR_HANDLE_NOT_NULLβ Handle should not be null.ALPM_ERR_HANDLE_LOCKβ Failed to acquire lock. πALPM_ERR_DB_OPENβ Failed to open database.ALPM_ERR_DB_CREATEβ Failed to create database.ALPM_ERR_DB_NULLβ Database should not be null.ALPM_ERR_DB_NOT_NULLβ Database should be null.ALPM_ERR_DB_NOT_FOUNDβ The database could not be found. πALPM_ERR_DB_INVALIDβ Database is invalid.ALPM_ERR_DB_INVALID_SIGβ Database has an invalid signature.ALPM_ERR_DB_VERSIONβ The localdb is in a newer/older format than libalpm expects.ALPM_ERR_DB_WRITEβ Failed to write to the database.ALPM_ERR_DB_REMOVEβ Failed to remove entry from database.ALPM_ERR_SERVER_BAD_URLβ Server URL is in an invalid format.ALPM_ERR_SERVER_NONEβ The database has no configured servers.ALPM_ERR_TRANS_NOT_NULLβ A transaction is already initialized.ALPM_ERR_TRANS_NULLβ A transaction has not been initialized.ALPM_ERR_TRANS_DUP_TARGETβ Duplicate target in transaction.ALPM_ERR_TRANS_DUP_FILENAMEβ Duplicate filename in transaction.ALPM_ERR_TRANS_NOT_INITIALIZEDβ A transaction has not been initialized.ALPM_ERR_TRANS_NOT_PREPAREDβ Transaction has not been prepared.ALPM_ERR_TRANS_ABORTβ Transaction was aborted.ALPM_ERR_TRANS_TYPEβ Failed to interrupt transaction.ALPM_ERR_TRANS_NOT_LOCKEDβ Tried to commit transaction without locking the database.ALPM_ERR_TRANS_HOOK_FAILEDβ A hook failed to run.ALPM_ERR_PKG_NOT_FOUNDβ Package not found.ALPM_ERR_PKG_IGNOREDβ Package is in ignorepkg.ALPM_ERR_PKG_INVALIDβ Package is invalid.ALPM_ERR_PKG_INVALID_CHECKSUMβ Package has an invalid checksum.ALPM_ERR_PKG_INVALID_SIGβ Package has an invalid signature.ALPM_ERR_PKG_MISSING_SIGβ Package does not have a signature.ALPM_ERR_PKG_OPENβ Cannot open the package file.ALPM_ERR_PKG_CANT_REMOVEβ Failed to remove package files.ALPM_ERR_PKG_INVALID_NAMEβ Package has an invalid name.ALPM_ERR_PKG_INVALID_ARCHβ Package has an invalid architecture.ALPM_ERR_SIG_MISSINGβ Signatures are missing.ALPM_ERR_SIG_INVALIDβ Signatures are invalid.ALPM_ERR_UNSATISFIED_DEPSβ Dependencies could not be satisfied.ALPM_ERR_CONFLICTING_DEPSβ Conflicting dependencies.ALPM_ERR_FILE_CONFLICTSβ Files conflict.ALPM_ERR_RETRIEVEβ Download failed. πALPM_ERR_INVALID_REGEXβ Invalid Regex.ALPM_ERR_LIBARCHIVEβ Error in libarchive.ALPM_ERR_LIBCURLβ Error in libcurl.ALPM_ERR_EXTERNAL_DOWNLOADβ Error in external download program.ALPM_ERR_GPGMEβ Error in gpgme.ALPM_ERR_MISSING_CAPABILITY_SIGNATURESβ Missing compile-time features.
π₯ Function Documentation π₯
β alpm_errno_t alpm_errno (alpm_handle_t * handle)
Returns the current error code from the handle. like a vibe check but for your handle, iykyk π
Parameters
- handle β the context handle
Returns
- the current error code of the handle
π const char * alpm_strerror (alpm_errno_t err)
Returns the string corresponding to an error number. you give it a number, it gives you the words π«Ά
Parameters
- err β the error code to get the string for
Returns
- the string relating to the given error code
π Author π
Generated automatically by Doxygen for libalpm from the source code. (yes bestie the robots wrote this one, we just gave it the sparkle treatment β¨)
and that's a wrap! this page came from the libalpm manual, page libalpm_errors(3), and if you're wondering about the timestamp, it's dated libalpm β go check the source, mwah π π
π¦ where this page comes from
- epel 10: libalpm-devel 7.0.0-5.el10_2 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms