请教关于apt和输入法的问题
Tofloor
poster avatar
187******09
deepin
2017-11-22 18:01
Author
1、用apt和aptitude进行包管理有什么不同么,我试了安装卸载没看出不一样的地方

2、安装了中州韵,看搜狗到了450m就禁止它开机启动,这样中州韵能正常输入,却不显示输入提示,托盘也没有图标

另 ,中州韵怎么换皮肤啊,自带的几个都有点丑

请指教,谢谢各位
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-11-22 19:10
#1
1、使用apt  你搜索的话 apt search    aptitude 可以运行后  点击搜索界面 (一个例子)

2、https://bbs.deepin.org/post/148723 问哈这个
Reply View the author
Comments
i1516
2017-11-22 19:48
吃你安利
avatar
134******40
deepin
2017-11-22 19:27
#2
新的apt命令就是统一所有apt命令的,以前的apt命令太乱,什么apt-cache、apt-get、aptitude诸如此类的,记忆起来太麻烦,后续debian统一了这些常见命令,统一使用apt了。
Reply View the author
Comments
jingle
2017-11-22 19:32
长姿势了,我以为有个界面
avatar
DebuggerX
deepin
2017-11-22 19:39
#3
https://bbs.deepin.org/post/148739
新的apt命令就是统一所有apt命令的,以前的apt命令太乱,什么apt-cache、apt-get、aptitude诸如此类的,记 ...

没有深入了解过,不过经验中aptitude比apt处理依赖问题更加智能,之前有过几次提示依赖出错,apt install -f修复不了,但是运行aptitude install -f后它会提供几种解决方案供选择,最后都成功修复了依赖……
总结:正常使用apt即可,出现apt解决不了的依赖问题可以试试aptitude修复;但是由于apt依赖出错后一般什么都不能装,所以先用apt把aptitude装上比较保险~~
Reply View the author
avatar
134******40
deepin
2017-11-22 19:44
#4
https://bbs.deepin.org/post/148739
没有深入了解过,不过经验中aptitude比apt处理依赖问题更加智能,之前有过几次提示依赖出错,apt install ...

因为需要统一所有常见命令,有时候要兼容apt-get和aptitude,有些差异是很正常的。不可能完全取代过去的命令,不过统一的思想是对的,以前的命令确实太杂乱了,除了apt-file和apt-mark之类有特殊用途的命令,其他命令基本上都统一到apt命令下了。
Reply View the author
avatar
134******40
deepin
2017-11-22 19:50
#5
https://bbs.deepin.org/post/148739
没有深入了解过,不过经验中aptitude比apt处理依赖问题更加智能,之前有过几次提示依赖出错,apt install ...

aptitude默认应该是安装的吧,apt命令中,好像默认没有安装的只有apt-file这种管理软件包安装关系和安装细节的东西没有集成。
Reply View the author
avatar
187******09
deepin
2017-11-22 19:50
#6
https://bbs.deepin.org/post/148739
没有深入了解过,不过经验中aptitude比apt处理依赖问题更加智能,之前有过几次提示依赖出错,apt install ...

OK,以前依赖问题apt install -f修复不了的话我就蒙了的

Reply View the author
avatar
187******09
deepin
2017-11-22 19:53
#7
https://bbs.deepin.org/post/148739
因为需要统一所有常见命令,有时候要兼容apt-get和aptitude,有些差异是很正常的。不可能完全取代过去的 ...

大一统思想233,我觉得aptitude莫名好用一点,难道是因为他有一个界面??
Reply View the author
avatar
woodelf
deepin
2017-11-22 20:15
#8
apt并没有取代aptitude,因为aptitude本身就是一个基于ncurses的apt前端。
与apt相比,aptitude提供更智能的依赖解决方式。举个例子,如果遇到无法满足的依赖冲突,apt的做法是直接拒绝执行安装/删除/升级步骤,而aptitude会尽量尝试解决依赖冲突,给用户几套参考方案来选择。
另外,由于基于ncurses,因此aptitude可以实现tui形式的交互界面。
Reply View the author
avatar
woodelf
deepin
2017-11-22 20:21
#9
至于中州韵的问题,由于搜狗没有采用fcitx的原生界面和设置,而是自己实现了一套qimpanel,因此需要禁用掉搜狗的自启动,并且启用原生fcitx的自启动,这样应该就没什么问题了。
PS:中州韵已经很久没维护了,我已经转用fcitx的内置拼音输入引擎。
Reply View the author
avatar
DebuggerX
deepin
2017-11-22 20:46
#10
https://bbs.deepin.org/post/148739
因为需要统一所有常见命令,有时候要兼容apt-get和aptitude,有些差异是很正常的。不可能完全取代过去的 ...

