
Ubuntu日本語フォーラム

ログインしていません。
sudo でのアップデートができなくなりました。
sudo apt-get updateと打つと、以下のように出ます。
E: 不正なエントリ 51 行目 list ファイル /etc/apt/sources.list (Component)
E: ソースのリストを読むことができません。
検索して解決を試みましたが、上手く行かずです。
初心者のためご助言頂けると助かります。
宜しくお願いいたします
オフライン
/etc/apt/sources.list の 51行目に問題があると表示されています。
その前後を提示してもらえれば的確な解決柵が提案できると思います。
オフライン
ry様
ご返信ありがとうございます。
Source listコピペしました。
どうぞ宜しくお願いいたします。
## 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.
## 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 bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports restricted main multiverse universe
deb https://dl.winehq.org/wine-builds/ubuntu/ main
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main
オフライン
ry様
失礼しました。
31−53行目を貼り付けました。(再度貼り付けます)
adobe airをインストールしたくて、wineを入れようとしたのですが上手できませんでした。
それが原因かもしれません。
お手数おかけしますが、sudo apt-get updateが使えるように解決方法ご教示頂けると助かります。
宜しくお願いいたします。
## 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.
## 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 bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports restricted main multiverse universe
deb https://dl.winehq.org/wine-builds/ubuntu/ main
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main
オフライン
エラーメッセージの通り、51 行目の表記がおかしいですね。
フレーバー (バージョン) の指定が抜けています。
ubuntu のバージョンは 18.04 でいいですか。
18.04 だとして 51 行目を正しく直すとその下の 52 行目とまったく同じになるので、この行そのものが不要です。
他にも 16.04 (xenial) 向けの行と、18.04 (bionic) 向けの行が混ざっているのが気になります。
特別な理由が無い限りはどちらか片方に揃えるべきです (xenial は deb-src だけみたいだから大した影響はなさそうだが)。
オフライン
ry様
ありがとうございます。
Ubuntu入門ガイドの付録についてたDVD(16.04)をインストールして、みようみまねで18.04.3 LTSにアップグレードしました。
そのあたりも影響しているのでしょうか。。
色々調べてみたのですが、エラー修正の方法も分からずで、途方に暮れています。
アドバイス頂けると助かります。
宜しくお願いいたします。
オフライン
アップグレートはトラブルの発生が多いので、基本は必要なデータをバックアップして、クリーンインストールなのです。
連休明けには、Japanese Teamの日本語Remix Ubuntu20.04LTSがリリースされますので、ダウンロードしてインストールしましょう。
http://www.ubuntulinux.jp/
質問文にアップグレードした旨を記載すれば、苦労しなくても良かったのに・・・
オフライン