2016-12-03 4 views
0

が欠落していますphpmyadminは利用できませんが、別のパッケージで参照されます。 このパッケージは、廃止された欠落していることを意味するかもしれない、または は別のソースからのみ入手可能ですラズベリーパイなど/ aptの/ sources.listのは</p> <p>パッケージを、私は偶然など/ aptの/ sources.listをを削除している可能性があり、今毎回私はラズベリーパイの上に何かをインストールしようと、私は次のエラーメッセージが表示されます

E:パッケージ「phpmyadminのは」はインストール候補がありません

私は得ることができますどのように/ etc/aptの/ sources.list file back

答えて

1

まず、本当に削除したのか、/etc/apt/sources.list.saveのようなソースファイルのコピーがあるかどうかチェックしてください(このようなコピーを作成するプログラムもあります使用すると自動的に)。可能なコピーを見つけるには、次のコードを実行します。

ls /etc/apt/ | grep -ie "sources.list" 

コピーが見つからない場合は、ソースファイルを再作成する必要があります。これを行うには、あなたが走っているLinuxディストリビューションに依存します。 "sources.list myLinuxDistribution"の検索を行い、何が表示されるかを見てください。そして、そこにsources.listの内容を貼り付け:あなたは、適切なsources.listのコードを見つけたら、あなたの好みのテキストエディタ(gksudo leafpad /etc/apt/sources.list EX)を実行すること

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free 
deb http://security.debian.org/ jessie/updates main contrib non-free 
deb-src http://security.debian.org/ jessie/updates main contrib non-free 
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free 
deb http://ftp.debian.org/debian jessie-backports main contrib non-free 
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free 

:Debianの8のために、それはこのようなものかもしれません新しいファイルを保存します。

0

RaspbianジェシーLiteの標準の/etc/apt/sources.listは次のようになります。

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi 
# Uncomment line below then 'apt-get update' to enable 'apt-get source' 
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi 

私はphpmyadminのに必要な他のエントリが存在しないと思います。

deb http://archive.raspberrypi.org/debian/ jessie main ui 
# Uncomment line below then 'apt-get update' to enable 'apt-get source' 
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui 

次の/ etc内のすべてのファイルの完全なリストは/易い:

はまた、このようなファイルの/etc/apt/sources.list.d/raspi.listあり包括的なファイルアクセス権の設定。空のディレクトリは含んでいませんでした。

[email protected]:~ $ ls -alR /etc/apt 
/etc/apt: 
total 40 
drwxr-xr-x 6 root root 4096 Nov 25 17:28 . 
drwxr-xr-x 88 root root 4096 Dec 16 20:25 .. 
drwxr-xr-x 2 root root 4096 Dec 16 20:10 apt.conf.d 
-rw-r--r-- 1 root root 99 Nov 25 17:28 listchanges.conf 
drwxr-xr-x 2 root root 4096 Apr 2 2016 preferences.d 
-rw-r--r-- 1 root root 234 Nov 25 17:22 sources.list 
drwxr-xr-x 2 root root 4096 Nov 25 17:55 sources.list.d 
-rw-r--r-- 1 root root 2424 Nov 25 17:22 trusted.gpg 
-rw-r--r-- 1 root root 1233 Nov 25 17:22 trusted.gpg~ 
drwxr-xr-x 2 root root 4096 Apr 2 2016 trusted.gpg.d 

/etc/apt/apt.conf.d: 
total 28 
drwxr-xr-x 2 root root 4096 Dec 16 20:10 . 
drwxr-xr-x 6 root root 4096 Nov 25 17:28 .. 
-rw-r--r-- 1 root root 643 Apr 2 2016 01autoremove 
-rw-r--r-- 1 root root 981 Nov 25 17:24 01autoremove-kernels 
-rw-r--r-- 1 root root 141 Oct 12 2014 20listchanges 
-rw-r--r-- 1 root root 161 Nov 25 17:30 50raspi 
-rw-r--r-- 1 root root 182 Mar 19 2015 70debconf 

/etc/apt/sources.list.d: 
total 12 
drwxr-xr-x 2 root root 4096 Nov 25 17:55 . 
drwxr-xr-x 6 root root 4096 Nov 25 17:28 .. 
-rw-r--r-- 1 root root 193 Nov 25 17:55 raspi.list 
関連する問題