5.4. Giải đáp thắc mắc trong tiến trình cài đặt

5.4.1. Reliability of optical media

Sometimes, especially with older drives, the installer may fail to boot from an optical disc. The installer may also — even after booting successfully from such disc — fail to recognize the disc or return errors while reading from it during the installation.

Có nhiều nguyên nhân có thể khác nhau của những vấn đề này. Chúng tôi chỉ có thể liệt kê một số vấn đề thường và cung cấp lời đề nghị chung về cách quyết định chúng. Theo bạn sửa.

Khuyên bạn trước tiên thử hai việc rất đơn giản.

  • If the disc does not boot, check that it was inserted correctly and that it is not dirty.

  • If the installer fails to recognize the disc, try just running the option Detect and mount installation media a second time. Some DMA related issues with very old CD-ROM drives are known to be resolved in this way.

If this does not work, then try the suggestions in the subsections below. Most, but not all, suggestions discussed there are valid for CD-ROM and DVD.

If you cannot get the installation working from optical disc, try one of the other installation methods that are available.

5.4.1.1. Vấn đề thường gặp

  • Một số ổ đĩa CD-ROM cũ không hỗ trợ khả năng đọc từ đĩa đã được chép ra ở tốc độ cao bằng bộ ghi CD hiện đại.

  • Some very old CD-ROM drives do not work correctly if direct memory access (DMA) is enabled for them.

5.4.1.2. Cách xem xét và có thể quyết định vấn đề

If the optical disc fails to boot, try the suggestions listed below.

  • Check that your BIOS/UEFI actually supports booting from optical disc (only an issue for very old systems) and that booting from such media is enabled in the BIOS/UEFI.

  • If you downloaded an iso image, check that the md5sum of that image matches the one listed for the image in the MD5SUMS file that should be present in the same location as where you downloaded the image from.

    $ md5sum debian-testing-i386-netinst.iso
    a20391b12f7ff22ef705cee4059c6b92  debian-testing-i386-netinst.iso
    

    Next, check that the md5sum of the burned disc matches as well. The following command should work. It uses the size of the image to read the correct number of bytes from the disc.

    $ dd if=/dev/cdrom | \
    > head -c `stat --format=%s debian-testing-i386-netinst.iso` | \
    > md5sum
    a20391b12f7ff22ef705cee4059c6b92  -
    262668+0 records in
    262668+0 records out
    134486016 bytes (134 MB) copied, 97.474 seconds, 1.4 MB/s
    [records in	số bản ghi gửi đến
    records out	số bản ghi gửi đi
    copied		đã sao chép
    seconds		giây]
    

If, after the installer has been booted successfully, the disc is not detected, sometimes simply trying again may solve the problem. If you have more than one optical drive, try changing the disc to the other drive. If that does not work or if the disc is recognized but there are errors when reading from it, try the suggestions listed below. Some basic knowledge of Linux is required for this. To execute any of the commands, you should first switch to the second virtual console (VT2) and activate the shell there.

  • Chuyển đổi sang VT2 hoặc xem nội dung của /var/log/syslog (dùng nano như là trình soạn thảo) để kiểm tra có thông điệp lỗi dứt khoát không. Sau đó, kiểm tra kết xuất của lệnh dmesg.

  • Check in the output of dmesg if your optical drive was recognized. You should see something like (the lines do not necessarily have to be consecutive):

    ata1.00: ATAPI: MATSHITADVD-RAM UJ-822S, 1.61, max UDMA/33
    ata1.00: configured for UDMA/33
    scsi 0:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ-822S  1.61 PQ: 0 ANSI: 5
    sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
    cdrom: Uniform CD-ROM driver Revision: 3.20
    

    If you don't see something like that, chances are the controller your drive is connected to was not recognized or may be not supported at all. If you know what driver is needed for the controller, you can try loading it manually using modprobe.

  • Check that there is a device node for your optical drive under /dev/. In the example above, this would be /dev/sr0. There should also be a /dev/cdrom.

  • Use the mount command to check if the optical disc is already mounted; if not, try mounting it manually:

    $ mount /dev/hdc /cdrom
    

    Check if there are any error messages after that command.

  • Check if DMA is currently enabled:

    $ cd /proc/ide/hdc
    $ grep using_dma settings
    using_dma      1       0       1       rw
    

    A 1 in the first column after using_dma means it is enabled. If it is, try disabling it:

    $ echo -n "using_dma:0" >settings
    

    Make sure that you are in the directory for the device that corresponds to your optical drive.

  • If there are any problems during the installation, try checking the integrity of the installation media using the option near the bottom of the installer's main menu. This option can also be used as a general test if the disc can be read reliably.

