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

Ubuntu 24.04/20.04/ 安裝最新的 gcin 中文輸入的完整步驟

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

eliu

 

第一篇

 

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

eliu

joined: 2007-08-09
posted: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
212subject: Promote 0 Bookmark 02018-11-25quote  

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

過幾天會 release

yochenhsieh
joined: 2009-11-16
posted: 29
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: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
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: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
217subject: Promote 0 Bookmark 02018-12-27quote  

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

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

artspace
joined: 2019-01-07
posted: 3
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: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
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: 26
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: 26
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: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
222subject: Promote 0 Bookmark 02019-01-08quote  

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

artspace
joined: 2019-01-07
posted: 3
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: 2019-01-17
posted: 3
promoted:
bookmarked:
台灣
224subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 02019-01-17quote  

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: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
225subject: Promote 0 Bookmark 02019-01-17quote  

dpkg -r 

samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
226subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 02019-01-18quote  

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: 2019-01-17
posted: 3
promoted:
bookmarked:
台灣
227subject: Promote 0 Bookmark 02019-01-19quote  

感謝大大,我目前試驗的結果,用 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: 26
promoted:
bookmarked:
228subject: 無法完全移除 18.04 ubuntu software 上 gcin 2.8.5 亦無法完整安裝2.8.6Promote 0 Bookmark 02019-01-20quote  

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
artspace
joined: 2019-01-07
posted: 3
promoted:
bookmarked:
229subject: utbuntu 18.04 TextEditor問題Promote 0 Bookmark 02019-01-23quote  

guest

謝謝eliu大大回覆超快。

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

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

https://imgur.com/a/i9HvGfD

我這兒也有遇到完全一樣的問題(Ubuntu 18.04 LTS),我試過在未安裝gcin之前Text Editor是正常的,但一裝好gcin之後就會變成這樣,而且連打英文都會有問題...

好像是Ubuntu 18.04的bug,在這兒也有看到類似的問題:

https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1760818

我是把Theme從內定的Ambience改成Adwaita來解決問題

edited: 1
samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
230subject: utbuntu 18.04 TextEditor問題Promote 0 Bookmark 02019-01-25quote  

guest

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

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

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



artspace

我這兒也有遇到完全一樣的問題(Ubuntu 18.04 LTS),我試過在未安裝gcin之前Text Editor是正常的,但一裝好gcin之後就會變成這樣,而且連打英文都會有問題...

好像是Ubuntu 18.04的bug,在這兒也有看到類似的問題:

https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1760818

我是把Theme從內定的Ambience改成Adwaita來解決問題

之前在另一個論壇討論完,忘了貼上該「討論串」,

現在補上,提供未來有遇到相同問題的人,一個參考。

:-)

edited: 2
guest
231subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-07quote  

Hello,

 

My operating system is ubuntu 18.4.

I successfully installed gcin about 3 months ago. However, one day gcin broke.( I don't know why and did not save a screenshot)

Anyway, I tried to remove gcin, and get the gcin installed back again. Nonetheless, I got the error message:

:~$ sudo apt-get install gcin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gcin : Depends: gcin-im-client (>= 2.8.8+eliu-2) but it is not going to be installed
        Depends: gcin-data but it is not going to be installed
        Depends: gcin-tables but it is not going to be installed
        Depends: gcin-gtk2-immodule but it is not going to be installed
        Depends: gcin-gtk3-immodule 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).

 

Plus, everytime I tried to update my ubuntu, another error message occured due to gcin.

The package system is broken

Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
 The following packages have unmet dependencies:

gcin-qt4-immodule: Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not installed
                   Depends: libgcc1 (>= 1:3.0) but 1:8.2.0-1ubuntu2~18.04 is installed
                   Depends: libqtcore4 (>= 4:4.7.0~beta1) but 4:4.8.7+dfsg-7ubuntu1 is installed
                   Depends: libqtgui4 (>= 4:4.5.3) but 4:4.8.7+dfsg-7ubuntu1 is installed

 

Could anyone help? (Sorry for being a novice.)

Thanks!

eliu

joined: 2007-08-09
posted: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
232subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-07quote  

guest

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Furthermore run the following command in a Terminal: apt-get install -f

Did you try both ?

samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
233subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-09quote  

guest


Hello,

 

My operating system is ubuntu 18.4.

I successfully installed gcin about 3 months ago. However, one day gcin broke.( I don't know why and did not save a screenshot)

Anyway, I tried to remove gcin, and get the gcin installed back again. Nonetheless, I got the error message:

:~$ sudo apt-get install gcin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gcin : Depends: gcin-im-client (>= 2.8.8+eliu-2) but it is not going to be installed
        Depends: gcin-data but it is not going to be installed
        Depends: gcin-tables but it is not going to be installed
        Depends: gcin-gtk2-immodule but it is not going to be installed
        Depends: gcin-gtk3-immodule 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).

 

Plus, everytime I tried to update my ubuntu, another error message occured due to gcin.

