教学中碰到的系统和程序问题汇总

新手涉及到的教学或入门贴,推荐新手必看,版主维护
回复
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#31

帖子 TeliuTe » 2015-03-09 13:44

升级了内核,虚拟机忘记更新,结果所有机子都进不了livecd,提示/etc/init.d/vboxdrv setup
如果能自动探测并升级虚拟机就好了
dkms不知道是什么,运行命令是首先探测dkms,提示找不到,然后使用另外一个without来执行命令

代码: 全选

b2@1-B6:~$ sudo /etc/init.d/vboxdrv setup
[sudo] password for b2:
 * Stopping VirtualBox kernel modules                                    [ OK ]
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS                  
 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                 [ OK ]
 * Starting VirtualBox kernel modules                                    [ OK ]
b2@1-B6:~$
头像
oneleaf
论坛管理员
帖子: 10448
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: 教学中碰到的系统和程序问题汇总

#32

帖子 oneleaf » 2015-03-09 15:24

这个是vbox的问题,更新内核后需要重新编译和安装内核模块。

代码: 全选

sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox-dkms
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#33

帖子 TeliuTe » 2015-03-09 16:06

安装的是下载的版本,当时没有安装ose,似乎不需要dkms也行

中午过来登录每台机子的管理员用户,把vbox内核编译命令运行一遍,
上次在主文件夹里放了一个aa的脚本,里面的命令下载服务器上另一个a脚本并执行

代码: 全选

#!/bin/bash
wget 192.168.12.250/a
chmod +x a
./a
a脚本里是升级命令,然后自我删除

代码: 全选

#!/bin/bash
echo "psw"|sudo -S /etc/init.d/vboxdrv setup
rm ./a
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 教学中碰到的系统和程序问题汇总

#34

帖子 poloshiao » 2015-03-09 16:28

sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules [ OK ]
1. /etc/init.d/vboxdrv setup 參閱
https://forums.virtualbox.org/viewtopic.php?f=7&t=49580

補充

1-1. Host 是 Debian / Ubuntu 時
VirtualBox 最好依照這個方法安裝 比較不會有問題
https://help.ubuntu.com/community/Virtu ... stallation
https://www.virtualbox.org/wiki/Linux_Downloads

1-2. Guest 是 Debian / Ubuntu 時
安裝好 guest 後 參考這一篇 安裝 guest addition 比較不會有問題
http://www.binarytides.com/vbox-guest-a ... ntu-14-04/
How to install Virtualbox guest additions on Ubuntu 14.04
dkms不知道是什么
2. https://help.ubuntu.com/community/DKMS
安裝了 dkms
當你升級 Linux-Kernel
自動更新所有已安裝模組 例如 驅動模組
不必一個一個模組重新編譯
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#35

帖子 TeliuTe » 2015-03-19 11:05

下次更新系统的时候,把dkms也装上,免得老是忘记更新vbox
--
搜狗拼音的全半角会干扰中英文标点,学生老出错往往把全半角当做中英文,
全半角很少用的占前排大面积,中英文标点经常用反而小小的不明显。工具条在右下角时,提示会挡住点不上这两个按钮。
附件
sg.png
sg.png (839 Bytes) 查看 6828 次
头像
xw712
帖子: 516
注册时间: 2009-04-25 9:26

Re: 教学中碰到的系统和程序问题汇总

#36

帖子 xw712 » 2015-03-28 17:48

rosynirvana 写了:个人感觉搜狗还是不够可靠,去年8月那个版本强x fcitx的面板搞出一堆问题(换皮肤会crash,中英切换的快捷键没用,不定时的busy polling),今年2月这个版本装了但是只看到它改动的面板和皮肤,还没能把输入法本身搞出来……

倒是那个老古董安卓上移植过来的版本一直工作的很好
fcitx上的搜狗确实不太好用(mint 17.1),面板和状态栏都无法提示现在是英语还是中文,自定义切换也搞不定。我是ibus+安卓移植,下个dconf editor 调整下,很好用。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 教学中碰到的系统和程序问题汇总

#37

帖子 poloshiao » 2015-03-28 19:19

下次更新系统的时候,把dkms也装上,免得老是忘记更新vbox
但是 最近幾個版本的 Host Ubuntu 中安裝 dkms 好像不靈
viewtopic.php?f=65&t=469080&p=3129053&h ... v#p3129053
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#38

