aptdaemon doesn't respond to network errors correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
New
|
Undecided
|
Unassigned | ||
apt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
(A script is attached to demonstrate the behavior)
1) Go to NetworkManager and disconnect from your network
2) Run the script attached
What happens - The update starts, continues for a few seconds and then finishes with the state "exit-sucess"
What should happen - The update starts, fails and raises an error because it can't connect to the internet.
1) Make sure you are connected to the Internet
2) Run the script attached
3) After a few seconds, go to NetworkManager and disconnect yourself from the internet
What happens - The update starts and just hangs
What should happen - The update starts and then fails (raising an error) because it can no longer connect to the internet.
Such behavior is essential for applications like software-updater and the way it works at the moment seems counter-intuitive.
Changed in debian: | |
status: | Unknown → New |
affects: | debian → apt (Ubuntu) |
Changed in apt (Ubuntu): | |
importance: | Unknown → Undecided |
> What should happen - The update starts and then fails (raising an error) because it can no longer connect to the internet.
No, in your case the update should not fail as the error is temporary and the old indexes are just used instead. Failing would mean breaking valid use cases.