升级 Debian

由 5.0 (lenny) 升级至测试版本 (squeeze)

变身成系统使用者 (root) 的身份:

$ su
passwd:
#

将 /etc/apt/sources.list 中的 stable 或 lenny 转成 squeeze:

cd /etc/apt
cp sources.list sources.list.bak
sed -e 's/\<\(stable\|lenny\)\>/squeeze/g' sources.list.bak >sources.list

更新最新的套件资讯:

apt-get update

更新整个系统:

apt-get dist-upgrade

( ! ) 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.0009412312{main}( ).../index.php:0
20.11994262168Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.11994262168Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.451711453000Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.453011477264Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.454011532592Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.454411559992require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.462811959624K2ControllerItem->execute( ).../k2.php:64
90.462811959624K2ControllerItem->display( ).../BaseController.php:710
100.473712610328K2ControllerItem->display( ).../item.php:78
110.473712610328K2ControllerItem->display( ).../controller.php:19
120.479012981368Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.480913001736K2ViewItem->display( ).../ViewController.php:102
140.551515820976K2ViewItem->display( ).../view.html.php:742
150.551515820976K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.553515993912include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Debian
  • Read 1390 times

( ! ) 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.0009412312{main}( ).../index.php:0
20.11994262168Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.11994262168Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.451711453000Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.453011477264Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.454011532592Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.454411559992require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.462811959624K2ControllerItem->execute( ).../k2.php:64
90.462811959624K2ControllerItem->display( ).../BaseController.php:710
100.473712610328K2ControllerItem->display( ).../item.php:78
110.473712610328K2ControllerItem->display( ).../controller.php:19
120.479012981368Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.480913001736K2ViewItem->display( ).../ViewController.php:102
140.551515820976K2ViewItem->display( ).../view.html.php:742
150.551515820976K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.553515993912include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top