帖子 TeliuTe » 2015-03-30 19:10

关机是个麻烦事,学生下课慌慌张张的,机子不关过一会锁定然后就关不了了
虽然说习惯培养是一方面,但另一方面也应该有个技术上的强制关机解决办法
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#39

帖子 TeliuTe » 2015-06-10 22:23

今天讲排序,第一个班正常,第二个班排序的时候,忽然不是按照标题行排序,而是按照第一列的数据排序
试了两回都不显示行标题,关掉对话框,胡乱点了几下,再点出排序框,里面的“按照”恢复正常行标题里的各个选项,不知何故
12.04里的calc3.5
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#40

帖子 TeliuTe » 2015-08-24 16:24

正在更新机房12.04系统,用本地源不能升级内核和搜狗拼音,用新立得刷新后可以升级,但是从网上下载安装包而不是从本地源里
dkms也不能在脚本里安装,需要手动安装

脚本中的主要命令

代码: 全选

apt-get update
apt-get install dkms -y

apt-get -y upgrade --force-yes

代码: 全选

下列软件包的版本将保持不变:
  linux-generic linux-generic-pae linux-headers-generic
  linux-headers-generic-pae linux-image-generic linux-image-generic-pae
  sogoupinyin
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 教学中碰到的系统和程序问题汇总

#41

帖子 poloshiao » 2015-08-24 20:23

apt-get -y upgrade --force-yes
下列软件包的版本将保持不变:
linux-generic linux-generic-pae linux-headers-generic
linux-headers-generic-pae linux-image-generic linux-image-generic-pae
sogoupinyin
如果你也希望這些套件一起升級 (如果有新的套件可以升級的話)
試試
apt-get -y dist-upgrade --force-yes
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#42

帖子 TeliuTe » 2015-08-24 21:59

dist-upgrade 不是升级发行版吗,上次是用更新管理器升级的发行版,命令行升级版本还没试过,印象里这个命令是升级发行版的,难道我记错了?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 教学中碰到的系统和程序问题汇总

#43

帖子 poloshiao » 2015-08-25 4:47

dist-upgrade 不是升级发行版吗
1. 升级发行版 需要升級 /etc/apt/sources.list
1-1. desktop : tty7 ~ tty12
http://manpages.ubuntu.com/manpages/viv ... ger.8.html
update-manager - graphical management of software packages updates
1-2. console : tty1 ~ tty6
http://manpages.ubuntu.com/manpages/viv ... ade.8.html
do-release-upgrade - upgrade operating system to latest release
1-3. 上面兩個指令 都包含升級 /etc/apt/sources.list的程序

2. upgrade, dist-upgrade 沒有包含升級 /etc/apt/sources.list 的程序
http://manpages.ubuntu.com/manpages/viv ... get.8.html
apt-get - APT package handling utility -- command-line interface
2-1. upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
2-2. dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages
; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. The dist-upgrade
command may therefore remove some packages. The
/etc/apt/sources.list file contains a list of locations from which
to retrieve desired package files. See also apt_preferences(5) for
a mechanism for overriding the general settings for individual
packages.

3. 2-3. 簡單的說
http://manpages.ubuntu.com/manpages/pre ... ude.8.html
aptitude - high-level interface to the package manager
2-3-1. apt-get upgrade 類似 aptitude safe-upgrade
碰到相依套件版本未滿足時 放棄升級 維持原版本
所以有 下列软件包的版本将保持不变 的訊息
2-3-2. apt-get dist-upgrade 類似 aptitude full-upgrade
碰到相依套件版本未滿足時 企圖解決該問題
如果有必要 強制下載/更替相依套件版本未滿足的套件
儘量達成升級該套件到新版本
2-3-2-1. 這個指令 有時會造成不穩定狀態 所以使用要小心
事先備存整個系統 有備無患
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#44

帖子 TeliuTe » 2015-08-25 9:30

明白了,谢谢。

代码: 全选

teliute@TeliuTe:~$ sudo apt-get -y dist-upgrade --force-yes
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在对升级进行计算... 完成
下列软件包是自动安装的并且现在不需要了:
  gambas3-gb-qt4-ext libqt4-qt3support
