Windows 8.1とLinuxのデュアルブートに関する質問 – 2つの質問

Windows 8.1とLinuxのデュアルブートに関する質問 – 2つの質問

私は最近私のハードドライブにDebian 8.1をインストールし、ISOイメージをDVD-Rに焼きました。ターミナルからg ++をインストールしようとすると、続行する前にオペレーティングシステムをインストールするDVDをハードドライブに挿入するように求められます。これが私の最初の心配で、これが2番目の心配につながりました。ただし、最初の問題の詳細は機能しません。 CDを入れたところ、本当に大きなエラーメッセージが出ました。私はそれを試しましたが、apt-get update私に同じエラーが発生しました。何かをインストールapt-get installし、要求どおりにDVDを挿入しようとするたびに、このエラーが発生します。エラーは次のとおりです。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils g++-4.9 gcc gcc-4.9 libasan1 libatomic1 libc-dev-bin libc6-dev libcilkrts5
  libgcc-4.9-dev libitm1 liblsan0 libstdc++-4.9-dev libtsan0 libubsan0 linux-libc-dev
  manpages-dev
Suggested packages:
  binutils-doc g++-multilib g++-4.9-multilib gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib make
  autoconf automake libtool flex bison gdb gcc-doc gcc-4.9-multilib gcc-4.9-locales libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
  libcilkrts5-dbg libquadmath0-dbg glibc-doc libstdc++-4.9-doc
The following NEW packages will be installed:
  binutils g++ g++-4.9 gcc gcc-4.9 libasan1 libatomic1 libc-dev-bin libc6-dev libcilkrts5
  libgcc-4.9-dev libitm1 liblsan0 libstdc++-4.9-dev libtsan0 libubsan0 linux-libc-dev
  manpages-dev
0 upgraded, 18 newly installed, 0 to remove and 92 not upgraded.
Need to get 1,008 kB/39.2 MB of archives.
After this operation, 116 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/ jessie/updates/main linux-libc-dev amd64 3.16.7-ckt20-1+deb8u3 [1,008 kB]
Err cdrom://[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie/main manpages-dev all 3.74-1
  Read error - read (5: Input/output error)
Fetched 1,008 kB in 11s (85.8 kB/s)                                                               
E: Failed to fetch cdrom://[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/pool/main/b/binutils/binutils_2.25-5_amd64.deb  Hash Sum mismatch

E: Failed to fetch cdrom://[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/pool/main/m/manpages/manpages-dev_3.74-1_all.deb  Read error - read (5: Input/output error)

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

2番目の質問は、DVD全体を考慮すると、DVDなしでコンピュータをシャットダウンした後に実際にDebianで起動できるかどうかということです。これはうまくいくでしょうか?コンピュータの電源を切ってから再びオンにすると、自動的にDebianに起動しますか?最初にラップトップでコンピュータを実行するのに問題があったので、あまりコンピュータをオフにすることはできませんでした(LenovoはGNU / Linuxに優しくありません)。

ベストアンサー1

問題は、APTがDebian DVDで集中的にパッケージを見つけるように構成されていることです。

source.list ファイルを編集し、すべての行に以下が含まれていることを確認します。CD削除されたかコメントがありました。

source.listファイルの編集

# vi /etc/apt/sources.list

または

# gksu gedit /etc/apt/sources.list

Source.list ファイルは次のとおりです。

 deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:01]/ jessie main

 deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:01]/ jessie main

deb http://httpredir.debian.org/debian/ jessie main 
deb-src http://httpredir.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib 

# jessie-updates, previously known as 'volatile'
deb http://httpredir.debian.org/debian/ jessie-updates main 
deb-src http://httpredir.debian.org/debian/ jessie-updates main

今、犯人についてコメントすると、次のようになります。

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:01]/ jessie main

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:01]/ jessie main

deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie main contrib non-free

...

または削除してください。

deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie main contrib non-free

...

"contrib"と"non-free"リポジトリを追加しました。たとえば、良いグラフィックスアクセラレーションが必要な場合は、すべてのアーキテクチャなどにgcc-docパッケージをインストールする必要があります。 AMD と nVidia 独自のドライバは無料ではなくリポジトリに含まれており、いくつかの GCC マンページが考慮されます。半自由主義GFDL(GNU Free Documentation License)はDebian Free Software Guide(DFSG)と互換性がないため、Debianで提供されています。

2番目の質問については、GRUB2を最初のドライブのMBRにインストールすると、すべてがうまくいくと思います。ただし、安全のためにこのコマンドをrootとして実行してください。

# update-grub

出力にリストされているすべてのオペレーティングシステムを見るとよいでしょう。

おすすめ記事