I am a certified Linux user with almost 10 years of experience.
Please run the following command in a terminal:
sudo apt update && sudo apt upgrade -y
Let me know if this fixes your issue
- certified Linux expert
(I’m making fun of the 25 year Microsoft veterans on the support page that tell users to run SFC /scannow)
sudo: apt: command not found
I am a certified Linux user with over 20 years of experience.
Please run the following command in a terminal:
sudo dnf install apt
And then try the instructions above. Let me know if this fixes your issue
- certified Linux expert
sudo: dnf: command not found
Ah you seem to be missing dnf. No worries! Just do
pacman -S dnf
Then you can run
dnf install apt
Package managers-ception moment XD
It’s asking me for a password. OMG why doesn’t it know it’s me and do what I tell it.
- randomGeneratedUsername
You joke but ssu is for that (since you are logged in already, why ask for a password).
Edit: this is for single-user systems. Makes yay (AUR helper) pretty convenient.
Oh no. This is so bad. Who in their right mind would assume that a login user remains the same user throughout the session!?
Oh wait. Windows.
why ask for a password.
To give the user an extra second to realise they’re doing dumb shit, and should stop?
Like, editing a /etc/config file or installling a package. You’re ading ssu to <tool> already, you’re aware you’re doing root tasks.
Also, so that a random program you run as an wheel user can’t just get root access without asking.
Very often sfc /scannow will ask for an installation media, which, in a corporate environment, means sending the machine to onsite support for either “fixing” or “reimaging”. It’s basically the command you should try first if you don’t want to help someone fixing the issue. “See? There is something wrong with your installation, you should fix that before doing anything else…”
I used that trick a few times myself to get rid of poorly behaving people.
What’s the point of sfc /scannow if it’s going to require an installation media to use, isn’t that the point of a recovery partition? Does Windows just not ship with that Anymore?
Oh, I don’t know how it is nowadays, I have switched to Linux since many years ago…
It shouldn’t
But it did MOST of the times…
How long ago?
I would say around 15 years ago, it was Windows XP
Exactly
And don’t forget to press kudos button if it fixes your problem
I remember when SFC was first introduced, I excitedly wrote a script to invoke it remotely so I could use it on a user’s pc when they called to fix their problem. To this day I have never run that script. This was in 1998.
Its useful for fixing a Windows install after fixing a bad ram. Sometimes the utility gets corrupted so you need to fix it first.
I think it would be a great idea if some of the immutable Linux distros had a integrity checker like sfc
I think on mutable distros, or at least arch, you can run a command to reinstall all installed packages, which will verify integrity of the package files (signatures) and then ensure the files in the filesystem match package files? And I think it takes minutes at most, at least for typical setups.
I do think it’s also possible to just verify integrity of all files installed from a package, but I don’t remember if it required an external utility, pretty sure it’s on the arch wiki under pacman/tips and tricks
When I was doing tech support I was using it a ton. I had a fleet of machines that issues with SSDs and ram
I enjoy red hat’s paid support articles that end by saying this is untested and may not work but it was added to the knowledge base 10 years ago
deleted by creator