{"id":28263259,"url":"https://github.com/1999azzar/apt-update-fixer","last_synced_at":"2025-10-25T05:03:56.938Z","repository":{"id":288652686,"uuid":"968806970","full_name":"1999AZZAR/apt-update-fixer","owner":"1999AZZAR","description":"A collection of scripts designed to help resolve common and specific issues with the APT and DPKG package management system on Debian/Ubuntu-based Linux distributions.","archived":false,"fork":false,"pushed_at":"2025-04-18T19:15:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T06:35:11.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1999AZZAR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T19:13:00.000Z","updated_at":"2025-04-18T19:15:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"dabda9b8-71db-4894-8145-ecf1c41e3cd5","html_url":"https://github.com/1999AZZAR/apt-update-fixer","commit_stats":null,"previous_names":["1999azzar/apt-update-fixer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1999AZZAR/apt-update-fixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fapt-update-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fapt-update-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fapt-update-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fapt-update-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999AZZAR","download_url":"https://codeload.github.com/1999AZZAR/apt-update-fixer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fapt-update-fixer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906435,"owners_count":26411415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-20T07:14:09.713Z","updated_at":"2025-10-25T05:03:56.921Z","avatar_url":"https://github.com/1999AZZAR.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APT/DPKG Repair Scripts\n\nA collection of scripts designed to help resolve common and specific issues with the APT and DPKG package management system on Debian/Ubuntu-based Linux distributions. These can be useful when encountering errors during `apt update`, `apt upgrade`, or when packages are left in a broken or unconfigured state.\n\n## Scripts Included\n\n1.  **`general-apt-repair`** (Installed from `general-apt-repair.sh`)\n    *   **Purpose:** Runs a standard sequence of commands (`apt update`, `apt --fix-broken install`, `dpkg --configure -a`, `apt upgrade`, `apt autoremove`, `apt clean`) to attempt fixing common package management problems like broken dependencies or partially configured packages.\n    *   **When to use:** **This is usually the first script to try** when you encounter general `apt` or `dpkg` errors.\n\n2.  **`apt-dpkg-repair`** (Installed from `repair_system.sh`)\n    *   **Purpose:** A more **targeted** script designed to fix a *specific* issue where the `python3` package fails to configure due to `py3clean` hook errors (often showing \"cannot get content of ...\" messages for specific packages like `dput`, `gobject-introspection-bin`, etc.). It does this by forcing the reinstallation of `python3` and the packages known to cause issues with that specific hook.\n    *   **When to use:** **Only use this script if you encounter the specific `python3` post-installation configuration errors mentioned above.** Using it for unrelated problems is unlikely to help and might perform unnecessary reinstalls.\n\n## Prerequisites\n\n*   A Debian or Ubuntu-based Linux distribution (e.g., Debian, Ubuntu, Mint, Pop!\\_OS).\n*   `sudo` privileges are required to run the installation and the repair scripts.\n*   `git` installed (to clone this repository).\n\n## Installation\n\nThe included `install.sh` script will copy the repair scripts to `/usr/local/sbin`, making them available system-wide when run with `sudo`.\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/1999AZZAR/apt-update-fixer.git apt-update-fixer\n    ```\n\n2.  **Navigate into the directory:**\n    ```bash\n    cd apt-update-fixer\n    ```\n\n3.  **Run the installation script:**\n    ```bash\n    sudo ./install.sh\n    ```\n\nThe installer will copy the scripts, set appropriate ownership (root:root), and make them executable.\n\n## Usage\n\nAfter successful installation, you can run the scripts from any terminal location using `sudo`:\n\n*   **For general APT/DPKG issues:**\n    ```bash\n    sudo general-apt-repair\n    ```\n\n*   **For the specific `python3`/`py3clean` configuration error:**\n    ```bash\n    sudo apt-dpkg-repair\n    ```\n\nMonitor the output of the scripts carefully for any errors or warnings.\n\n## Disclaimer\n\n⚠️ **Use these scripts with caution!** ⚠️\n\n*   These scripts execute system commands with `sudo` privileges and directly interact with your system's package manager.\n*   While designed to fix common problems, there's always a risk when modifying system configurations. Incorrect use or unforeseen circumstances could potentially lead to further issues.\n*   Always ensure you have **backups of important data** before running system repair tools.\n*   Understand the difference between the `general-apt-repair` and the targeted `apt-dpkg-repair` script and use them appropriately.\n\nThese scripts are provided \"as is\" without warranty of any kind. The authors or contributors are not responsible for any damage caused by their use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fapt-update-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999azzar%2Fapt-update-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fapt-update-fixer/lists"}