website/content/blog/resumingapt.md

17 lines
692 B
Markdown
Raw Permalink Normal View History

2020-02-29 18:02:22 -05:00
---
title: "Resuming Stopped Apt Updates"
date: 2020-02-29T17:58:14-05:00
draft: false
2022-01-02 14:24:29 -05:00
tags: [ "Ubuntu", "Linux" ]
2023-01-05 14:04:45 -05:00
medium_enabled: true
2020-02-29 18:02:22 -05:00
---
Especially on the Raspberry Pi, it is quite often for me to lose connection while updating. I know some people setup `screen` or `tmux` sessions so that they can easily reconnect. I'm not good at remembering to do this. [Angus and Cas](https://unix.stackexchange.com/a/46546) on StackExchange shared that to resume a stopped update...
```bash
sudo kill $(pgrep dpkg)
sudo dpkg --configure --pending
sudo apt install -f
```
Which will then configure the packages that have already been installed but not configured yet and finish installing packages.