关于”running yum-complete-transaction first” 的提示信息

今天在用yum升级一台新机器时,顾客用ssh远程把server重新启动了。之后,在使用yum 时总是有提示信息:

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.

意思是,有未完成的yum事务,建议先运行yum-complete-transaction命令清除。

处理步骤:

# 安装 yum-complete-transaction

yum install yum-utils

# 运行 yum-complete-transaction

yum-complete-transaction –cleanup-only

# 清除可能存在的重复包

package-cleanup –dupes

# 清除可能存在的损坏包

package-cleanup –problems


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0009412664{main}( ).../index.php:0
20.11054262936Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.11054262936Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.354611453968Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.355311478568Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.356011533896Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.356311561296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.364011960928K2ControllerItem->execute( ).../k2.php:64
90.364011960928K2ControllerItem->display( ).../BaseController.php:710
100.373712611632K2ControllerItem->display( ).../item.php:78
110.373712611632K2ControllerItem->display( ).../controller.php:19
120.378112982672Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.380313003040K2ViewItem->display( ).../ViewController.php:102
140.463315817328K2ViewItem->display( ).../view.html.php:742
150.463315817328K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.465415990264include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0009412664{main}( ).../index.php:0
20.11054262936Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.11054262936Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.354611453968Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.355311478568Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.356011533896Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.356311561296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.364011960928K2ControllerItem->execute( ).../k2.php:64
90.364011960928K2ControllerItem->display( ).../BaseController.php:710
100.373712611632K2ControllerItem->display( ).../item.php:78
110.373712611632K2ControllerItem->display( ).../controller.php:19
120.378112982672Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.380313003040K2ViewItem->display( ).../ViewController.php:102
140.463315817328K2ViewItem->display( ).../view.html.php:742
150.463315817328K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.465415990264include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top