cht電腦資訊gcingcin分享
adm Find login register

Ubuntu 18.04/16.04/…/12.04 安裝最新的 gcin 中文輸入的完整步驟

guest
211subject: Promote 0 Bookmark 02018-11-25quote  

eliu

 

第一篇

 

謝謝您的回覆,已看到可執行檔的網址。請問目前最新的 2.8.6+eliu-4 版,它的原始碼在哪裡可以下載呢?

eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
212subject: Promote 0 Bookmark 02018-11-25quote  

guest
它的原始碼在哪裡可以下載呢?

過幾天會 release

yochenhsieh
joined: 2009-11-16
posted: 27
promoted:
bookmarked:
213subject: Promote 0 Bookmark 02018-12-11quote  

請問2.8.6之後的修正版本可否發布source code在 http://hyperrate.com/gcin-source/ 呢?

是要打包給其他Linux版本用的,謝謝

guest
214subject: utbuntu 18.04 TextEditor問題Promote 0 Bookmark 02018-12-27quote  

eliu大大你好

小弟使用gcin好幾年,很好用,讚!

最近使用ubuntu 18.04,依照你1樓文章的步驟安裝好gcin,可以正常輸入中文了,

但使用TextEditor有點問題,TextEditor的背景變成紅色的ubuntu桌面顏色,不是正常的白色,不曉得怎麼辦呢?

謝謝你

 

我的環境:

1.ubuntu是18.04.1從官網下載的(ubuntu-18.04.1-desktop-amd64.iso)。

2.gcin版本資訊:

ubuntu@ubuntu-virtual-machine:~$ dpkg -l | grep gcin
ii  gcin                                       2.8.6+eliu-4                        amd64        GTK+ based input method for Chinese users
ii  gcin-data                                  2.8.6+eliu-4                        all          icons and scripts for gcin
ii  gcin-gtk2-immodule:amd64                   2.8.6+eliu-4                        amd64        GTK3 input method module with gcin as backend
ii  gcin-gtk3-immodule:amd64                   2.8.6+eliu-4                        amd64        GTK3 input method module with gcin as backend
ii  gcin-im-client:amd64                       2.8.6+eliu-4                        amd64        GTK3 input method module with gcin as backend
ii  gcin-qt4-immodule:amd64                    2.8.6+eliu-4                        amd64        Qt4 input method module with gcin as backend
ii  gcin-tables                                2.8.6+eliu-4                        all          input method tables for gcin

Nate

eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
215subject: utbuntu 18.04 TextEditor問題Promote 0 Bookmark 02018-12-27quote  

guest
但使用TextEditor有點問題,TextEditor的背景變成紅色的ubuntu桌面顏色,不是正常的白色,不曉得怎麼辦呢?

gcin 不會改變 TextEditor 的顏色。

guest
216subject: utbuntu 18.04 TextEditor問題Promote 0 Bookmark 02018-12-27quote  

eliu

 

gcin 不會改變 TextEditor 的顏色。

 

謝謝eliu大大回覆超快。

原來如此! 那可能是其他的環境不相容?

我遇到的畫面是這樣: 輸入的字會疊在一起,加上text editor背景顏色異常

https://imgur.com/a/i9HvGfD

eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
217subject: Promote 0 Bookmark 02018-12-27quote  

我覺得可能與主題顏色有關,試試選別的主題。

我是用 xfce,內定顏色 沒這個問題。

artspace
joined: 2019-01-07
posted: 2
promoted:
bookmarked:
218subject: 在Ubuntu 18.04裡裝好gcin後大易輸入法叫不出來....Promote 0 Bookmark 02019-01-07quote  

在Ubuntu 18.04裡裝好gcin後大易輸入法叫不出來.... 注音輸入及符號輸入卻是OK的(我只有選這三種輸入法)

gcin的版本是2.8.5+dfsg1-4build4

請問要如何解決呢?萬分感謝!

eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
219subject: 在Ubuntu 18.04裡裝好gcin後大易輸入法叫不出來....Promote 0 Bookmark 02019-01-07quote  

artspace
gcin的版本是2.8.5+dfsg1-4build4

不清楚這個版本。這個討論是用 第1篇的 gcin-2.8.6+eliu-4。

