簡體   English   中英

Ubuntu無法找到包

[英]Ubuntu unable to locate package

我已經在ubuntu系統上為openstack安裝了devstack。 我正在嘗試安裝quantum-lbaas-agent 我收到錯誤Unable to locate package 我嘗試更改/etc/apt/sources.list文件中的源列表。 我無法對其進行編輯,因此將sources.list權限更改為777 更改權限后,我運行了sudo apt-get update 我仍然收到無法找到包的錯誤。 我也嘗試運行sudo apt-get upgrade 仍然沒有任何進展。

這是sudo apt-get install quantum-lbaas-agent

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package quantum-lbaas-agent

這是我的/etc/apt文件夾中的sources.list

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise universe
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http:extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

有人可以幫忙嗎。 我真的被困在這一點上。 我在ubuntu論壇等上查找了各種帖子。

提前致謝。

找不到該軟件包,因為它不在您的sources.list文件中列出的任何檔案中。

本頁說明您需要執行的操作:

http://docs.openstack.org/trunk/openstack-network/admin/content/install_ubuntu.html

我對步驟進行了一些修改,以使您的案例清晰易懂:

sudo su -
echo deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main >>/etc/apt/sources.list
apt-get install ubuntu-cloud-keyring 
apt-get update
apt-get install quantum-lbaas-agent

這將適用於virtualenv pip wheel errorcode1問題以及E無法找到軟件包問題

    sudo apt-get update

    sudo apt-get install python-software-properties

    sudo apt-get install apt-file

    sudo apt-file update

    sudo apt-get install software-properties-common

    sudo apt-get install <your filename>  

你可以做 :

sudo apt-get purge 

這將清理配置,這可能會阻止您安裝軟件包

我的問題

kuma-soft@kumasoft-Inspiron-15-3567:~$ sudo apt install virtualenv
[sudo] password for kuma-soft: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package virtualenv
kuma-soft@kumasoft-Inspiron-15-3567:~$ sudo apt install simplescreenrecorder
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package simplescreenrecorder

在此處輸入圖片說明

sudo apt-get update

在此處輸入圖片說明

Y

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM