Skip to content

Instantly share code, notes, and snippets.

@RobbiNespu
Created May 19, 2018 06:30
Show Gist options
  • Save RobbiNespu/0707700cad33c7fd830af0c5a91c3e3c to your computer and use it in GitHub Desktop.
Save RobbiNespu/0707700cad33c7fd830af0c5a91c3e3c to your computer and use it in GitHub Desktop.
rnm@robbinespu ~]$ sudo dnf update
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for rnm:
Error: Error: rpmdb failed to list provides. Try: rpm --rebuilddb
[rnm@robbinespu ~]$ rpm --rebuilddb
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[rnm@robbinespu ~]$ sudo rpm --rebuilddb
[rnm@robbinespu ~]$ sudo dnf update
Unable to detect release version (use '--releasever' to specify release version)
Error: Failed to synchronize cache for repo 'updates'
[rnm@robbinespu ~]$ sudo dnf update
Unable to detect release version (use '--releasever' to specify release version)
Error: Failed to synchronize cache for repo 'updates'
[rnm@robbinespu ~]$ sudo dnf upgrade
Unable to detect release version (use '--releasever' to specify release version)
Error: Failed to synchronize cache for repo 'updates'
[rnm@robbinespu ~]$ sudo dnf update --releasever=28
Fedora 28 - x86_64 - Updates 96 kB/s | 8.8 MB 01:33
Fedora 28 - x86_64 651 kB/s | 60 MB 01:35
Last metadata expiration check: 0:00:34 ago on Sat 19 May 2018 02:23:44 PM +08.
Dependencies resolved.
Nothing to do.
Complete!
[rnm@robbinespu ~]$ sudo dnf update
Unable to detect release version (use '--releasever' to specify release version)
Error: Failed to synchronize cache for repo 'updates'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment