Ubuntu 21.04. Newbie here. Please confirm correctness before I do a Timeshift system restore

Newbie here. See pics. Some of my apps got messed up and I want to do a Timeshift system restore to yesterday (Aug 10th). Please look at the pics and see if I’m all set to do a restore. Will this restore take my apps back to yesterday? I want to make sure cuz I know a bad restore can trash my whole system. Thanks.
.
.

Should be good to go. I’ve used Timeshift to get out of a few sticky situations myself. From what I can see your home folder won’t be touched, only stuff outside of /home will be rolled back. Since I don’t know what the issue is, I cant tell you whether or not this is the right approach. If it’s a broken deb package that can’t be uninstalled (… this has happened to me), then a Timeshift restore is a good idea. If one specific app is misbehaving I might try finding it’s config files and moving them to a backup location to see if that fixes the problem first.
Best of luck anyway.

1 Like

Yes, this is my issue, 2 of my apps (Flameshot and KDEConnect) are not working and I can’t remove them. Is there a typical location where app config files are stored? Thx.

They are usually in the .config/ hidden directory. I generally use the find command if I’m not sure exactly what I’m looking for… Here’s a screnshot that shows where flameshot configuration files are on my system (Kubuntu 20.04)


This is essentially searching for anything in the current directory (my home folder) that has “flames” somewhere in the file name.

Also, since it looks like you’re trying to use KDE Connect with Gnome. have you looked at GSConnect (GSConnect - GNOME Shell Extensions)?

1 Like

OK, I found .config/flameshot/flameshot.ini. I just delete it?

Yep. The default configuration will be restored the next time you launch the app.

1 Like

I found all these other Flameshot files and directories. Some or all should be deleted? Yesterday I tried unsuccessfully to delete “apt Flameshot” and “flatpak Flameshot”. I would love to fully delete/remove/purge/nuke ALL vestiges of Flameshot and start over. That possible? Thanks.

If I delete ALL of these, will my system crash/die/blow up?

file:///var/crash/_usr_bin_flameshot.1000.upload
file:///var/crash/_usr_bin_flameshot.1000.uploaded
file:///home/advait/.config/flameshot
file:///home/advait/snap/flameshot
file:///home/advait/.config/flameshot/flameshot.ini
file:///var/lib/snapd/sequence/flameshot.json
file:///home/advait/.var/app/org.flameshot.Flameshot
file:///home/advait/.config/autostart/flameshot.desktop
file:///var/cache/apt/archives/flameshot_0.8.5-4_amd64.deb
file:///home/advait/AUFs/Images/Screenshots/2021%2008%2011%20Flameshot%20installed.png
file:///home/advait/.cache/gnome-software/icons/0e0cf14ef7da36259a98da872a4daa606acdd823-flameshot.svg.png
file:///home/advait/.var/app/org.flameshot.Flameshot/config/flameshot
file:///home/advait/.local/share/Trash/files/flameshot_0.6.0_x86_64.AppImage
file:///home/advait/.local/share/Trash/info/flameshot_0.6.0_x86_64.AppImage.trashinfo
file:///var/lib/app-info/icons/ubuntu-hirsute-universe/48x48/flameshot_org.flameshot.Flameshot.png
file:///var/lib/app-info/icons/ubuntu-hirsute-universe/64x64/flameshot_org.flameshot.Flameshot.png
file:///home/advait/.cache/gnome-software/screenshots/112x63/6e2398fda853572114fe9f81c0ad65588396db9c51930c335d26a09040a3da17-org.flameshot.Flameshot-d0fe075ee65ed5f8e3d63de6d1f5aaa7.png
file:///home/advait/.cache/gnome-software/screenshots/112x63/fe03b88f18c50905493674b5a515b3f3e191ddeae4a397d168c31ac5c41293e5-org.flameshot.Flameshot-761f397a4a9e07dbe775f87ff6412ced.png
file:///home/advait/.cache/gnome-software/screenshots/624x351/bb209ad634b1acc7d17a86b5034deaa49a1efbba51945a4a5484f36b4111c799-org.flameshot.Flameshot-d0fe075ee65ed5f8e3d63de6d1f5aaa7.png
file:///home/advait/.var/app/org.flameshot.Flameshot/config/flameshot/flameshot.ini
file:///var/lib/flatpak/repo/refs/heads/deploy/app/org.flameshot.Flameshot
file:///var/lib/flatpak/repo/refs/remotes/flathub/app/org.flameshot.Flameshot
file:///home/advait/snap/snap-store/common/.cache/gnome-software/odrs/io.snapcraft.flameshot-zu6wU07bp76WpXA1NZhzV0hu2UnoS63R.json
file:///home/advait/.local/share/icons/hicolor/32x32/apps/appimagekit_f9b7a27094de498d4062857d90ffaf6b_flameshot.png
file:///home/advait/snap/snap-store/common/.cache/gnome-software/icons/0e0cf14ef7da36259a98da872a4daa606acdd823-flameshot.svg.png
file:///var/lib/flatpak/appstream/flathub/x86_64/4706f6f8f1d8c8daa4564911c9140db61289257fc04abdd4babf60032929a153/icons/64x64/org.flameshot.Flameshot.png
file:///var/lib/flatpak/appstream/flathub/x86_64/4706f6f8f1d8c8daa4564911c9140db61289257fc04abdd4babf60032929a153/icons/128x128/org.flameshot.Flameshot.png
file:///var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15/1d61fde96c732a939f32d225138df433d9d19ef2162ae2d5dabf958225996485/files/share/icons/breeze-dark/status/22/flameshot-tray.svg
file:///var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15/1d61fde96c732a939f32d225138df433d9d19ef2162ae2d5dabf958225996485/files/share/icons/breeze/status/22/flameshot-tray.svg
file:///home/advait/.cache/gnome-software/flatpak/installation-tmp/appstream/vlc-origin/x86_64/5d35638e4c7b1978ddd5113744fb5daab535d2b3c6127ba55e3613e407ddf10e/icons/64x64/org.flameshot.Flameshot.png
file:///home/advait/.cache/gnome-software/flatpak/installation-tmp/appstream/vlc-origin/x86_64/5d35638e4c7b1978ddd5113744fb5daab535d2b3c6127ba55e3613e407ddf10e/icons/128x128/org.flameshot.Flameshot.png