The package system is broken

Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
 The following packages have unmet dependencies:

gcin-qt4-immodule: Depends: gcin-im-client (>= 2.8.6+eliu-4) but it is not installed
                   Depends: libgcc1 (>= 1:3.0) but 1:8.2.0-1ubuntu2~18.04 is installed
                   Depends: libqtcore4 (>= 4:4.7.0~beta1) but 4:4.8.7+dfsg-7ubuntu1 is installed
                   Depends: libqtgui4 (>= 4:4.5.3) but 4:4.8.7+dfsg-7ubuntu1 is installed

 

Could anyone help? (Sorry for being a novice.)

Thanks!




您的情況可以先參考之前的討論「#227」,「#228」,「#224」,「#226

先移除跟「gcin」相關的套件,然後再重新安裝「gcin」,看看還會不會有同樣的情形發生。

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

執行下面指令,可以找到您系統上跟「gcin」相關的套件。


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



然後執行下面指令移除


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



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

接著再重新安裝「gcin」



sudo apt-get install gcin




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

若還是有同樣的情形發生,可以先把「/etc/apt/sources.list.d/gcin.list」移除,或是不用移除,先將檔案裡面的每一行註解

然後再執行「sudo apt-get update」。

接著一樣先移除跟「gcin」相關的套件,然後再重新安裝「gcin」,看看還會不會有同樣的情形發生。


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

以上提供參考

報告完畢

:-)

edited: 1
samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
234subject: gcin 使用筆記 - Ubuntu 18.04Promote 0 Bookmark 02019-03-09quote  

關於這篇討論,

剛寫了一些文件,放在「GitHub」上,

可以連到「https://samwhelp.github.io/note-about-gcin/」觀看。

還有些想寫還沒寫,未來會慢慢補上,先暫告一段落。

以上提供參考

報告完畢

:-)

guest
235subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-12quote  

samwhelp




您的情況可以先參考之前的討論「#227」,「#228」,「#224」,「#226

先移除跟「gcin」相關的套件,然後再重新安裝「gcin」,看看還會不會有同樣的情形發生。

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

執行下面指令,可以找到您系統上跟「gcin」相關的套件。



然後執行下面指令移除



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

接著再重新安裝「gcin」





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

若還是有同樣的情形發生,可以先把「/etc/apt/sources.list.d/gcin.list」移除,或是不用移除,先將檔案裡面的每一行註解

然後再執行「sudo apt-get update」。

接著一樣先移除跟「gcin」相關的套件,然後再重新安裝「gcin」,看看還會不會有同樣的情形發生。


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

以上提供參考

報告完畢

:-)

 

Hello,

I tried the following, but still get an error message.


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

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

sudo apt-get install gcin

Error message:

Err:1 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-data all 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:2 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-tables all 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:3 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-gtk2-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:4 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-gtk3-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:5 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-qt4-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:6 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-data_2.8.8+eliu-2_all.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-tables_2.8.8+eliu-2_all.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-gtk2-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-gtk3-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-qt4-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And I was going to use the following,

可以先把「/etc/apt/sources.list.d/gcin.list」移除,或是不用移除,先將檔案裡面的每一行註解

However, I am not sure what codes I should use to find that gcin.list and uninstall it.

Could you provide the sample code for me? Thanks!

guest
236subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-12quote  

eliu

 

Did you try both ?

 

Yes, I did try, but got a similar error message.(I did not save the screen shot.)

I am now trying the method suggested by samwhelp, but still face a problem that being unable to find /etc/apt/sources.list.d/gcin.list


eliu

joined: 2007-08-09
posted: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
237subject: Promote 0 Bookmark 02019-03-12quote  

sudo apt-get update

samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
238subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-12quote  

guest


Yes, I did try, but got a similar error message.(I did not save the screen shot.)

I am now trying the method suggested by samwhelp, but still face a problem that being unable to find /etc/apt/sources.list.d/gcin.list




喔喔,我忘了「/etc/apt/sources.list.d/gcin.list」是我自己新增的,

您可能是用別的方式加入eliu套件庫來源

我沒測過這樣的方式,所以不確定,它的檔名會是啥。

您可以先在「/etc/apt/sources.list.d/」這個資料夾找看看,也許能找到跟「gcin」相關的檔案。

例如執行


ls /etc/apt/sources.list.d



在我的系統顯示


gcin.list  google-chrome.list  google-chrome.list.save vscode.list



執行


grep 'gcin' /etc/apt/sources.list.d -R -n



在我的系統顯示


/etc/apt/sources.list.d/gcin.list:1:deb http://hyperrate.com/gcin-ubuntu1804 eliu release



再不然就要找找「/etc/apt/sources.list」裡面的內容,找看看有沒有「deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行,
若有就在那一行前面加入「#」,就是註解了,也就是「#deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行。

不過因為您已經先刪除舊有的「gcin」了,所以應該先不用操作這個步驟,真的還是有問題,這是最後不得已的解法。

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