samwhelp
joined: 2016-10-21
posted: 20
promoted:
bookmarked:
220subject: Promote 0 Bookmark 02019-01-08quote  

artspace


在Ubuntu 18.04裡裝好gcin後大易輸入法叫不出來.... 注音輸入及符號輸入卻是OK的(我只有選這三種輸入法)

gcin的版本是2.8.5+dfsg1-4build4

請問要如何解決呢?萬分感謝!



eliu


不清楚這個版本。這個討論是用 第1篇的 gcin-2.8.6+eliu-4。



================================================================================

以下在「Ubuntu 18.04」測試,提供參考

================================================================================

我安裝「gcin」的步驟,之前有紀錄在「GitHub」上,在最近的另一篇「討論」有提到。

================================================================================


$ dpkg -l gcin



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-======
ii  gcin                            2.8.5+dfsg1-4build4  amd64                GTK+ based input method for Chinese users



================================================================================

執行


$ dpkg -l '*gcin*'



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-======
ii  gcin                            2.8.5+dfsg1-4build4  amd64                GTK+ based input method for Chinese users
ii  gcin-anthy:amd64                2.8.5+dfsg1-4build4  amd64                support library to use Anthy in gcin
ii  gcin-data                       2.8.5+dfsg1-4build4  all                  icons and scripts for gcin
ii  gcin-gtk2-immodule:amd64        2.8.5+dfsg1-4build4  amd64                GTK2 input method module with gcin as backend
ii  gcin-gtk3-immodule:amd64        2.8.5+dfsg1-4build4  amd64                GTK3 input method module with gcin as backend
ii  gcin-qt5-immodule:amd64         2.8.5+dfsg1-4build4  amd64                Qt5 input method module with gcin as backend
ii  gcin-tables                     2.8.5+dfsg1-4build4  amd64                input method tables for gcin
ii  gcin-voice                      0~20170223-1         all                  gcin voice data
ii  libgcin:amd64                   2.8.5+dfsg1-4build4  amd64                library for gcin



================================================================================

執行


$ dpkg -L gcin-data | grep dayi3



顯示


/usr/share/icons/gcin/dayi3.png
/usr/share/icons/gcin/gdayi3.png



================================================================================

執行


$ dpkg -L gcin-tables | grep dayi3



沒有顯示,直接顯示下一個提示字元。

================================================================================

執行


$ apt-file search dayi3



顯示


gcin-data: /usr/share/icons/gcin/dayi3.png
gcin-data: /usr/share/icons/gcin/gdayi3.png
hime-data: /usr/share/pixmaps/hime/black/dayi3.png
hime-data: /usr/share/pixmaps/hime/black/gdayi3.png
hime-data: /usr/share/pixmaps/hime/dark/dayi3.png
hime-data: /usr/share/pixmaps/hime/dark/gdayi3.png
hime-data: /usr/share/pixmaps/hime/dayi3.png
hime-data: /usr/share/pixmaps/hime/gdayi3.png
hime-data: /usr/share/pixmaps/hime/gray/dayi3.png
hime-data: /usr/share/pixmaps/hime/gray/gdayi3.png
hime-data: /usr/share/pixmaps/hime/pink/dayi3.png
hime-data: /usr/share/pixmaps/hime/pink/gdayi3.png



================================================================================

執行下面指令,下載「gcin」的「Source Package: gcin」。


$ apt-get source gcin



會下載下面3個檔案

* gcin_2.8.5+dfsg1-4build4.debian.tar.xz
* gcin_2.8.5+dfsg1-4build4.dsc
* gcin_2.8.5+dfsg1.orig.tar.xz

並且解開到「gcin-2.8.5+dfsg1」

================================================================================

接著執行下面指令


$ find gcin-2.8.5+dfsg1/ | grep dayi3



顯示