这个我知道,以前很多人吐槽说apt命令不统一,后来改成统一的又有很多人不习惯,各种搞各种扯皮……
不过对我来说都一样,因为我觉得即使统一成apt xxx还是很麻烦,所以我在.bash_aliases里配置了一堆别名,比如用ainstall 代替apt install , 用arm代替apt remove,还把他们相应的补全也对应上了:
  1. alias aarm='sudo apt-get autoremove --purge'

  2. _apt_get_install()
  3. {
  4.     local cur prev words cword
  5.     _init_completion || return

  6.     special="install"
  7.     COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
  8.                 2> /dev/null ) )
  9.     return 0
  10. } &&

  11. _apt_get_remove()
  12. {
  13.     local cur prev words cword
  14.     _init_completion || return

  15.     special="remove"
  16.     if [[ -f /etc/debian_version ]]; then
  17.     # Debian system
  18.     COMPREPLY=( $( \
  19.             _xfunc dpkg _comp_dpkg_installed_packages $cur ) )
  20.     else
  21.         # assume RPM based
  22.         _xfunc rpm _rpm_installed_packages
  23.     fi
  24.     return 0
  25. } &&

  26. complete -F _apt_get_install ainstall
  27. complete -F _apt_get_install ashow
  28. complete -F _apt_get_remove arm

  29. alias ainstall='sudo apt-get install'
  30. alias arm='sudo apt-get --purge remove'
  31. alias ashow='apt show'
  32. alias asearch='apt search'
Copy the Code


使用效果:



Reply View the author
avatar
187******09
deepin
2017-11-22 20:56
#11
https://bbs.deepin.org/post/148739
至于中州韵的问题,由于搜狗没有采用fcitx的原生界面和设置,而是自己实现了一套qimpanel,因此需要禁用掉 ...

原来如此,linux的输入法问题好O疼啊,win咔咔装两个输入法就可以快捷键随便切换了,什么时候linux也能这样啊
Reply View the author
avatar
187******09
deepin
2017-11-22 20:59
#12
https://bbs.deepin.org/post/148739
这个我知道,以前很多人吐槽说apt命令不统一,后来改成统一的又有很多人不习惯,各种搞各种扯皮……
不过 ...

alias太多我就蒙了,还有你的那个拐角指示是怎么实现的啊,不是bash么?
Reply View the author
avatar
DebuggerX
deepin
2017-11-22 21:33
#13
本帖最后由 debuggerx 于 2017-11-22 15:07 编辑
https://bbs.deepin.org/post/148739
alias太多我就蒙了,还有你的那个拐角指示是怎么实现的啊,不是bash么?

从parrot linux这个发行版的配置文件里抠出来的配置:


修改~/.bashrc这个文件,把默认的配置注释掉替换成parrot的配置即可:
代码显示有问题,直接参考附件


  1. # deepin default start
  2. # if [ "$color_prompt" = yes ]; then
  3. #     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  4. # else
  5. #     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  6. # fi
  7. # unset color_prompt force_color_prompt
  8. # deepin default end


  9. # parrot default start
  10. if [ "$color_prompt" = yes ]; then
  11.     PS1="\[\033[0;31m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h'; fi)\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$\[\e[0m\]"
  12. else
  13.     PS1='┌──[\u@\h]─[\w]\n└──╼ \$ '
  14. fi

  15. # Set 'man' colors
  16. if [ "$color_prompt" = yes ]; then
  17.     man() {
  18.     env \
  19.     LESS_TERMCAP_mb=\e[01;31m' \
  20.     LESS_TERMCAP_md=\e[01;31m' \
  21.     LESS_TERMCAP_me=\e[0m' \
  22.     LESS_TERMCAP_se=\e[0m' \
  23.     LESS_TERMCAP_so=\e[01;44;33m' \
  24.     LESS_TERMCAP_ue=\e[0m' \
  25.     LESS_TERMCAP_us=\e[01;32m' \
  26.     man "$@"
  27.     }
  28. fi

  29. unset color_prompt force_color_prompt
  30. # parrot default end

Copy the Code

Reply View the author
avatar
187******09
deepin
2017-11-22 21:49
#14
https://bbs.deepin.org/post/148739
从parrot linux这个发行版的配置文件里抠出来的配置:

谢啦         
Reply View the author
avatar
187******09
deepin
2017-11-22 22:35
#15
https://bbs.deepin.org/post/148739
从parrot linux这个发行版的配置文件里抠出来的配置:

20-29行应该是这样吧:
  1.     LESS_TERMCAP_mb=\e[01;31m\]
Copy the Code
否则报错
Reply View the author
avatar
DebuggerX
deepin
2017-11-22 23:08
#16
https://bbs.deepin.org/post/148739
20-29行应该是这样吧:否则报错

用了代码框还是有一部分字符会被吞掉。。html真是烦……
Reply View the author
avatar
187******09
deepin
2017-11-22 23:12
#17
https://bbs.deepin.org/post/148739
用了代码框还是有一部分字符会被吞掉。。html真是烦……

我的直接吞的剩一行.....
Reply View the author
avatar
emofode
deepin
2017-11-22 23:21
#18
apt 具有超级牛力,aptitude 没有。
Reply View the author
avatar
187******09
deepin
2017-11-23 00:43
#19
https://bbs.deepin.org/post/148739
apt 具有超级牛力,aptitude 没有。

没试出有什么差别现在
Reply View the author