[solved] dnf update - two errors (kernel and python)

Issues related to applications and software problems and general support
Post Reply
logg sar
Posts: 15
Joined: 2016/05/04 14:26:41

[solved] dnf update - two errors (kernel and python)

Post by logg sar » 2019/10/20 15:43:19

Hi there

I've installed Centos 8 and didnt use the machine for two weeks. After booting again I executed a dnf update and ran in some errors:

Code: Select all

Total                                                                                                                                          2.8 MB/s | 118 MB     00:42     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  installing package kernel-core-4.18.0-80.11.2.el8_0.x86_64 needs 840KB on the /boot filesystem
  installing package grub2-efi-x64-1:2.02-66.el8_0.1.x86_64 needs 842KB on the /boot filesystem
In /boot I have 33 MB free, which is obviously more then 800KB

Code: Select all

cd /boot/
df -Ph . | awk 'NR==2 {print $4}'
33M
Second error:

Code: Select all

file /usr/lib/python3.6/site-packages/__pycache__/easy_install.cpython-36.opt-1.pyc from install of python3-setuptools-39.2.0-10.el7.noarch conflicts with file from package platform-python-setuptools-39.2.0-4.el8.noarch
  file /usr/lib/python3.6/site-packages/__pycache__/easy_install.cpython-36.pyc from install of python3-setuptools-39.2.0-10.el7.noarch conflicts with file from package platform-python-setuptools-39.2.0-4.el8.noarch
This repeats about 50 times.

Does anyone know this?
What should I do now?
Last edited by logg sar on 2019/10/20 20:07:44, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dnf update - two errors (kernel and python)

Post by TrevorH » 2019/10/20 16:01:28

In /boot I have 33 MB free, which is obviously more then 800KB
It wants 840KB more than you have in /boot now. Look at the other kernel files in /boot now - vmlinuz-$(uname -r) and initramfs-$(uname -r) plus the other assorted files there containing the same version number. Either make your /boot bigger, remove some kernels (or adjust installonly_limit= to do so automatically).

Code: Select all

[root@centos8 ~]# ls -la /boot/*4.18.0-80.11.2* | awk '{ n=n+$5 } END {print n/(1024*1024)}'
33.7077
file /usr/lib/python3.6/site-packages/__pycache__/easy_install.cpython-36.opt-1.pyc from install of python3-setuptools-39.2.0-10.el7.noarch conflicts with file from package platform-python-setuptools-39.2.0-4.el8.noarch
You've got some CentOS 7 repository configured and available and that's not correct. It's trying to install a CentOS 7 version of python3-setuptools. Don't. CentOS 7 repos should never be added to CentOS 8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Re: dnf update - two errors (kernel and python)

Post by javajox » 2019/10/20 16:02:55

Post your "df -h" here

logg sar
Posts: 15
Joined: 2016/05/04 14:26:41

Re: dnf update - two errors (kernel and python)

Post by logg sar » 2019/10/20 19:35:16

TrevorH wrote:
2019/10/20 16:01:28
It wants 840KB more than you have in /boot now. Look at the other kernel files in /boot now - vmlinuz-$(uname -r) and initramfs-$(uname -r) plus the other assorted files there containing the same version number. Either make your /boot bigger, remove some kernels (or adjust installonly_limit= to do so automatically).
I resized boot and its working.
Thanks for this.
TrevorH wrote:
2019/10/20 16:01:28
You've got some CentOS 7 repository configured and available and that's not correct. It's trying to install a CentOS 7 version of python3-setuptools. Don't. CentOS 7 repos should never be added to CentOS 8.
These are my repos:

Code: Select all

sudo dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:02:36 ago on So 20 Okt 2019 21:29:15 CEST.
repo id                                             repo name                                                                                     status
AppStream                                           CentOS-8 - AppStream                                                                          5.069
BaseOS                                              CentOS-8 - Base                                                                               2.835
PowerTools                                          CentOS-8 - PowerTools                                                                         1.506
*epel                                               Extra Packages for Enterprise Linux 8 - x86_64                                                2.145
extras                                              CentOS-8 - Extras                                                                                 3
opera                                               Opera packages                                                                                    6
virtualbox                                          Oracle Linux / RHEL / CentOS-8 / x86_64 - VirtualBox                                              3
wine32                                              Wine 32 bit packages for Enterprise Linux                                                       118
I've seen now that this package comes from the win32-repo (which isnt working right now)

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dnf update - two errors (kernel and python)

Post by TrevorH » 2019/10/20 20:06:29

I've seen now that this package comes from the win32-repo (which isnt working right now)#
Disable it, it contains packages for el7 which may break your system.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply