Posted inInformation Technology

The Closed Question #2

Ubuntu shopping bag

A closed question is the mark of a site that is letting those without knowledge run amuck. Today I ran into another one. Others had already commented that this question should not have been closed. Those who do not understand technology would never admit their error. The powers that be have also decided that questions fitting a limited number of formulas are what increase advertising revenue so real questions and real answers be damned. For those who don’t remember my last closed question post you can find it here.

I am on Ubuntu 20.04 LTS. When I go into the Ubuntu Store, I find that there are two updates ready for snapd and core. When I try to apply the updates, I get this error:

Unable to update snapd: snap has no updates available
From the question

That was the gist of the question that someone who knows nothing closed. Many attempts had been made at solving it. They were well meaning, but rather spastic. Nobody was keeping track of what order they did things in. Eventually “the problem went away on its own.”

No it didn’t. You just didn’t keep track of what you did in what order . . . I did. Since I’m certain nobody at that site will admit they made an egregious error closing the question I’m certain they won’t approve my modifications which included a detailed explanation of the problem and the solution. You, dear reader, will have the benefit of that knowledge while the moderators hide in shame.

The Problem is AGILE

This problem is rampant in Ubuntu 20 through 22.04. It will be a problem in Ubuntu until Canonical abandons Snap for FlatPak like the rest of the Linux world.The question should have never been closed.

The problem is that Canonical uses AGILE which is a completely false software development methodology. Without Waterfall SDLC and a Systems Architect riding roughshod over development you create these problems.

No Architectural Design.

ubuntu-software (which is the application behind the little orange shopping bag)

Ubuntu shopping bag
ubuntu-software

is a snap application.

You cannot update the snap-store when a snap application has it open. We have quite a few partial solutions listed with the original question. The problem is the stuff is in the wrong order.

If you

sudo apt-get update
sudo apt-get upgrade
sudo snap refresh

Then open the shopping bag, you will get this error.

better error

The Answer

Since this is a closed question that should have never been closed and it really needs an answer, here it is.

sudo apt-get update
sudo apt-get upgrade
sudo snap refresh

Reboot now. After booting open a terminal

killall snap-store
snap refresh

You will be prompted for your sudo password. You will then see a progress bar overwriting your text until you see the following:

after snap refresh
Now you can refresh snap-store

This lack of architectural design is impacting tens of thousands of people and the question should have never been closed. This isn’t a problem caused by a partial upgrade or any of the usual suspects. This is a failed design. If you cannot get to the command line you cannot get around this problem.

Now when you open the orange shopping bag you should see

snap up to date
All is well

The Closed Question Should Not Be Closed

At the time of this writing

Question Has 24K views

the question has 24K views. I’m not exaggerating when I say this problem impacts tens of thousands of people. Ubuntu is used as a development environment for many embedded systems projects so this problem will continue to impact users. AGILE cannot produce a valid system architecture. You cannot write code looking no further ahead than six inches past your shoes and turn out a quality product.

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc.

A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born.

Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy:
Infinite Exposure
Lesedi - The Greatest Lie Ever Told
John Smith - Last Known Survivor of the Microsoft Wars

When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.