guest


Hello,

I tried the following, but still get an error message.


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

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

sudo apt-get install gcin

Error message:

Err:1 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-data all 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:2 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-tables all 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:3 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-gtk2-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:4 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-gtk3-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:5 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin-qt4-immodule amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
Err:6 http://hyperrate.com/gcin-ubuntu1804 eliu/release amd64 gcin amd64 2.8.8+eliu-2
  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-data_2.8.8+eliu-2_all.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-tables_2.8.8+eliu-2_all.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-gtk2-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-gtk3-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin-qt4-immodule_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Failed to fetch http://hyperrate.com/gcin-ubuntu1804/amd64/gcin_2.8.8+eliu-2_amd64.deb  404  Not Found [IP: 114.32.230.74 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And I was going to use the following,

可以先把「/etc/apt/sources.list.d/gcin.list」移除,或是不用移除,先將檔案裡面的每一行註解

However, I am not sure what codes I should use to find that gcin.list and uninstall it.

Could you provide the sample code for me? Thanks!



您執行「sudo apt-get install gcin」之前,

需要先執行「sudo apt-get update」。

也就是下面的執行步驟


sudo apt-get update

sudo apt-get install gcin



然後您可以做個確認,

先連到「http://hyperrate.com/gcin-ubuntu1804/amd64/」這個網址,

您應該會連得到,

然後您可以看到裏面已經沒有「2.8.8+eliu-2」的「deb檔」了,已經改成「2.8.8+eliu-3」,

所以才會出現 「404  Not Found」。

相關的概念,我有寫在下面兩個頁面

* https://samwhelp.github.io/note-about-gcin/ubuntu/18.04/#/install-eliu
* https://samwhelp.github.io/note-about-gcin/ubuntu/18.04/#/eliu-repository-add

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

以上提供參考

報告完畢

:-)


samwhelp
joined: 2016-10-21
posted: 26
promoted:
bookmarked:
239subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-12quote  

延續「#238」一開始提到的

剛剛測試了一下,使用「software-properties-gtk」來加入deb http://hyperrate.com/gcin-ubuntu1804 eliu release」,

會直接附加在「/etc/apt/sources.list」裏面

執行下面指令,就可以找到


grep 'gcin' /etc/apt/sources.list -n



顯示


52:deb http://hyperrate.com/gcin-ubuntu1804 eliu release
53:# deb-src http://hyperrate.com/gcin-ubuntu1804 eliu release



在我的系統是第「52」行

以上補充

:-)

edited: 2
guest
240subject: Failed to install and uninstall gcinPromote 0 Bookmark 02019-03-13quote  

samwhelp




喔喔,我忘了「/etc/apt/sources.list.d/gcin.list」是我自己新增的,

您可能是用別的方式加入eliu套件庫來源

我沒測過這樣的方式,所以不確定,它的檔名會是啥。

您可以先在「/etc/apt/sources.list.d/」這個資料夾找看看,也許能找到跟「gcin」相關的檔案。

例如執行



在我的系統顯示



執行



在我的系統顯示



再不然就要找找「/etc/apt/sources.list」裡面的內容,找看看有沒有「deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行,
若有就在那一行前面加入「#」,就是註解了,也就是「#deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行。

不過因為您已經先刪除舊有的「gcin」了,所以應該先不用操作這個步驟,真的還是有問題,這是最後不得已的解法。

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



您執行「sudo apt-get install gcin」之前,

需要先執行「sudo apt-get update」。

也就是下面的執行步驟



然後您可以做個確認,

先連到「http://hyperrate.com/gcin-ubuntu1804/amd64/」這個網址,

您應該會連得到,

然後您可以看到裏面已經沒有「2.8.8+eliu-2」的「deb檔」了,已經改成「2.8.8+eliu-3」,

所以才會出現 「404  Not Found」。

相關的概念,我有寫在下面兩個頁面

* https://samwhelp.github.io/note-about-gcin/ubuntu/18.04/#/install-eliu
* https://samwhelp.github.io/note-about-gcin/ubuntu/18.04/#/eliu-repository-add

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

以上提供參考

報告完畢

:-)


 

Hello,

I got this error message when I installed gcin back.

Does that mean I really have to do the following?

再不然就要找找「/etc/apt/sources.list」裡面的內容,找看看有沒有「deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行,
若有就在那一行前面加入「#」,就是註解了,也就是「#deb http://hyperrate.com/gcin-ubuntu1804 eliu release」這一行。

And, I found out my /etc/apt/sources.list suits the case below.

52:deb http://hyperrate.com/gcin-ubuntu1804 eliu release
53:# deb-src http://hyperrate.com/gcin-ubuntu1804 eliu release

I am wondering how I could add a "#" before deb http://hyperrate.com/gcin-ubuntu1804 eliu release.

by "vi /etc/apt/sources.list"?

prev,1,6,7,8,9,next

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