Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Upgrading Ubuntu from Dapper to Edgy with apt-get Nâng cấp từ Ubuntu Dapper để edgy với apt-get

Important Note : According to the Ubuntu Help: Lưu ý quan trọng: Theo Trợ giúp Ubuntu:

Please note – this method is much less reliable. Xin lưu ý - phương pháp này là đáng tin cậy ít hơn nhiều. If you use this method, you MUST be prepared to fix problems manually, such as packages being unexpectedly removed. Nếu bạn sử dụng phương pháp này, bạn phải được chuẩn bị sẵn sàng để sửa vấn đề một cách thủ công, ví dụ như các gói bị loại bỏ bất ngờ. Using Sử dụng Update Manager Cập nhật đốc is likely to be much less problematic. có khả năng là ít hơn nhiều vấn đề.

Before you read this HowTo, you may want to consider installing using the Trước khi bạn đọc Howto này, bạn có thể muốn xem xét việc cài đặt bằng cách sử dụng GUI with Update Manager GUI với Cập nhật đốc , which is probably a simpler method for regular users. , Mà có lẽ là một phương pháp đơn giản cho người sử dụng thường xuyên.

If you are a power user, then let's move on. Nếu bạn là một người sử dụng điện, sau đó hãy di chuyển trên. First, we'll need to install ubuntu-desktop if it's not already installed because otherwise there will be a dependencies problem. Trước tiên, chúng tôi sẽ cần phải cài đặt ubuntu-desktop, nếu nó chưa được cài đặt bởi vì nếu không sẽ có một vấn đề phụ thuộc.

sudo apt-get install ubuntu-desktop sudo apt-get install ubuntu-desktop

Now we'll need to run a command that will change all the occurrences of dapper to edgy in our sources.list file. Bây giờ chúng ta sẽ cần phải chạy lệnh đó sẽ thay đổi tất cả các lần xuất hiện của đoan để edgy trong tập tin sources.list của chúng tôi. If you aren't familiar, sources.list is the file that points to your list of possible upgrades and packages. Nếu bạn không quen thuộc, sources.list là điểm tập tin đó vào danh sách của bạn có thể nâng cấp và các gói. For windows users, you can think of it as the file that points to Windows Update. Đối với người dùng cửa sổ, bạn có thể nghĩ về nó như một tập tin mà điểm đến Windows Update. Of course, if you are a windows user, you should really install with the Update Manager utility linked above. Tất nhiên, nếu bạn là một người sử dụng cửa sổ, bạn thực sự cần cài đặt với các tiện ích quản lý Cập nhật liên kết ở trên.

sudo sed -e 's/\sdapper/ edgy/g' -i /etc/apt/sources.list sudo sed-e 's / \ sdapper / edgy / g'-i / etc / apt / sources.list

Now we'll perform the actual upgrades: Bây giờ chúng tôi sẽ thực hiện nâng cấp thực tế:

sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get update & & sudo apt-get dist-upgrade

The && part of the command means that the second command will run after the first as long as the first command completes successfully. Các & & một phần của lệnh có nghĩa là các lệnh thứ hai sẽ chạy sau khi người đầu tiên miễn là lệnh đầu tiên hoàn tất thành công.

Now we'll finish up the upgrade with a few more commands: Bây giờ chúng ta sẽ kết thúc với việc nâng cấp thêm một vài lệnh:

sudo apt-get -f install sudo apt-get-f install

sudo dpkg –configure -a sudo dpkg-configure-a

Note that the –configure is actually two dashes. Lưu ý rằng các cấu hình, thực sự là hai dấu gạch ngang. For some reason Wordpress makes it look like a single dash. Đối với một số lý do Wordpress làm cho nó trông giống như một gạch ngang duy nhất.
Reboot, and you are all done! Khởi động lại, và bạn là tất cả đã hoàn tất!

Note: I've seen some notes that this upgrade doesn't work very well for people running Ubuntu as a Guest in VMWare with VMWare tools installed. Lưu ý: Tôi đã nhìn thấy một số lưu ý rằng điều này không làm việc nâng cấp rất tốt cho những người đang chạy Ubuntu như là một khách trong VMWare với các công cụ VMWare cài đặt. I tested it out and came to the same conclusion, no fix as of yet. Tôi thử nghiệm nó ra và đến cùng một kết luận, không sửa chữa như của nêu ra.

Update: Cập nhật:

If upgrading gives you the error message “failed to load module GLcore”, you will want to run these commands. Nếu nâng cấp cho bạn các thông báo lỗi "không tải GLcore module", bạn sẽ muốn chạy các lệnh này. Thanks for this tip to Thanks for this tip để Biogeek Biogeek in the comments below. trong các ý kiến dưới đây.

apt-get install xfs apt-get install xfs
apt-get install –reinstall xfonts-base apt-get install-xfonts cài đặt lại-base

This article was originally written on 10/3/06 Tagged with: Bài viết này ban đầu được viết ngày 10/3/06 Tagged với: Adding Software Thêm phần mềm , , SysAdmin Sysadmin , , Ubuntu Ubuntu

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (5) Comment (5)

  1. Foxblood Foxblood

    How can you tell if the upgrade was successful? Làm thế nào bạn có thể cho biết nếu được nâng cấp thành công?

  2. BioGeek BioGeek

    Hmm, this broke my installation. Hmm, điều này đã phá vỡ tiến trình cài đặt của tôi. I got the errors “failed to load module GLcore” and “could not open default font fixed”. Tôi đã nhận lỗi "không tải GLcore module" và "không thể mở phông chữ mặc định cố định". Bug hunting via Lynx brougth the Lỗi săn bắn qua Lynx brougth các solution giải pháp : :

    apt-get install xfs (which surprisingly did not appear to be already installed!) apt-get install xfs (mà đáng ngạc nhiên không được xuất hiện đã được cài đặt!)
    apt-get install –reinstall xfonts-base apt-get install-xfonts cài đặt lại-base

    after that startx brougth me my GUI back. brougth startx sau đó tôi trở lại giao diện của tôi.

  3. Eduardo de Oliveira Padoan Eduardo de Oliveira Padoan

    Prefer aptitude. Thích aptitude. And use th es flag to simulate the action and see if nothing gets broken before. Và sử dụng thứ es cờ để mô phỏng những hành động và xem nếu không có gì trước khi bị hỏng.

  4. wes WES

    Please change your “sudo dpkg –configure -a” with the working version “sudo dpkg –configure -a” Xin vui lòng thay đổi dpkg sudo "của bạn cấu hình-a" với phiên bản làm việc dpkg sudo "-cấu hình-a"

    I'm sure one or two may not realize that this is required and waste many unrecoverable moments of their lives with a doomed command. Tôi chắc rằng một hoặc hai có thể không nhận ra rằng điều này là cần thiết và chất thải unrecoverable nhiều khoảnh khắc của cuộc sống của họ với một lệnh doomed.

  5. The Geek The Geek

    wes, WES,

    Thanks for the head's up on that. Cảm ơn đầu của lên trên đó. Turns out Wordpress was converting it into a single dash. Biến ra Wordpress được chuyển đổi nó thành một gạch ngang duy nhất. Very annoying. Rất khó chịu.

    Geek Geek


Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.