gcin-2.8.5+dfsg1/icons/30x30/gdayi3.png
gcin-2.8.5+dfsg1/icons/30x30/dayi3.png
gcin-2.8.5+dfsg1/icons/old/16x16/dayi3.png
gcin-2.8.5+dfsg1/icons/old/20x20s/gdayi3.png
gcin-2.8.5+dfsg1/icons/old/20x20s/dayi3.png
gcin-2.8.5+dfsg1/icons/old/24x24s/gdayi3.png
gcin-2.8.5+dfsg1/icons/old/24x24s/dayi3.png
gcin-2.8.5+dfsg1/icons/old/24x24/gdayi3.png
gcin-2.8.5+dfsg1/icons/old/24x24/dayi3.png
gcin-2.8.5+dfsg1/icons/old/32x32s/gdayi3.png
gcin-2.8.5+dfsg1/icons/old/32x32s/dayi3.png
gcin-2.8.5+dfsg1/.pc/0007-Remove-dayi3-to-compliant-with-DFSG.patch
gcin-2.8.5+dfsg1/.pc/0007-Remove-dayi3-to-compliant-with-DFSG.patch/data
gcin-2.8.5+dfsg1/.pc/0007-Remove-dayi3-to-compliant-with-DFSG.patch/data/Makefile
gcin-2.8.5+dfsg1/debian/patches/0007-Remove-dayi3-to-compliant-with-DFSG.patch




================================================================================

執行


$ cat gcin-2.8.5+dfsg1/debian/patches/0007-Remove-dayi3-to-compliant-with-DFSG.patch



顯示


From 464a04f36315ac1cd46b2f10529fb60cdf0d03bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?=
 <czchen@debian.org>
Date: Wed, 15 Jun 2016 19:06:31 +0800
Subject: Remove dayi3 to compliant with DFSG

---
 data/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/Makefile b/data/Makefile
index cb7a5b9..1cbcd8e 100644
--- a/data/Makefile
+++ b/data/Makefile
@@ -6,7 +6,7 @@ export NO_GTK_INIT=
 export GCIN_NO_RELOAD=

 DATA=pho.tab2 tsin32.idx NewCJ3.gtab \
-     cj.gtab ar30.gtab ar30-big.gtab dayi3.gtab pinyin.gtab jyutping.gtab cj5.gtab \
+     cj.gtab ar30.gtab ar30-big.gtab pinyin.gtab jyutping.gtab cj5.gtab \
      et.kbm et26.kbm zo.kbm pinyin.kbm dvorak.kbm mitac.kbm colemak.kbm \
      ibm.kbm tsin32 hsu.kbm pho-huge.tab2 simplex.gtab symbols.gtab russian.gtab \
      greek.gtab cj-punc.gtab latin-letters.gtab tsin-1.src pin-juyin.xlt \



================================================================================

以上提供參考,報告完畢

:-)

edited: 1
samwhelp
joined: 2016-10-21
posted: 20
promoted:
bookmarked:
221subject: 在Ubuntu 18.04裡裝好gcin後大易輸入法叫不出來....Promote 0 Bookmark 02019-01-08quote  


延續「#220

剛測試了一下

連到下面的網址

https://hyperrate.com/gcin-source/

================================================================================

執行下面指令,下載「gcin-2.8.8.tar.xz」



================================================================================

執行下面指令,解開


$ tar xf gcin-2.8.8.tar.xz



會解開到資料夾「gcin-2.8.8」

================================================================================

執行下面指令,切換到「gcin-2.8.8/data/」這個資料夾


$ cd gcin-2.8.8/data/



================================================================================

接著執行下面指令


$ gcin2tab dayi3.cin



會產生一個檔案「dayi3.gtab」

================================================================================

接著執行下面指令,複製「dayi3.gtab」到「 /usr/share/gcin/table/」這個資料夾


$ sudo cp dayi3.gtab /usr/share/gcin/table/



然後重新啟動「gcin」,應該就可以了

================================================================================

以上提供參考,報告完畢

:-)

edited: 1
eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
222subject: Promote 0 Bookmark 02019-01-08quote  

我是現在才知道Ubuntu裡面的gcin沒有大易。

artspace
joined: 2019-01-07
posted: 2
promoted:
bookmarked:
223subject: Promote 0 Bookmark 02019-01-08quote  

eliu

我是現在才知道Ubuntu裡面的gcin沒有大易。

感謝兩位熱心回覆!! 我後來是直接用eliu版大的方式安裝,裝完之後就一切正常了! (現在就是在Ubuntu 18.04下用gcin大易輸入法打字的Laughing)

看來是Ubuntu Software裡的gcin無法使用大易,而且麻煩的是一旦裝了這個2.8.5+dfsg1-4版之後,如果沒有事先完整移除就無法安裝2.8.6+eliu-4(安裝一半會出現錯誤訊息)

