ローカルの適切なリポジトリは「リリース」ファイルから404を返します。

ローカルの適切なリポジトリは「リリース」ファイルから404を返します。

gpg signed reprepro を使用してローカルの apt リポジトリを設定しましたが、Apache は更新クエリで次のエラーを返します。

"GET /repos/apt/debian/dists/stretch/InRelease HTTP/1.1" 404 474 "-" "Debian APT-HTTP/1.3 (1.4~rc2)"
"GET /repos/apt/debian/dists/stretch/Release HTTP/1.1" 404 472 "-" "Debian APT-HTTP/1.3 (1.4~rc2)"

なぜ両方のファイルが存在し、両方が広く読めるのか理解できません。

$ ll /var/www/repos/apt/debian/dists/stretch/
-rw-r--r-- 1 www-data www-data 2,1K mar  1 15:12 InRelease
-rw-r--r-- 1 www-data www-data 1,6K mar  1 15:11 Release
-rw-r--r-- 1 www-data www-data  488 mar  1 15:12 Release.gpg

エラーが別の場所にある可能性があります。 Apacheの設定が含まれています。

<Directory /var/www/repos/ >
    Options Indexes FollowSymLinks Multiviews
    Order allow,deny
    Allow from all
</Directory>

<Directory "/var/www/repos/apt/*/db/">
    Order deny,allow
    Deny from all
</Directory>

<Directory "/var/www/repos/apt/*/conf/">
    Order deny,allow
    Deny from all
</Directory>

<Directory "/var/www/repos/apt/*/incoming/">
    Order allow,deny
    Deny from all
</Directory>

よろしくお願いします。

編集する

ソース。リスト:

deb http://localhost/repos/apt/debian stretch main

ベストアンサー1

jessieでは、デフォルトのApacheDocumentRootはです/var/www/html。ディレクトリの再配置、適切なシンボリックリンクの作成、またはAliasApacheの設定に必要な宣言を追加する必要があります。

おすすめ記事