5.4.2. Cấu hình khởi động

Nếu bạn gặp khó khăn, hạt nhân treo cứng trong tiến trình khởi động, không nhận diện ngoại vi thật, hay không nhận diện được ổ đĩa, trước tiên bạn cần phải xem lại các tham số khởi động, như được thảo luận trong Phần 5.3, “Tham số khởi động”.

In some cases, malfunctions can be caused by missing device firmware (see Phần 2.2, “Thiết bị cần thiết phần vững” and Phần 6.4, “Nạp phần vững bị thiếu”).

5.4.3. Phần mềm tổng hợp giọng nói

Nếu phần mềm tổng hợp giọng nói không làm việc, nhiều khả năng là có lỗi trong mạch âm thanh của bạn, thường là do không có trình điều khiển của nó trong trình cài đặt, hay do nó có tên bộ trộn âm không bình thường, mà được đặt mặc định là câm. Bạn nên gửi một báo cáo lỗi có bao gồm kết xuất của những lệnh sau, chạy từ hệ thống Linux có âm thanh làm việc tốt trên cùng máy (ví dụ từ một đĩa CD)

  • dmesg

  • lspci

  • lsmod

  • amixer

5.4.4. Vấn đề cài đặt 32-bit PC thường

Có một số vấn đề cài đặt thường có thể được giải quyết hay được tránh bằng cách gởi đối số khởi động riêng cho trình cài đặt.

Nếu màn hình bắt đầu hiển thị ảnh lạ trong khi hạt nhân khởi động, v.d. màn hình hoàn toàn trắng, hoàn toàn đèn hay có rác điểm ảnh màu sắc, có lẽ hệ thống chứa thẻ ảnh động không chuyển đổi được sang chế độ bộ đệm khung. Trong trường hợp này, bạn có thể nhập tham số khởi động fb=false (bộ đệm khung là sai) để tắt bàn điều khiển vùng đệm khung. Chỉ một bộ ngôn ngữ bị giảm sẽ sẵn sàng trong tiến trình cài đặt, do tính năng bàn điều khiển bị hạn chế. Xem Phần 5.3, “Tham số khởi động” để tìm chi tiết.

5.4.4.1. Hệ thống đông đặc trong giai đoạn cấu hình PCMCIA

Some very old laptop models produced by Dell are known to crash when PCMCIA device detection tries to access some hardware addresses. Other laptops may display similar problems. If you experience such a problem and you don't need PCMCIA support during the installation, you can disable PCMCIA using the hw-detect/start_pcmcia=false boot parameter. You can then configure PCMCIA after the installation is completed and exclude the resource range causing the problems.

Hoặc bạn có thể khởi động trình cài đặt trong chế độ nhà chuyên môn. Lúc đó, bạn sẽ được nhắc nhập các tùy chọn phạm vị tài nguyên cần thiết cho phần cứng đó. Chẳng hạn, nếu bạn có máy tính xách tay kiểu Dell nêu trên, bạn nên nhập đoạn exclude port 0x800-0x8ff (loại trừ cổng số 0x800-0x8ff). Cũng có danh sách một số tùy chọn phạm vị tài nguyên thường trong tiết đoạn thiết lập tài nguyên hệ thống của tài liệu PCMCIA Thế Nào. Ghi chú rằng bạn cần phải bỏ dấu phẩy, nếu có, khi nhập giá trị này vào trình cài đặt.

5.4.5. Giải thích thông điệp khởi chạy hạt nhân

