# \[Solved\] Error while update && upgrade

**URL:** <https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835>\
**Category:** Off-Topic\
**Created:** [December 9, 2021, 4:42am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835 "2021-12-09T04:42:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![2rocky1](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/2rocky1/32/1460_2.png) [@2rocky1](https://forums.rockylinux.org/u/2rocky1)\
**Post date:** [December 9, 2021, 4:42am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/1 "2021-12-09T04:42:01Z")

</div>

i have freshly installed Rocky 8.5 onto my pc, and while performing dnf update -y && dnf upgrade -y i was facing this erros.

please help me out.

Many Thanks.

```auto
[username@device-name ~]$ su -
Password: 
[root@device-name ~]# dnf update -y && dnf upgrade -y
Last metadata expiration check: 0:39:58 ago on Thu 09 Dec 2021 09:33:18 AM IST.
Error: 
 Problem: package libreport-2.9.5-15.el8.rocky.2.x86_64 requires libreport-filesystem = 2.9.5-15.el8.rocky.2, but none of the providers can be installed
  - cannot install both libreport-filesystem-2.9.5-15.el8.rocky.4.x86_64 and libreport-filesystem-2.9.5-15.el8.rocky.2.x86_64
  - cannot install the best update candidate for package libreport-filesystem-2.9.5-15.el8.rocky.2.x86_64
  - cannot install the best update candidate for package libreport-2.9.5-15.el8.rocky.2.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@device-name ~]# neofetch
        ##### root@device-name 
       ####### ---------------- 
       ##O#O## OS: Rocky Linux 8.5 (Green Obsidian) x86_64 
       ####### Host: H81M-S 
     ########### Kernel: 4.18.0-348.2.1.el8_5.x86_64 
    ############# Uptime: 58 mins 
   ############### Packages: 1421 (rpm) 
   ################ Shell: bash 4.4.20 
  ################# Resolution: 1366x768 
##################### WM: Mutter 
##################### WM Theme: Adwaita 
  ################# Theme: Adwaita [GTK2/3] 
                        Icons: Adwaita [GTK2/3] 
                        Terminal: gnome-terminal 
                        CPU: Intel Pentium G3240 (2) @ 3.100GHz 
                        GPU: Intel HD Graphics 
                        Memory: 2214MiB / 3637MiB 

                                                
                                                

[root@device-name ~]# 

```

---

<div class="post-metadata">

**Author:** ![2rocky1](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/2rocky1/32/1460_2.png) [@2rocky1](https://forums.rockylinux.org/u/2rocky1)\
**Post date:** [December 9, 2021, 4:48am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/2 "2021-12-09T04:48:30Z")

</div>

> [@2rocky1](#):
>
> `libreport`

solution: i remove libreport\* with dnf autoremove libreport\* -y, now i can update and upgrade, i hope i didnt break any system files.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [December 9, 2021, 9:23am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/3 "2021-12-09T09:23:21Z")

</div>

> [@2rocky1](#):
>
> while performing dnf update -y && dnf upgrade -y

Note that “update” is an alias for “upgrade”. See `man dnf`  
Therefore, you did run `dnf upgrade -y && dnf upgrade -y`

Why twice? If the first failed, then second won’t run and if the first did succeed, then second had nothing to do.

Furthermore, why say “yes” automatically? You can say it interactively too, when the proposed changes are shown to you.

---

<div class="post-metadata">

**Author:** ![anemarkus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anemarkus](https://forums.rockylinux.org/u/anemarkus)\
**Post date:** [December 9, 2021, 10:08am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/4 "2021-12-09T10:08:42Z")

</div>

> [@jlehtone](#):
>
> > [@2rocky1](#):
> >
> > while performing dnf update -y && dnf upgrade -y
> 
> Note that “update” is an alias for “upgrade”.

A debianism? Note that in debian the semantics are different, update downloads metadata, upgrade updates (sic!) packages.

---

<div class="post-metadata">

**Author:** ![2rocky1](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/2rocky1/32/1460_2.png) [@2rocky1](https://forums.rockylinux.org/u/2rocky1)\
**Post date:** [December 11, 2021, 5:53am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/5 "2021-12-11T05:53:40Z")

</div>

yes sir, i have moved from ubuntu to rocky linux as opposed to fedora or cent os.

---

<div class="post-metadata">

**Author:** ![pajamian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/pajamian/32/715_2.png) [@pajamian](https://forums.rockylinux.org/u/pajamian)\
**Post date:** [December 27, 2021, 1:31pm UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/6 "2021-12-27T13:31:21Z")

</div>

As already pointed out, but bears repeating, I recommend that you do not use the -y switch. When you use -y you are removing your only chance to bail out of the dnf command if it looks like it will do something you weren’t expecting. without -y you will get a summary of what the dnf command will do and a chance to proceed or bail.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:58am UTC](https://forums.rockylinux.org/t/solved-error-while-update-upgrade/4835/7 "2023-08-25T03:58:46Z")

</div>

Closed on August 25, 2023, 3:58am UTC


