2013-11-21 70 views
8

我試圖安裝 「的libstdC++ i686的。」 與Yum失敗 - 沒有啓用回購。

yum install libstdc++.i686 

但failes怎麼一回事,因爲這個錯誤的:

[email protected]:/usr/local/nsis/nsis-2.46-src$ sudo yum install libstdc++.i686

[sudo] password for qa:

There are no enabled repos. **Run "yum repolist all" to see the repos you have.

You can enable repos with yum-config-manager --enable


我看了看我的repos.d目錄( /etc/yum/repos.d)及其空的 和opend yum.conf文件,但沒有看到任何存儲庫。

我如何獲得我需要的儲藏室?

+0

檢查答案http://unix.stackexchange.com/questions/6827/how-to-add-a-repository-on-fedora – Chilledrat

+0

其唯一的Fedora操作系統,我正在使用ubunto –

+1

在Ubuntu的命令行中安裝軟件包的常用方法是使用apt-get。嘗試_sudo apt-get install libstdC++。i686_(如果您運行的是Ubuntu的32位版本,則可以刪除.i686部分) – Chilledrat

回答

10

OK, 所以我的問題是,我試圖用百勝這是從官方紅帽公司獲得,安裝,刪除,查詢和管理紅帽企業Linux RPM軟件包的主要工具安裝包存儲庫以及其他第三方存儲庫。

但是我使用的是Ubuntu,通常在Ubuntu的命令行上安裝軟件包的方法是使用apt-get。所以正確的命令是:

sudo apt-get install libstdc++.i686 
+4

它不適用於E:無法找到軟件包libstdC++。i686 E:找不到任何軟件包glob'libstdC++。i686' E:通過正則表達式'libstdC++。i686'找不到任何包' – 2016-12-08 23:25:51