Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 10548
Next
In Process

askthedev.com Latest Questions

Asked: September 26, 20242024-09-26T04:35:55+05:30 2024-09-26T04:35:55+05:30In: Ubuntu

How can I install an older version of a Snap package on Ubuntu? I’m looking for guidance on specifying a particular version during the installation process.

anonymous user

I’ve been tinkering around with my Ubuntu setup, and I recently found out that the Snap package I use for a specific app has updated to a newer version. While, in most cases, I appreciate the updates, this one has introduced some bugs that are really messing with my workflow. I’ve heard that with Snap packages, you can actually roll back to an older version, but honestly, I’m a bit lost on how to do this.

Is there a way to specify a particular version when I try to install an older version of a Snap package? I’ve read a little about using the command line and Snap’s features, but it all seems a bit convoluted. For instance, I saw something regarding ‘snap info’ that can show all the versions available, but once I’m there, I’m not totally sure what comes next. Do I need to completely remove the current version before I can install the older one?

Also, if anyone has experience with this, could you walk me through the steps? It would be super helpful if you provided the command line examples and anything else I might need to know, like potential dependencies or configurations that might get messed up during this process.

Another thing I’m worried about is if there’s an easy way to revert back to the newer version later if the bugs get patched or if I decide I prefer the new features. Is there a safe way to keep both versions on my system?

I’m just trying to avoid any major headaches or losing important settings. I’d really appreciate any tips or guidance from those who’ve been in a similar bind. Thanks in advance for your help with this Snap package conundrum!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-26T04:35:56+05:30Added an answer on September 26, 2024 at 4:35 am



      Rolling Back Snap Packages

      Rolling Back to an Older Snap Package Version

      So, I totally get where you’re coming from! Snap packages can be a bit tricky, but I’ll try to break it down for you step by step.

      Step 1: Check Available Versions

      First up, you want to see what versions of the app you actually have available to roll back to. You can do this with the following command:

      snap info your-package-name

      Just replace your-package-name with the actual name of the app you’re working with. This should give you a list of versions.

      Step 2: Roll Back to an Older Version

      If you’ve found the version you want to go back to, you can install it using this command:

      sudo snap refresh your-package-name --channel=version-channel

      Here’s where it gets a bit confusing. The version-channel part is usually something like beta, stable, or a specific version like 1.0.0. If the older version is in a specific channel, you should specify that.

      Do You Need to Remove the Current Version?

      Nope! You don’t need to completely remove the current version first. snap refresh will handle that for you and switch to the version you specified.

      Step 3: Reverting Back to the New Version

      If later on you want to go back to the latest version (like if they patch those bugs), you can just run the same command again with the latest channel or version. For example:

      sudo snap refresh your-package-name --channel=latest/stable

      You don’t have to worry about keeping both versions on your system because Snap isn’t like other package managers—it keeps multiple versions for you; you just choose which one to use when you refresh.

      Anything Else to Worry About?

      Most of the time, the configurations and settings for your app should stay intact during these rollbacks. But it’s always a good idea to check if the app has some special settings in a configuration file somewhere just to be safe.

      Hope this helps and that you can get back to being productive without those pesky bugs!


        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-26T04:35:57+05:30Added an answer on September 26, 2024 at 4:35 am


      To roll back a Snap package to an older version, you can utilize the Snap command line tools to manage versions effectively. First, check the available versions of the Snap package by running snap info . This command displays the version history, including the currently active version and older versions you might want to revert to. Once you have identified the version number you wish to roll back to, you can use the command sudo snap refresh --revision= to install the older version without needing to remove the current one first. This allows you to revert quickly and efficiently without the hassle of configuring dependencies or losing your settings.

      If you find that the newer version works better later, you can simply follow the same process to restore it to its latest version. To switch back to the newer version after reverting, run the same sudo snap refresh command without specifying a revision number, and it will automatically install the latest version. Keep in mind that Snap manages versions quite well, so your existing configurations and settings should remain intact. Just ensure that you periodically check for updates and maintain backups when dealing with applications that significantly impact your workflow.


        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this issue?
    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?
    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. Has anyone experienced this issue ...
    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?
    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else encountered this problem, and what ...

    Sidebar

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this ...

    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?

    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. ...

    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else ...

    • How can I configure a server running Ubuntu to bind specific IP addresses to two different network interfaces? I'm looking for guidance on how to ...

    • Is it possible to configure automatic login on Ubuntu MATE 24.04?

    • After upgrading from Ubuntu Studio 22.04 to 24.04.1, I lost all audio functionality. What steps can I take to diagnose and resolve this issue?

    • I am experiencing issues booting Ubuntu 22.04 LTS from a live USB. Despite following the usual procedures, the system fails to start. What steps can ...

    • I'm encountering a problem with my Expandrive key while trying to update my Ubuntu system. Has anyone else faced similar issues, and if so, what ...

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.