Ubuntu 14.04 無法安裝odbcinst1debian2元件與odbcinst元件 [論壇 - Ubuntu安裝問題]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊



Ubuntu 14.04 無法安裝odbcinst1debian2元件與odbcinst元件
會員一級
註冊日期:
2015/3/10 14:47
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 0
EXP: 0
離線
情況大概是...當我要安裝元件odbcinst1debian2時, 錯誤訊息告訴我, 我必須先安裝元件odbcinst
(Package odbcinst is not installed.)
但是我安裝odbcinst元件時, 錯誤訊息告訴我尚未配置odbcinst1debian2,
(odbcinst1debian2:amd64 is not configured yet.)

請問我要如何解決呢...Thanks...

錯誤訊息如下==================================================

# dpkg -i odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb

Selecting previously unselected package odbcinst1debian2:amd64.
(Reading database ... 62273 files and directories currently installed.)
Preparing to unpack odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
dpkg: dependency problems prevent configuration of odbcinst1debian2:amd64:
odbcinst1debian2:amd64 depends on odbcinst; however:
Package odbcinst is not installed. (必須先安裝元件)

dpkg: error processing package odbcinst1debian2:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
odbcinst1debian2:amd64





# dpkg -i odbcinst_2.2.14p2-5ubuntu5_amd64.deb

Selecting previously unselected package odbcinst.
(Reading database ... 62297 files and directories currently installed.)
Preparing to unpack odbcinst_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst (2.2.14p2-5ubuntu5) ...
dpkg: dependency problems prevent configuration of odbcinst:
odbcinst depends on odbcinst1debian2 (>= 2.2.14p2); however:
Package odbcinst1debian2:amd64 is not configured yet. (這裡說明尚未配置)

dpkg: error processing package odbcinst (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
odbcinst

2015/3/10 15:00
應用擴展 工具箱
回覆: Ubuntu 14.04 無法安裝odbcinst1debian2元件與odbcinst元件
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18520
EXP: 89
離線
執行下面的指令來解決。


$ sudo apt-get install -f



個人猜測,因為你直接下載deb檔「odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb」,用「dpkg -i」安裝「odbcinst1debian2」。
然後相依的套件「odbcinst」並沒有事先安裝。所以要求你先安裝,所以你執行「dpkg -i」就會出現你說的訊息,你只要執行「sudo apt-get install -i」就會解決了,事後補裝「odbcinst」。

我之前有做了一個「索引」,有些文章應該有討論到。

另外,我用下面的指令查詢「odbcinst」。


$ apt-cache search odbcinst


顯示下面的訊息


odbcinst - Helper program for accessing odbc ini files
odbcinst1debian2 - Support library for accessing odbc ini files
libodbcinstq4-1 - Qt-based ODBC configuration library



或是執行


$ aptitude search odbcinst



會顯示


p libodbcinstq4-1 - Qt-based ODBC configuration library
p libodbcinstq4-1:i386 - Qt-based ODBC configuration library
i A odbcinst - Helper program for accessing odbc ini files
p odbcinst:i386 - Helper program for accessing odbc ini files
i A odbcinst1debian2 - Support library for accessing odbc ini files
p odbcinst1debian2:i386 - Support library for accessing odbc ini files



表示內建的套件庫是有「odbcinst1debian2」這個套件的。
所以執行下面的指令就可以安裝「odbcinst1debian2」了,會一併安裝「odbcinst 」。


$ sudo apt-get install odbcinst1debian2




另外好奇一問,「odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb」這個檔,您是去那裡下載的?

## 額外一提

下面的指令,你可以了解「odbcinst1debian2」,相依什麼套件


$ apt-cache depends odbcinst1debian2



或是看一下該套件的資訊


$ apt-cache show



可以看到一行


Depends: libc6 (>= 2.14), libltdl7 (>= 2.4.2), odbcinst



也可以執行

$ apt-cache showpkg odbcinst1debian2



會看到有一段


Dependencies:
2.2.14p2-5ubuntu5 - libc6 (2 2.14) libltdl7 (2 2.4.2) odbcinst (0 (null)) multiarch-support (0 (null)) odbcinst1 (0 (null)) odbcinst1:i386 (0 (null)) odbcinst1debian1 (0 (null)) odbcinst1debian1:i386 (0 (null)) libiodbc2 (0 (null)) libiodbc2:i386 (0 (null)) libmyodbc (3 5.1.6-2) libmyodbc:i386 (3 5.1.6-2) odbc-postgresql (3 1:09.00.0310-1.1) odbc-postgresql:i386 (3 1:09.00.0310-1.1) tdsodbc (3 0.82-8) tdsodbc:i386 (3 0.82-8) unixodbc (3 2.1.1-2) unixodbc:i386 (3 2.1.1-2) odbcinst1debian2:i386 (3 2.2.14p2-5ubuntu5) odbcinst1debian2:i386 (6 2.2.14p2-5ubuntu5)



直接看網頁「odbcinst1debian2」也行

報告完畢



軟趴趴芋圓 寫到:
情況大概是...當我要安裝元件odbcinst1debian2時, 錯誤訊息告訴我, 我必須先安裝元件odbcinst
(Package odbcinst is not installed.)
但是我安裝odbcinst元件時, 錯誤訊息告訴我尚未配置odbcinst1debian2,
(odbcinst1debian2:amd64 is not configured yet.)

請問我要如何解決呢...Thanks...

錯誤訊息如下==================================================

# dpkg -i odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb

Selecting previously unselected package odbcinst1debian2:amd64.
(Reading database ... 62273 files and directories currently installed.)
Preparing to unpack odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
dpkg: dependency problems prevent configuration of odbcinst1debian2:amd64:
odbcinst1debian2:amd64 depends on odbcinst; however:
Package odbcinst is not installed. (必須先安裝元件)

dpkg: error processing package odbcinst1debian2:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
odbcinst1debian2:amd64





# dpkg -i odbcinst_2.2.14p2-5ubuntu5_amd64.deb

Selecting previously unselected package odbcinst.
(Reading database ... 62297 files and directories currently installed.)
Preparing to unpack odbcinst_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst (2.2.14p2-5ubuntu5) ...
dpkg: dependency problems prevent configuration of odbcinst:
odbcinst depends on odbcinst1debian2 (>= 2.2.14p2); however:
Package odbcinst1debian2:amd64 is not configured yet. (這裡說明尚未配置)

dpkg: error processing package odbcinst (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
odbcinst

2015/3/10 16:30
應用擴展 工具箱


 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.