Building a robust offline package repository is crucial for managing software installations in air-gapped environments or on servers with limited internet access. This approach ensures that all necessary dependencies are available locally, preventing installation failures and maintaining consistency...
Before switching to a regional mirror, verify your system's distribution codename to ensure repository compatibility: lsb_release -cs For Ubuntu 20.04 LTS, this returns focal. Repository configurations must reference this specific codename—substituting incorrect release names will cause dependency r...
APT (Ubuntu/Debian) Preserve the original software sources list: sudo cp /etc/apt/sources.list /etc/apt/sources.list.$(date +%Y%m%d) Modify the repository definitions: sudo nano /etc/apt/sources.list Substitute the default entries with mirror endpoints. Example configuration for Ubuntu 22.04 using A...
When apt/dpkg reports messages like "files list file for package … missing; assuming package has no files currently installed", it usually means the package’s .list metadata under /var/lib/dpkg/info is gone. The safest fix is to reinstall the affected packages. Below is a small workflow an...