Can not update!

Hi all…

I have a few PCs running fedora 30 x86_64, and on one of the PCs I can not update (even check-update) packages; when I try to do, I get the following error…
How can I fix this?
Thanks in advance.
Kazuyoshi

[furutaka@Furutaka-3 ~]$ sudo dnf -v update
[sudo] password for furutaka: 
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.2.5
cachedir: /var/cache/dnf
Unknown configuration option: protect = 1 in /etc/yum.repos.d/cernvm.repo
Unknown configuration option: protect = 1 in /etc/yum.repos.d/cernvm.repo
Unknown configuration option: protect = 1 in /etc/yum.repos.d/cernvm.repo
Unknown configuration option: protect = 1 in /etc/yum.repos.d/cernvm.repo
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
repo: downloading from remote: centos-sclo-rh
CentOS-7 - SCLo rh                                                                           554 kB/s | 3.9 kB     00:00    
Cannot download 'http://mirror.centos.org/centos/7/sclo/x86_64/rh/': repomd.xml parser error: Parse error at line: 4 (Entity 'copy' not defined
).
Failed to synchronize cache for repo 'centos-sclo-rh'
repo: downloading from remote: centos-sclo-sclo
CentOS-7 - SCLo sclo                                                                         585 kB/s | 3.9 kB     00:00    
Cannot download 'http://mirror.centos.org/centos/7/sclo/x86_64/sclo/': repomd.xml parser error: Parse error at line: 4 (Entity 'copy' not defined
).
Failed to synchronize cache for repo 'centos-sclo-sclo'
repo: downloading from remote: cernvm
CernVM packages                                                                              559 kB/s | 3.9 kB     00:00    
Cannot download 'http://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/30/x86_64/': repomd.xml parser error: Parse error at line: 4 (Entity 'copy' not defined
).
Failed to synchronize cache for repo 'cernvm'
repo: downloading from remote: fedora-modular
Fedora Modular 30 - x86_64                                                                   164 kB/s | 3.9 kB     00:00    
Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-30&arch=x86_64': Cannot prepare internal mirrorlist: Parse error at line: 4 (Entity 'copy' not defined
).
Failed to synchronize cache for repo 'fedora-modular'
Error: Failed to synchronize cache for repo 'fedora-modular'

Why do you have CentOS 7 repositories on Fedora 30?

1 Like

Did you try to run

sudo dnf clean all

before sudo dnf update?

To use older versions of gcc/gfortran.

Kazuyoshi

Yes, I did, w/ no luck…

Kazuyoshi

Try Enable fastestmirror but first check the speed and quality of your connection.

sudo dnf config-manager --setopt=fastestmirror=True --save

1 Like

Hi,

I finally managed to fix the issue; it was caused by the new proxy server of our institute. When getting the repomd.xml file, HTML data were fed to dnf instead! By changing the proxy setting, I can get a correct repomd.xml data and update packages using dnf!!!

Thanks to those who kindly take a time to respond my issue.
Kazuyoshi

2 Likes