gary8520
joined: 6 days ago
posted: 2
promoted:
bookmarked:
台灣
224subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 06 days agoquote  

artspace

 

感謝兩位熱心回覆!! 我後來是直接用eliu版大的方式安裝,裝完之後就一切正常了! (現在就是在Ubuntu 18.04下用gcin大易輸入法打字的Laughing)

看來是Ubuntu Software裡的gcin無法使用大易,而且麻煩的是一旦裝了這個2.8.5+dfsg1-4版之後,如果沒有事先完整移除就無法安裝2.8.6+eliu-4(安裝一半會出現錯誤訊息)

目前剛安裝 Ubuntu 18.04

之前裝了 Ubuntu software 上的 gcin ,再重新登入好多次都無法輸入中文,後來用了劉大的方法,今天重開機後就可以輸入中文了!
但可能沒有完全移除舊版,用 apt-get install gcin 都一直出現

 gcin : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-gtk2-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-gtk3-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-qt4-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

按提示 sudo apt --fix-broken install

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gcin-qt4-immodule libcurl4 libmng2 libmysqlclient20 libqt4-dbus
  libqt4-declarative libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql
  libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 mysql-common
  qdbus qt-at-spi qtchooser qtcore4-l10n vorbis-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gcin-im-client
The following NEW packages will be installed:
  gcin-im-client
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
23 not fully installed or removed.
Need to get 0 B/73.2 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 164467 files and directories currently installed.)
Preparing to unpack .../gcin-im-client_2.8.6+eliu-4_amd64.deb ...
Unpacking gcin-im-client:amd64 (2.8.6+eliu-4) ...
dpkg: error processing archive /var/cache/apt/archives/gcin-im-client_2.8.6+eliu-4_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/gcin/libgcin-im-client.so.1.2.5', which is also in package libgcin:amd64 2.8.5+dfsg1-4build4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcin-im-client_2.8.6+eliu-4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

用 dpkg -l *gcin* 出現
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  gcin           2.8.5+dfsg1- amd64        GTK+ based input method for Chine
un  gcin-anthy     <none>       <none>       (no description available)
ii  gcin-data      2.8.5+dfsg1- all          icons and scripts for gcin
iU  gcin-gtk2-immo 2.8.6+eliu-4 amd64        GTK3 input method module with gci
iU  gcin-gtk3-immo 2.8.6+eliu-4 amd64        GTK3 input method module with gci
in  gcin-im-client <none>       amd64        (no description available)
iU  gcin-qt4-immod 2.8.6+eliu-4 amd64        Qt4 input method module with gcin
un  gcin-qt5-immod <none>       <none>       (no description available)
ii  gcin-tables    2.8.5+dfsg1- amd64        input method tables for gcin
un  gcin-voice     <none>       <none>       (no description available)
ii  libgcin:amd64  2.8.5+dfsg1- amd64        library for gcin

 

想問有沒有什麼好方法呢?

eliu

joined: 2007-08-09
posted: 11237
promoted: 611
bookmarked: 185
新竹, 台灣
225subject: Promote 0 Bookmark 05 days agoquote  

dpkg -r 

samwhelp
joined: 2016-10-21
posted: 20
promoted:
bookmarked:
226subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 05 days agoquote  

gary8520


目前剛安裝 Ubuntu 18.04

之前裝了 Ubuntu software 上的 gcin ,再重新登入好多次都無法輸入中文,後來用了劉大的方法,今天重開機後就可以輸入中文了
但可能沒有完全移除舊版,用 apt-get install gcin 都一直出現

 gcin : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-gtk2-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-gtk3-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
 gcin-qt4-immodule : Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

按提示 sudo apt --fix-broken install

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gcin-qt4-immodule libcurl4 libmng2 libmysqlclient20 libqt4-dbus
  libqt4-declarative libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql
  libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 mysql-common
  qdbus qt-at-spi qtchooser qtcore4-l10n vorbis-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gcin-im-client
