Someone tell me how to fix YUM
-
Did anyone suggest rebuilding the yum database yet? (On phone, it's hard to read everything)
https://www.centoshowtos.org/package-management/rebuild-corrupted-yum-database/
-
Alright, almost all cleaned up except for this.. Just WTF, it is CentOS 6... Something left over from my FreePBX 13 to 14 upgrade...
kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__class_create) = ('0', '0xa2654165', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__init_waitqueue_head) = ('0', '0xffc7c184', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__kmalloc) = ('0', '0x5a34a45c', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__mutex_init) = ('0', '0x4bf79039', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__per_cpu_offset) = ('0', '0x32047ad5', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__register_chrdev) = ('0', '0xfa0d49c7', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__request_module) = ('0', '0xe90dcae0', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__tracepoint_module_get) = ('0', '0xacdeb154', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(__wake_up) = ('0', '0x642e54ac', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(_ctype) = ('0', '0x8d3894f2', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(_dev_info) = ('0', '0x9b3277f3', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(_spin_lock) = ('0', '0x973873ab', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(_spin_lock_irqsave) = ('0', '0x712aa29b', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(_spin_unlock_irqrestore) = ('0', '0x4b07e779', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(add_timer) = ('0', '0x46085e4f', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(add_uevent_var) = ('0', '0xb9eb3aa9', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(bus_register) = ('0', '0x350759b7', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(bus_unregister) = ('0', '0xaa7569fd', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(cancel_work_sync) = ('0', '0x08d8708f', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(cdev_add) = ('0', '0xa6d1bdca', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(cdev_del) = ('0', '0x42e80c19', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(cdev_init) = ('0', '0xc45a9f63', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(class_destroy) = ('0', '0xe06bb002', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(copy_from_user) = ('0', '0x3302b500', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(copy_to_user) = ('0', '0x85f8a266', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(del_timer_sync) = ('0', '0x0e83fea1', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_err) = ('0', '0x8502d858', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_get_drvdata) = ('0', '0x0a92a43c', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_notice) = ('0', '0xb96418d4', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_printk) = ('0', '0xabd7b07b', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_set_drvdata) = ('0', '0xd2037915', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(dev_set_name) = ('0', '0x4524924f', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_add) = ('0', '0xc482542c', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_create) = ('0', '0x02d2cf7d', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_del) = ('0', '0x53a30e46', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_destroy) = ('0', '0x7edc1537', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_initialize) = ('0', '0x1a9f9010', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_register) = ('0', '0x4619cc01', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(device_unregister) = ('0', '0xef98c923', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(driver_register) = ('0', '0x025da4a8', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(driver_unregister) = ('0', '0x09dbe32b', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(finish_wait) = ('0', '0x9ccb2622', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(get_device) = ('0', '0x7babe986', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(init_timer_key) = ('0', '0x6a9f26c9', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kasprintf) = ('0', '0xda1a7335', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kmem_cache_alloc_trace) = ('0', '0x2044fa9e', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kobject_uevent) = ('0', '0x00b0ae17', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kref_get) = ('0', '0x8a1203a9', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kref_init) = ('0', '0x3ae831b6', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(kref_put) = ('0', '0xcff53400', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(ktime_get_ts) = ('0', '0xefdd5a63', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(malloc_sizes) = ('0', '0xd691cba2', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(mcount) = ('0', '0xb4390f9a', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(memcpy) = ('0', '0x236c8c64', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(memmove) = ('0', '0xa3a5be95', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(memset) = ('0', '0xde0bdcff', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(mod_timer) = ('0', '0x45450063', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(module_layout) = ('0', '0x14522340', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(module_put) = ('0', '0xcbd81171', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(mutex_lock) = ('0', '0xfee8a795', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(mutex_unlock) = ('0', '0x03758301', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(param_get_charp) = ('0', '0x41344088', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(param_get_int) = ('0', '0x6980fe91', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(param_set_charp) = ('0', '0x6ad065f4', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(param_set_int) = ('0', '0xff964b25', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(per_cpu__cpu_number) = ('0', '0x9629486a', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(per_cpu__current_task) = ('0', '0x4f1939c7', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(prepare_to_wait) = ('0', '0x33d92f9a', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(printk) = ('0', '0xea147363', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(printk_ratelimit) = ('0', '0xa13798f8', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(proc_create_data) = ('0', '0x52683e38', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(proc_mkdir) = ('0', '0xed113e22', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(put_device) = ('0', '0xe98af961', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(remove_proc_entry) = ('0', '0x1a6d6e4f', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(schedule_work) = ('0', '0xa28e76e6', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(seq_lseek) = ('0', '0x5ca8e4f6', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(seq_printf) = ('0', '0x77e93f6f', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(seq_read) = ('0', '0xb72ec8a3', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(single_open) = ('0', '0x7ca65271', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(single_release) = ('0', '0xc1d878fa', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(snprintf) = ('0', '0x9edbecae', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(sprintf) = ('0', '0x3c2c5af5', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(sscanf) = ('0', '0x42224298', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(strlcpy) = ('0', '0x672144bd', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(strlen) = ('0', '0x25ec1b28', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(strncat) = ('0', '0x234509f3', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(sysfs_create_link) = ('0', '0xac3d6dc8', None) kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 has missing requires of kernel(sysfs_remove_link) = ('0', '0x5c2a917b', None)
and this
php56w-common-5.6.33-1.sng7.x86_64 is a duplicate with php56w-common-5.6.32-1.sng7.x86_64
-
Trying to remove the newer version of php-common results in this.
[root@fpbx ~]# yum remove php56w-common-5.6.33-1.sng7.x86_64 Loaded plugins: fastestmirror, kmod, versionlock Resolving Dependencies --> Running transaction check ---> Package php56w-common.x86_64 0:5.6.33-1.sng7 will be erased --> Processing Dependency: php56w-common(x86-64) = 5.6.33-1.sng7 for package: php56w-soap-5.6.33-1.sng7.x86_64 --> Running transaction check ---> Package php56w-soap.x86_64 0:5.6.33-1.sng7 will be erased --> Processing Dependency: php56w-soap for package: sangoma-pbx-1712-2.sng7.noarch --> Processing Dependency: php56w-soap for package: freepbx-14.1-1.sng7.noarch --> Running transaction check ---> Package freepbx.noarch 0:14.1-1.sng7 will be erased ---> Package sangoma-pbx.noarch 0:1712-2.sng7 will be erased --> Finished Dependency Resolution Error: Trying to remove "sangoma-pbx", which is protected
-
Trying to use
rpm -e --justdb
results in this.[root@fpbx ~]# rpm -e --justdb php56w-common-5.6.33-1.sng7.x86_64 error: Failed dependencies: php56w-common(x86-64) = 5.6.33-1.sng7 is needed by (installed) php56w-soap-5.6.33-1.sng7.x86_64 [root@fpbx ~]# rpm -e --justdb php56w-soap-5.6.33-1.sng7.x86_64 error: Failed dependencies: php56w-soap is needed by (installed) freepbx-14.1-1.sng7.noarch php56w-soap is needed by (installed) sangoma-pbx-1712-2.sng7.noarch
-
Well progress, of sorts.. now possibly to manually remove the old version form the RPM DB.
[root@fpbx ~]# yum install kmod-dahdi-linux Loaded plugins: fastestmirror, kmod, versionlock Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package kmod-dahdi-linux.x86_64 0:2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64 will be updated ---> Package kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Installing: kmod-dahdi-linux x86_64 2.11.1-50.sng7 sng-pkgs 4.6 M Transaction Summary ================================================================================================================================== Install 1 Package Total download size: 4.6 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. kmod-dahdi-linux-2.11.1-50.sng7.x86_64.rpm | 4.6 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : kmod-dahdi-linux-2.11.1-50.sng7.x86_64 1/1 strip: error while loading shared libraries: libbfd-2.25.1-32.base.el7_4.2.so: cannot open shared object file: No such file or directory Verifying : kmod-dahdi-linux-2.11.1-50.sng7.x86_64 1/2 kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 was supposed to be removed but is not! Verifying : kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 2/2 Installed: kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 Failed: kmod-dahdi-linux.x86_64 0:2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64 Complete!
-
What I did to resolve everything was
yum remove
all the higher versions, and thenyum reinstall
all the lower versions.That left me with just the old centos6 piece and the php-common error.
-
I cleaned up the old dahdi from
yum shell
[root@fpbx ~]# yum shell Loaded plugins: fastestmirror, kmod, versionlock > erase kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 > ts solve Success resolving dependencies > ts run ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Removing: kmod-dahdi-linux x86_64 2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64 @pbx/6 27 M Transaction Summary ================================================================================================================================== Remove 1 Package Installed size: 27 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 1/1 Verifying : kmod-dahdi-linux-2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64.x86_64 1/1 Removed: kmod-dahdi-linux.x86_64 0:2.11.1-22_centos6.2.6.32_642.6.2.el6.x86_64 Finished Transaction > exit Leaving Shell
-
Then a
yum update
completed successfully.Then I reinstalled dahdi to be safe.
[root@fpbx ~]# yum reinstall kmod-dahdi-linux Loaded plugins: fastestmirror, kmod, versionlock Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 will be reinstalled --> Finished Dependency Resolution Removing kernel module kmod-dahdi-linux-2.11.1-50.sng7.x86_64 upgraded to kmod-dahdi-linux-2.11.1-50.sng7.x86_64 --> Running transaction check ---> Package kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Removing: kmod-dahdi-linux x86_64 2.11.1-50.sng7 @sng-pkgs 29 M Reinstalling: kmod-dahdi-linux x86_64 2.11.1-50.sng7 sng-pkgs 4.6 M Transaction Summary ================================================================================================================================== Remove 1 Package Reinstall 1 Package Total size: 4.6 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : kmod-dahdi-linux-2.11.1-50.sng7.x86_64 1/2 Verifying : kmod-dahdi-linux-2.11.1-50.sng7.x86_64 1/1 Verifying : kmod-dahdi-linux-2.11.1-50.sng7.x86_64 2/1 Removed: kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 Installed: kmod-dahdi-linux.x86_64 0:2.11.1-50.sng7 Complete!
-
now to reboot....
-
And, success.
/whew