I’d try sudo apt remove flameshot --purge and flatpak remove org.flameshot.Flameshot --delete-data, assuming you installed the Flatpak and the version from the Ubuntu repo.

1 Like

Yep, that’s correct. I’ll try the commands you sent and report back soon.

So this command is all on one line? Or 2 separate commands? (Remember, I’m a newbie)
sudo apt remove flameshot --purgeandflatpak remove org.flameshot.Flameshot --delete-data

Two separate commands. First

  • sudo apt remove flameshot --purge

To remove the version from the Ubuntu repo, and then

  • flatpak remove org.flameshot.Flameshot --delete-data

to remove the flatpak.

1 Like

Here’s the results. Doesn’t look like it did much? Should I go ahead and just do the Timeshift system restore?

advait@advait-Bravo-15-A4DDR:~$ sudo apt remove flameshot --purge
[sudo] password for advait: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'flameshot' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
advait@advait-Bravo-15-A4DDR:~$ 
advait@advait-Bravo-15-A4DDR:~$ flatpak remove org.flameshot.Flameshot --delete-data
error: org.flameshot.Flameshot/*unspecified*/*unspecified* not installed
advait@advait-Bravo-15-A4DDR:~$ 

Looks like neither was actually installed. If you’re still having some kind of issue I’d try the Timeshift restore, but I’m not entirely clear on what the problem is.

1 Like

OK, just to double check, do I do the system restore from some kind of live usb? Or just do it from my normal Ubuntu system?

Just from the normal system. It will go through the process and then reboot automatically.

1 Like

OK, I’m taking a deep breath and hoping it works. I’ll report back soon.

Whoa! Looks like the restore worked! Very nice. Flameshot and KDEConnect now working again. Thanks for giving me the support and courage to do my first system restore. Now I’ll be doing system snapshots lots more before I install or update anything.

Only problem is VLC (snap) no longer working. UPDATE: I removed the VLC snap and installed the VLC flapak and now VLC seems to be working normally. Thanks for all your help!

1 Like