Use 'apt-get autoremove' to remove them.
下列【新】软件包将被安装:
  gambas3-gb-dbus-trayicon gambas3-gb-form-editor gambas3-gb-media-form
  linux-headers-3.13.0-62 linux-headers-3.13.0-62-generic
  linux-image-3.13.0-62-generic linux-image-extra-3.13.0-62-generic
下列软件包将被升级:
  accountsservice apparmor apport apt apt-transport-https apt-utils aptdaemon
  aptdaemon-data base-files bind9-host binutils bsdutils compiz compiz-core
  compiz-gnome compiz-plugins-default cpp-4.8 dh-apparmor dh-python dkms
  dnsmasq-base dnsutils dpkg dpkg-dev firefox firefox-locale-zh-hans
  flashplugin-installer fonts-droid fonts-lyx fonts-opensymbol fuse g++-4.8
  gambas3 gambas3-dev gambas3-gb-args gambas3-gb-cairo gambas3-gb-chart
  gambas3-gb-clipper gambas3-gb-complex gambas3-gb-compress
  gambas3-gb-compress-bzlib2 gambas3-gb-compress-zlib gambas3-gb-crypt
  gambas3-gb-data gambas3-gb-db gambas3-gb-db-form gambas3-gb-db-mysql
  gambas3-gb-db-odbc gambas3-gb-db-postgresql gambas3-gb-db-sqlite3
  gambas3-gb-dbus gambas3-gb-desktop gambas3-gb-desktop-gnome-keyring
  gambas3-gb-desktop-x11 gambas3-gb-eval-highlight gambas3-gb-form
  gambas3-gb-form-dialog gambas3-gb-form-mdi gambas3-gb-form-stock
  gambas3-gb-gmp gambas3-gb-gsl gambas3-gb-gtk gambas3-gb-gtk-opengl
  gambas3-gb-gtk3 gambas3-gb-httpd gambas3-gb-image gambas3-gb-image-effect
  gambas3-gb-image-imlib gambas3-gb-image-io gambas3-gb-inotify gambas3-gb-jit
  gambas3-gb-libxml gambas3-gb-logging gambas3-gb-map gambas3-gb-markdown
  gambas3-gb-media gambas3-gb-memcached gambas3-gb-mime gambas3-gb-mysql
  gambas3-gb-ncurses gambas3-gb-net gambas3-gb-net-curl gambas3-gb-net-pop3
  gambas3-gb-net-smtp gambas3-gb-openal gambas3-gb-opengl
  gambas3-gb-opengl-glsl gambas3-gb-opengl-glu gambas3-gb-opengl-sge
  gambas3-gb-openssl gambas3-gb-option gambas3-gb-pcre gambas3-gb-pdf
  gambas3-gb-qt4 gambas3-gb-qt4-ext gambas3-gb-qt4-opengl
  gambas3-gb-qt4-webkit gambas3-gb-report gambas3-gb-report2
  gambas3-gb-scanner gambas3-gb-sdl gambas3-gb-sdl-sound gambas3-gb-sdl2
  gambas3-gb-sdl2-audio gambas3-gb-settings gambas3-gb-signal gambas3-gb-util
  gambas3-gb-util-web gambas3-gb-v4l gambas3-gb-vb gambas3-gb-web
  gambas3-gb-xml gambas3-gb-xml-html gambas3-gb-xml-rpc gambas3-gb-xml-xslt
  gambas3-ide gambas3-runtime gcc-4.8 gcc-4.8-base gdisk ghostscript
  ghostscript-x gir1.2-gtk-3.0 gir1.2-gudev-1.0 gir1.2-networkmanager-1.0
  gir1.2-udisks-2.0 gir1.2-wnck-3.0 gnome-desktop3-data gnome-session-bin
  gnome-session-common gnupg gpgv grub-common grub-pc grub-pc-bin grub2-common
  gvfs gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs
  hplip-data indicator-session initscripts iproute iproute2 irqbalance
  isc-dhcp-client isc-dhcp-common libaccount-plugin-generic-oauth
  libaccount-plugin-google libaccountsservice0 libapparmor-perl libapparmor1
  libapt-inst1.5 libapt-pkg4.12 libasan0 libatomic1 libbind9-90 libblkid1
  libcompizconfig0 libcrypto++9 libcups2 libcupscgi1 libcupsfilters1
  libcupsimage2 libcupsmime1 libcupsppdc1 libcurl3 libcurl3-gnutls
  libdebian-installer4 libdecoration0 libdns100 libdpkg-perl libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libdrm2 libflite1 libfontembed1 libfuse2
  libgail-3-0 libgail-common libgail18 libgcc-4.8-dev libgcrypt11 libgfortran3
  libgnome-desktop-3-7 libgomp1 libgs9 libgs9-common libgtk-3-0 libgtk-3-bin
  libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0
  libhpmud0 libicu52 libisc95 libisccc90 libisccfg90 libitm1 libldap-2.4-2
  liblightdm-gobject-1-0 liblwres90 libmetacity-private0a libmount1
  libmysqlclient18 libnautilus-extension1a libnm-glib-vpn1 libnm-glib4
  libnm-util2 libnss3 libnss3-1d libnss3-nssdb libnuma1 liboxideqt-qmlplugin
  liboxideqtcore0 liboxideqtquick0 libpam-systemd libparted0debian1 libpcre3
  libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpq5
  libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3.4
  libpython3.4-minimal libpython3.4-stdlib libqt4-dbus libqt4-declarative
  libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support
  libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-sqlite libqt4-svg
  libqt4-test libqt4-xml libqt4-xmlpatterns libqt5core5a libqt5dbus5
  libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5sql5
  libqt5sql5-sqlite libqt5test5 libqt5widgets5 libqt5xml5 libqtcore4
  libqtdbus4 libqtgui4 libquadmath0 libreoffice-avmedia-backend-gstreamer
  libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core
  libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-help-en-gb
  libreoffice-help-en-us libreoffice-help-zh-cn libreoffice-impress
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-zh-cn
  libreoffice-math libreoffice-ogltrans libreoffice-pdfimport
  libreoffice-presentation-minimizer libreoffice-style-human
  libreoffice-writer libsane-hpaio libsmbclient libsnmp-base libsnmp30
  libsqlite3-0 libssl1.0.0 libstdc++-4.8-dev libstdc++6 libsystemd-daemon0
  libsystemd-journal0 libsystemd-login0 libtasn1-6 libtiff-tools libtiff5
  libudev1 libudisks2-0 libunity-control-center1 libunity-core-6.0-9 libuuid1
  libwbclient0 libwmf0.2-7 libwmf0.2-7-gtk libwnck-3-0 libwnck-3-common
  libxext6 libxfixes3 libxi6 libxrender1 lightdm linux-firmware linux-generic
  linux-headers-generic linux-image-generic linux-libc-dev login
  metacity-common mount mysql-common nautilus nautilus-data network-manager
  ntpdate oneconf oneconf-common openjdk-7-jre openjdk-7-jre-headless
  openssh-client openssl oxideqt-codecs p7zip-full parted passwd patch
  policykit-1 power-commands ppp python-aptdaemon python-aptdaemon.gtk3widgets
  python-compizconfig python-oneconf python-pkg-resources python-requests
  python-samba python-six python-urllib3 python2.7 python2.7-minimal
  python3-apport python3-aptdaemon python3-aptdaemon.gtk3widgets
  python3-aptdaemon.pkcompat python3-chardet python3-oneconf
  python3-pkg-resources python3-problem-report python3-requests python3-six
  python3-uno python3-update-manager python3-urllib3 python3.4
  python3.4-minimal qdbus qtcore4-l10n rsyslog samba-libs sogoupinyin squid3
  squid3-common ssh-askpass-gnome systemd-services sysv-rc sysvinit-utils
  t1utils tcpdump tzdata tzdata-java ubuntu-drivers-common ubuntu-session udev
  udisks2 unattended-upgrades unity unity-control-center unity-services
  unity-settings-daemon uno-libs3 unrar update-manager update-manager-core ure
  usb-creator-common usb-creator-gtk util-linux uuid-runtime wpasupplicant
  xserver-xorg-video-intel xul-ext-ubufox
升级了 405 个软件包,新安装了 7 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 449 MB 的软件包。
解压缩后会消耗掉 270 MB 的额外空间。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教学中碰到的系统和程序问题汇总

#45

帖子 TeliuTe » 2015-08-25 17:59

有个机子flashplugin-installer没运行成功,但是原来的插件也给删除了,火狐提示需要插件才能显示
手动下载后手动安装成功,参考论坛里的flash安装的帖子
回复