Problem:
Try to re-install phpmyadmin on ubuntu 14.04, got error:
dpkg: error processing package phpmyadmin (--configure):
子进程 已安装 post-installation 脚本 返回了错误号 1
在处理时有错误发生:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Root cause:
"该错误通常发生在以下情况,使用 dpkg -i安装deb包后,直接删除了程 序所有相关的目录和文件,但是 dpkg库中仍然保留了该程序的相关 信息。 因此,当执行apt命令时,dpkg自检 时便会发现相关文件丢失,于是报 出标题中的错误。"
Solution:
解决方法如下:
#检查当前 dpkg库中残留的文件安装信息
dpkg -l | grep phpmyadmin
#手 动删除所有包,这一步可能仍然会 有相关错误信息报出
sudo dpkg -r phpmyadmin
#这一 步很重要,彻底清除任何****包相 关的信息
sudo dpkg -P phpmyadmin
dpkg -l | grep phpmyadmin
应该就没 有任何错误信息了,再执行其它安 装程序,也不会报错了。
now run:
sudo apt-get install phpmyadmin
success!
参考链接:
http://tiankonguse.com/record/record.php?id=272
Tech issues about computer, networks and programming and answers during or after my work. 工作及业余时间遇到的各种电脑,网络以及编程等相关的技术问题及解答
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Sep 28, 2014
解决ubuntu 14.04下安装phpmyadmin失败
May 22, 2014
Ubuntu下解决Chrome升级后界面中文乱码问题
Ubuntu版本:12.04 LTS
昨天Chrome升级到35后,包括书签,Tab,地址框,以及右键菜单中的中文都变成乱码。
尝试用用以下方法解决:
不起作用,查看了该文件的内容,与参考链接给的模板文件不太一样。
删除链接文件,下载编辑模板文件,重命名为69-language-selector-zh-cn.conf,拷贝覆盖原文件。
重启Chrome,依然不起作用。
注销重新登录,无变化,晕啊。
今天早上又股沟了一下,原来需要把系统的字体改一下:
Settings Manager > Appearance > Fonts > Default Font
改成 WenQuanYi Micro Hei
重启Chrome,问题解决, 耶!哈哈哈。
其实把系统的语言支持设置为中文(排到第一位),也能解决此问题,但系统整个变成中文化环境,不适合工作需要。
参考链接:
https://code.google.com/p/chromium/issues/detail?id=335651
昨天Chrome升级到35后,包括书签,Tab,地址框,以及右键菜单中的中文都变成乱码。
尝试用用以下方法解决:
sudo ln -s ../conf.avail/69-language-selector-zh-cn.conf /etc/fonts/conf.d/69-language-selector-zh-cn.conf
不起作用,查看了该文件的内容,与参考链接给的模板文件不太一样。
删除链接文件,下载编辑模板文件,重命名为69-language-selector-zh-cn.conf,拷贝覆盖原文件。
重启Chrome,依然不起作用。
注销重新登录,无变化,晕啊。
今天早上又股沟了一下,原来需要把系统的字体改一下:
Settings Manager > Appearance > Fonts > Default Font
改成 WenQuanYi Micro Hei
重启Chrome,问题解决, 耶!哈哈哈。
其实把系统的语言支持设置为中文(排到第一位),也能解决此问题,但系统整个变成中文化环境,不适合工作需要。
参考链接:
https://code.google.com/p/chromium/issues/detail?id=335651
May 19, 2014
Upgrade to Ubuntu 14.04 failed on my 2012 late iMac
I should not click 'Yes' while it prompted 'A new version found, do you want to upgrade.'
The whole upgrade process seemed ok, only except some compile errors about out of memory with fontconf....
But at the end of upgrade, it reported the upgrade failed, and it could not roll back to the old 13.04.
I reboot the machine into ubuntu anyway, it brought up everything, and seems a new version already installed, only that the desktop resolution abit low.
But i wouldn't bother myself to figure that out, since I don't know what other potential issues there. Don't want to take any risk and put myself into a even worse situation.
So, after googling a little, I decided to give it a fresh installation with 14.04, for sake of it's a LTS version.
And shame that couldn't find image for mac on ubuntu official download site, finally found it from a forum:
http://cdimage.ubuntu.com/releases/trusty/release/ubuntu-14.04-desktop-amd64+mac.iso
(MD5: 0bc7243aacd5f80f8110dcf3165dffd0)
Downloading now, and hope no other issues with the installation upcoming...
The whole upgrade process seemed ok, only except some compile errors about out of memory with fontconf....
But at the end of upgrade, it reported the upgrade failed, and it could not roll back to the old 13.04.
I reboot the machine into ubuntu anyway, it brought up everything, and seems a new version already installed, only that the desktop resolution abit low.
But i wouldn't bother myself to figure that out, since I don't know what other potential issues there. Don't want to take any risk and put myself into a even worse situation.
So, after googling a little, I decided to give it a fresh installation with 14.04, for sake of it's a LTS version.
And shame that couldn't find image for mac on ubuntu official download site, finally found it from a forum:
http://cdimage.ubuntu.com/releases/trusty/release/ubuntu-14.04-desktop-amd64+mac.iso
(MD5: 0bc7243aacd5f80f8110dcf3165dffd0)
Downloading now, and hope no other issues with the installation upcoming...
May 2, 2014
Screen brightness setting with Xfce on iMac, iMac Xfce 屏幕亮度调节
1. 键盘亮度调节支持
默认安装xfce后没有安装(xfce4-power-manager-plugins)的插件,在ububtu下面 apt-get install xfce4-power-manager-plugins,安装后启动一下power manager工具即可通过键盘调节亮度
2. 屏幕亮度记忆
默认安装xfce后没有安装(xfce4-power-manager-plugins)的插件,在ububtu下面 apt-get install xfce4-power-manager-plugins,安装后启动一下power manager工具即可通过键盘调节亮度
2. 屏幕亮度记忆
屏幕亮度不能保存,每次开机都回恢复到最亮的状态。
请教了Google后,在一个外文博客上发现了解决的方法。
首先要写一个调节屏幕亮度的脚本,只有一句:
echo 3 > /sys/class/backlight/acpi_video0/brightness
里面的“3”可以替换为1-10中任意数字,越大越亮。
把这个脚本保存起来,比如保存为~/brightness
把这个脚本移动到/usr/local/sbin/brightness,并增加运行的权限
chmod +x /usr/local/sbin/brightrness
接着,配置允许不输入密码就sudo运行这个脚本,运行visudo,增加下面这行:
# User privilege specification syndim ALL=NOPASSWD: /usr/local/sbin/brightness
将上面的syndim替换为用户名。
最后,打开Applications > Xfce Settings > Session and startup,将
sudo /usr/local/sbin/brightness
添加进去,重新启动,enjoy~
参考链接:
Mar 30, 2012
Ubuntu 11.10, remove annoying "restart to complete updates"
from http://ubuntuforums.org/showthread.php?t=1859432
sudo mv /var/run/* /run/ sudo mv /var/lock/* /run/lock/ sudo rm -r /var/run sudo rm -r /var/lock sudo ln -s /run /var/run sudo ln -s /run/lock /var/lock sudo rm /run/dbus/*
Mar 28, 2012
Ubuntu 11.10 desktop 3D Cube effects enable
http://www.noobslab.com/2011/10/enable-compiz-desktop-cube-in-ubuntu.html
按照这篇指南搞了之后,快捷工具栏不见了,幸好下面还有高人:
Heres How I got the cube to work in very few steps:
Get compiz app. run it.
UNCHECK UNITY plugin.
goto general options->desktop size, set horizontal to 4, vertical to 1, and # of desktops to 4.
check the cube, tell it to stop using wall or w/e.
check rotate cube.
recheck the unity plugin, and tell it to ignore the conflict.
Done.
Digest from http://www.noobslab.com/2011/10/enable-compiz-desktop-cube-in-ubuntu.html
按照这篇指南搞了之后,快捷工具栏不见了,幸好下面还有高人:
Heres How I got the cube to work in very few steps:
Get compiz app. run it.
UNCHECK UNITY plugin.
goto general options->desktop size, set horizontal to 4, vertical to 1, and # of desktops to 4.
check the cube, tell it to stop using wall or w/e.
check rotate cube.
recheck the unity plugin, and tell it to ignore the conflict.
Done.
Digest from http://www.noobslab.com/2011/10/enable-compiz-desktop-cube-in-ubuntu.html
Subscribe to:
Posts (Atom)