The following NEW packages will be installed:
  gcin-im-client
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
23 not fully installed or removed.
Need to get 0 B/73.2 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 164467 files and directories currently installed.)
Preparing to unpack .../gcin-im-client_2.8.6+eliu-4_amd64.deb ...
Unpacking gcin-im-client:amd64 (2.8.6+eliu-4) ...
dpkg: error processing archive /var/cache/apt/archives/gcin-im-client_2.8.6+eliu-4_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/gcin/libgcin-im-client.so.1.2.5', which is also in package libgcin:amd64 2.8.5+dfsg1-4build4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcin-im-client_2.8.6+eliu-4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

用 dpkg -l *gcin* 出現
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  gcin           2.8.5+dfsg1- amd64        GTK+ based input method for Chine
un  gcin-anthy     <none>       <none>       (no description available)
ii  gcin-data      2.8.5+dfsg1- all          icons and scripts for gcin
iU  gcin-gtk2-immo 2.8.6+eliu-4 amd64        GTK3 input method module with gci
iU  gcin-gtk3-immo 2.8.6+eliu-4 amd64        GTK3 input method module with gci
in  gcin-im-client <none>       amd64        (no description available)
iU  gcin-qt4-immod 2.8.6+eliu-4 amd64        Qt4 input method module with gcin
un  gcin-qt5-immod <none>       <none>       (no description available)
ii  gcin-tables    2.8.5+dfsg1- amd64        input method tables for gcin
un  gcin-voice     <none>       <none>       (no description available)
ii  libgcin:amd64  2.8.5+dfsg1- amd64        library for gcin

想問有沒有什麼好方法呢?

================================================================================

登出登入,我目前觀察到,在「gdm3」好像不是如原本預期的,在「im-config」設定的相關環境變數,並沒有重新設定,

所以安裝完「gcin」,請重開機。

在另一篇「討論」下方,我有列兩個參考指令,可以確認

$ env | grep IM

$ env | grep XMODIFIERS



================================================================================

移除的指令,請參考另一篇「討論」,

舉其中一個範例


$ sudo apt-get purge $(dpkg -l | grep gcin | grep '^ii' | awk '{print $2}')



移除之後,然後在執行下面指令安裝


$ sudo apt-get install gcin



或是執行下面指令安裝


$ sudo apt-get install gcin gcin-qt5-immodule gcin-anthy gcin-voice



================================================================================

安裝新版前,執行下面指令


$ apt-cache policy gcin



顯示


gcin:
  Installed: 2.8.5+dfsg1-4build4
  Candidate: 2.8.6+eliu-4
  Version table:
     2.8.6+eliu-4 500
        500 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 Packages
 *** 2.8.5+dfsg1-4build4 500
        500 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status



================================================================================

安裝新版後,執行下面指令


$ apt-cache policy gcin



顯示


gcin:
  Installed: 2.8.6+eliu-4
  Candidate: 2.8.6+eliu-4
  Version table:
 *** 2.8.6+eliu-4 500
        500 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 Packages
        100 /var/lib/dpkg/status
     2.8.5+dfsg1-4build4 500
        500 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages



================================================================================

若要了解有gcin開頭的套件,可以執行下面指令


$ apt-cache pkgnames gcin | sort



顯示


gcin
gcin-anthy
gcin-data
gcin-dev
gcin-gtk2-immodule
gcin-gtk3-immodule
gcin-im-client
gcin-qt4-immodule
gcin-qt5-immodule
gcin-tables
gcin-voice



================================================================================

執行


$ grep-aptavail -F Maintainer gcin -s Package,Version,Maintainer



顯示


Package: gcin
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-anthy
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-data
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-dev
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-gtk2-immodule
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-gtk3-immodule
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-im-client
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-qt4-immodule
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-qt5-immodule
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-tables
Version: 2.8.6+eliu-4
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-anthy
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-gtk2-immodule
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-gtk3-immodule
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-im-client
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>

Package: gcin-qt4-immodule
Version: 2.8.6+eliu-0
Maintainer: gcin <gcin@hyperrate.com>



這個用法,之前有在另一篇「討論」提過。

================================================================================

以上提供參考,報告完畢

:-)

edited: 12
gary8520
joined: 6 days ago
posted: 2
promoted:
bookmarked:
台灣
227subject: Promote 0 Bookmark 04 days agoquote  

感謝大大,我目前試驗的結果,用 grep 抓出來的套件名稱直接做 apt-get purge 可能會讓它接到「gcin-gtk2-immodule:amd64」這個名字,它移除不掉
似乎也造成,我想要再安裝什麼套件都會一直被卡著

