Comments (7)
I never really did any in depth testing on this at the time. I think it's worth keeping open for consideration in the future for when I get around to having another sprint at fixing a bunch of appcenter issues.
from settings-daemon.
Gonna punt from Juno beta2 because this issue occurs in Loki and isn't new to Juno
from settings-daemon.
From @davidmhewitt at elementary/appcenter#813 (comment):
After doing some more testing and looking at the code of PackageKit, I'm of the strong belief that it may already be able to resolve this issue and other issues like it with the
repair_system
methods.I guess the only thing worth thinking about is the UX behind it. I think the sensible thing to do would be to assume that the system is broken in some way if an upgrade/removal/installation fails, but then do we automatically attempt a
repair_system
in that case or do we let the user choose?There's some risk behind doing it automatically, because depending on how broken the packaging system is, there's always the risk of breaking it more by letting some algorithm try to automatically add/remove packages to try and bring it back into a sensible state. But at the same time it's quite a technical question that may confuse people. I guess the only benefit we're offering by not doing it automatically and letting the user choose is that the more technical users that understand
apt
/dpkg
at the command line possibly have a somewhat better chance at resolving it manually and they can cancel the auto repair.
from settings-daemon.
Personally, I think we should be safe to attempt to fix things automatically if things are broken when we go to update or install something.
If the user's system is in a broken state, then I think it's the least we can do. Users who are using apt/dpkg are probably not updating/installing via AppCenter anyway, so I think they'd see the breakage themselves when in the Terminal and be able to fix it there.
I'm not gonna lie, this is also an easy out from designing an error dialog that explains the situation well to all users and gives them the choice. Because that sounds really hard. 😛
from settings-daemon.
We also do have the developer flag. Maybe if that's set, then we don't attempt a repair and just throw a dialog explaining the error? I'm not sure what else that flag is intended to affect…
from settings-daemon.
@davidmhewitt do we know if this is still a practical issue in AppCenter?
from settings-daemon.
Moving to settings-daemon since AppCenter is planned to no longer support packagekit updates
from settings-daemon.
Related Issues (20)
- Check for and notify of available OS upgrade HOT 1
- Include sandboxed apps' temporary folders in housekeeping
- Housekeeping keeps deleting my home directory HOT 2
- Segfault HOT 1
- Error while trying to run OS updates HOT 1
- OS updates fail HOT 1
- Available drivers notification HOT 1
- Add screenshots to housekeeping HOT 3
- AppCenter installs phased updates even if they are held back HOT 1
- Authentication Error When Updating
- kernel updates require two reboots HOT 10
- Focus Modes HOT 3
- Prefer AccountsService's `InputSources` property instead of custom `KeyboardLayout/XkbOptions` pair. HOT 1
- Auto switch to dark theme stopped working HOT 2
- Expose current dark/light mode over gsettings HOT 4
- Remind user to setup and execute backups HOT 2
- Take over Automatic TimeZone setting
- Make system update a meson option HOT 2
- Doesn't start with session under Wayland
- Settings portal doesn't work with automatic accent color HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from settings-daemon.