apt-get package não encontrado para repositório local

0

Eu configurei um repositório local para alguns pacotes. Aqui está a estrutura de diretórios do repositório:

dists
dists/precise
dists/precise/main
dists/precise/main/binary-amd64
dists/precise/main/binary-amd64/python-openvswitch_2.1.2-51_all.deb
dists/precise/main/binary-amd64/Packages.bz2
dists/precise/main/binary-amd64/Packages
dists/precise/main/binary-amd64/Packages.gz
dists/precise/main/binary-amd64/openvswitch-switch_2.1.2-51_amd64.deb
dists/precise/main/binary-amd64/openvswitch-datapath-dkms_2.1.2-51_all.deb
dists/precise/main/binary-amd64/Release
dists/precise/main/binary-amd64/openvswitch-common_2.1.2-51_amd64.deb

o /etc/apt/sources.list tem a seguinte entrada:

deb http://archive.ubuntu.com//ubuntu  precise main restricted universe multiverse
deb http://archive.ubuntu.com//ubuntu  precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com//ubuntu  precise-security main restricted universe multiverse
deb http://repo1 precise main

sudo apt-get update

Ign http://repo1 precise Release.gpg
Ign http://repo1 precise Release
Ign http://repo1 precise/main amd64 Packages/DiffIndex
Ign http://repo1 precise/main TranslationIndex
Hit http://repo1 precise/main amd64 Packages
Ign http://repo1 precise/main Translation-en_US
Ign http://repo1 precise/main Translation-en
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://archive.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools Release.gpg
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools Release
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/main amd64 Packages
Hit http://archive.ubuntu.com precise-security/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-security/universe amd64 Packages
Hit http://archive.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main Translation-en_US
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Reading package lists... Done

Tente o apt-get install:

sudo apt-get install python-openvswitch
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-openvswitch

Alguma dica sobre a depuração do problema acima?

Solução: Acabei criando uma estrutura de repositório trivial para funcionar:

Esta é a nova estrutura:

dists
dists/python-openvswitch_2.1.2-51_all.deb
dists/Packages.bz2
dists/Packages
dists/Packages.gz
dists/openvswitch-switch_2.1.2-51_amd64.deb
dists/openvswitch-datapath-dkms_2.1.2-51_all.deb
dists/openvswitch-common_2.1.2-51_amd64.deb

O /etc/apt/sources.list tem a seguinte entrada:

deb http://repo1/dists /

Agora eu posso fazer o apt-get update seguido pelo apt-get install openvswitch-common

    
por user310399 04.08.2014 / 17:42

1 resposta

1

Solução: acabei criando uma estrutura de repositório trivial para funcionar:

Esta é a nova estrutura:

dists
dists/python-openvswitch_2.1.2-51_all.deb
dists/Packages.bz2
dists/Packages
dists/Packages.gz
dists/openvswitch-switch_2.1.2-51_amd64.deb
dists/openvswitch-datapath-dkms_2.1.2-51_all.deb
dists/openvswitch-common_2.1.2-51_amd64.deb

O /etc/apt/sources.list tem a seguinte entrada:

deb http://repo1/dists /

Agora posso fazer apt-get update seguido por apt-get install openvswitch-common

    
por user310399 04.08.2014 / 18:35