Trong tiến trình khởi động, có lẽ bạn thấy nhiều thông điệp dạng không tìm thấy cái gì , hay không có cái gì, không thể khởi tạo cái gì , ngay cả bản phát hành trình điều khiển này phụ thuộc vào cái gì . Phần lớn thông điệp này vô hại. Bạn thấy chúng chỉ vì hạt nhân của hệ thống cài đặt được xây dựng để chạy trên các máy tính có nhiều thiết bị ngoại vi khác nhau. Không có máy tính riêng lẻ có tất cả các thiết bị ngoại vi, vì vậy hệ điều hành có thể hiển thị một số thông điệp lỗi trong khi tìm ngoại vi không có. Có lẽ bạn cũng xem hệ thống tạm ngừng một chút. Có xảy ra trong khi nó đợi thiết bị đáp ứng, nhưng thiết bị đó không nằm trên hệ thống của bạn. Nếu tiến trình khởi động hệ thống chạy quá lâu, bạn có thể tạo một hạt nhân riêng về sau (xem Phần 8.5, “Biên dịch hạt nhân mới”).

5.4.6. Thông báo vấn đề cài đặt

If you get through the initial boot phase but cannot complete the install, the menu option Save debug logs may be helpful. It lets you store system error logs and configuration information from the installer on a storage medium, or download them using a web browser. This information may provide clues as to what went wrong and how to fix it. If you are submitting a bug report, you may want to attach this information to the bug report.

Thông điệp cài đặt thích hợp khác nằm trong thư mục /var/log/ trong khi cài đặt, rồi trong thư mục /var/log/installer/ sau khi máy tính đã khởi động vào hệ thống mới được cài đặt.

5.4.7. Đệ trình báo cáo cài đặt

Nếu bạn vẫn còn gặp khó khăn, xin hãy đệ trình báo cáo cài đặt. Chúng tôi khuyên bạn gởi một báo cáo cài đặt, thậm chí nếu tiến trình cài đặt là thành công, để tập hợp càng nhiều thông tin càng có thể về các cấu hình phần cứng khác nhau. [Dịch giả: nếu bạn gặp khó khăn viết tiếng Anh, bạn viết bằng tiếng Việt và gởi báo cáo cho Nhóm Việt Hoá Tự Do nhé. Chúng tôi sẽ dịch cho bạn.]

Ghi chú rằng báo cáo cài đặt của bạn sẽ được xuất bản trong Hệ Thống Theo Dõi Lỗi Debian (BTS) và được chuyển tiếp cho hộp thư chung công cộng. Hãy đảm bảo bạn sử dụng một địa chỉ thư điện tử cũng công cộng.

If you have a working Debian system, the easiest way to send an installation report is to install the installation-report and reportbug packages (apt install installation-report reportbug), configure reportbug as explained in Phần 8.4.2, “Gửi thư ra hệ thống”, and run the command reportbug installation-reports.

Alternatively you can use this template when filling out installation reports, and file the report as a bug report against the installation-reports pseudo package, by sending it to .

Package: installation-reports

Boot method: <How did you boot the installer? CD/DVD? USB stick? Network?>
Image version: <Full URL to image you downloaded is best>
Date: <Date and time of the install>

Machine: <Description of machine (eg, IBM Thinkpad R32)>
Processor:
Memory:
Partitions: <df -Tl will do; the raw partition table is preferred>

Output of lspci -knn (or lspci -nn):

Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [ ]
Detect network card:    [ ]
Configure network:      [ ]
Detect media:           [ ]
Load installer modules: [ ]
Detect hard drives:     [ ]
Partition hard drives:  [ ]
Install base system:    [ ]
Clock/timezone setup:   [ ]
User/password setup:    [ ]
Install tasks:          [ ]
Install boot loader:    [ ]
Overall install:        [ ]

Comments/Problems:

<Description of the install, in prose, and any thoughts, comments
      and ideas you had during the initial install.>

In the bug report, describe what the problem is, including the last visible kernel messages in the event of a kernel hang. Describe the steps that you did which brought the system into the problem state.