我就乖乖地用 dpkg -l | grep gcin 查出gcin
打 sudo apt-get purge gcin gcin-data gcin-gtk2-immodule gcin-gtk3-immodule gcin-im-client gcin-qt4-immodule gcin-tables  (用 tab 自行補齊套件名)
就真正乾淨地移除完成,重新開機後,確定有在 update-manager 設定好,再用 sudo apt-get install gcin
再次重新開機後就一切正常

samwhelp
joined: 2016-10-21
posted: 20
promoted:
bookmarked:
228subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 03 days agoquote  

gary8520


感謝大大,我目前試驗的結果,用 grep 抓出來的套件名稱直接做 apt-get purge 可能會讓它接到「gcin-gtk2-immodule:amd64」這個名字,它移除不掉
似乎也造成,我想要再安裝什麼套件都會一直被卡著

我就乖乖地用 dpkg -l | grep gcin 查出gcin
打 sudo apt-get purge gcin gcin-data gcin-gtk2-immodule gcin-gtk3-immodule gcin-im-client gcin-qt4-immodule gcin-tables  (用 tab 自行補齊套件名)
就真正乾淨地移除完成,重新開機後,確定有在 update-manager 設定好,再用 sudo apt-get install gcin
再次重新開機後就一切正常



收到,恭喜您解決問題了!

在我這邊測試「:amd64」並沒有影響,所以我就沒有特別去處理它了,

不過也可以加上「awk -F ':' '{print $1}')」就可以把「:amd64」去除,

原本執行


$ dpkg -l | grep gcin | grep '^ii' | awk '{print $2}'



顯示


gcin
gcin-anthy
gcin-data
gcin-gtk2-immodule:amd64
gcin-gtk3-immodule:amd64
gcin-im-client:amd64
gcin-qt4-immodule:amd64
gcin-qt5-immodule:amd64
gcin-tables
gcin-voice



改執行下面指令


$ dpkg -l | grep gcin | grep '^ii' | awk '{print $2}' | awk -F ':' '{print $1}'



就會顯示沒有「:amd64」的套件列表


gcin
gcin-anthy
gcin-data
gcin-gtk2-immodule
gcin-gtk3-immodule
gcin-im-client
gcin-qt4-immodule
gcin-qt5-immodule
gcin-tables



接著在搭配移除指令就行了


$ sudo apt-get purge $(dpkg -l | grep gcin | grep '^ii' | awk '{print $2}' | awk -F ':' '{print $1}')



或是執行


$ sudo dpkg -P $(dpkg -l | grep gcin | grep '^ii' | awk '{print $2}' | awk -F ':' '{print $1}')



================================================================================

不過上面指令,應該適用一般的狀況下使用我再回顧您在#224給的提示訊息

發現到您有些套件的狀態是「iU」,

所以上面指令就不能有「grep '^ii'」。

也就是改成下面指令,顯示「gcin」相關的套件列表。


$ dpkg -l | grep gcin | awk '{print $2}' | awk -F ':' '{print $1}'



接著移除就用「dpkg -P」或「dpkg -r」


$ sudo dpkg -P $(dpkg -l | grep gcin | awk '{print $2}' | awk -F ':' '{print $1}')

我先創造一些例外狀況,測試上面的指令,應該是可以正常移除。

================================================================================

額外一提,很久之前參與另一篇「討論」時,才曉得「dpkg」有「--force-」開頭的選項可以選

後來我也探索了一下,寫在另一個「回覆#23

可以執行下面指令,觀看相關的說明


$ dpkg --force-help



舉例,加上「--force-depends」,也就是執行下面的指令


$ sudo dpkg -P --force-depends $(dpkg -l | grep gcin | awk '{print $2}' | awk -F ':' '{print $1}')



不過這樣的下法,我很少去執行,因為我比較少遇到例外狀況,通常都是看別人提問,才去探索那例外狀況
所以我也不曉得會不會有副作用,真的逼不得已,我才會採用「--force-」開頭的選項。

================================================================================

以上提供參考,

報告完畢

:-)

edited: 2
prev,1,6,7,8

cht電腦資訊gcingcin分享
adm Find login register
views:330384