Добавить
Уведомления

Ubuntu: How can I switch a 32-bit installation to a 64-bit one? (10 solutions!)

Ubuntu: How can I switch a 32-bit installation to a 64-bit one? The Question: I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes, I would like to switch to 64-bit without having to reinstall the OS. This is one of the https://wiki.ubuntu.com/MultiarchSpec#User_stories: Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade. However, when trying to follow the instructions in there, I cannot find any 64- bit version of dpkg or apt. Did this user story got implemented in a different way in the final spec, or do I need to do something differently? In short, how can I switch my 32-bit installation to 64-bit? Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful): == This solution helped 1 person == Good question. I have had a hunt around and other than the user story you quote, I can't find any details on how to do this. All the documentation indicates it's only for running 32-bit applications on an already 64-bit OS. However, if you're willing to experiment, you could try the following (derived from my link at [1]) echo foreign-architecture amd64 | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch sudo apt-get install linux-image:amd64 I think you will have to start off with an amd64 kernel, as the 32-bit one won't be able to run any 64-bit binaries. However the 64-bit one should run 32- bit binaries (if ia32-libs is installed?). If you get the 64bit kernel installed and booted, you can go from there to install apt:amd64, then follow the user-story as previously quoted, ubuntu- minimal, ubuntu-desktop, etc. After apt:amd64 is installed, I think you can remove the foreign-architecture line since you have essentially switched over at that point. Disclaimer: I have no 32bit system to test so this is all guesswork. Good luck! [1] https://wiki.ubuntu.com/OneiricOcelot/TechnicalOverview/ Beta #Improved_handling_of_32-bit_compatibility_on_amd64_systems With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user Wladimir Mutel (https://askubuntu.com/users/766151), user VJ- (https://askubuntu.com/users/71621), user ubuntufan (https://askubuntu.com/users/71975), user tumbleweed (https://askubuntu.com/users/32290), user realkstrawn93 (https://askubuntu.com/users/124967), user muru (https://askubuntu.com/users/158442), user Luis Alvarado (https://askubuntu.com/users/7035), user karel (https://askubuntu.com/users/94914), user Eliah Kagan (https://askubuntu.com/users/22949), user David Planella (https://askubuntu.com/users/9781), user Daniel K. (https://askubuntu.com/users/413022), user Cedric Knight (https://askubuntu.com/users/392052), user Caesium (https://askubuntu.com/users/34401), user Braiam (https://askubuntu.com/users/169736), and the Stack Exchange Network (http://askubuntu.com/questions/81824). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything looks amiss at Roel D.OT VandePaar A.T gmail.com.

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

Ubuntu: How can I switch a 32-bit installation to a 64-bit one? The Question: I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes, I would like to switch to 64-bit without having to reinstall the OS. This is one of the https://wiki.ubuntu.com/MultiarchSpec#User_stories: Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade. However, when trying to follow the instructions in there, I cannot find any 64- bit version of dpkg or apt. Did this user story got implemented in a different way in the final spec, or do I need to do something differently? In short, how can I switch my 32-bit installation to 64-bit? Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful): == This solution helped 1 person == Good question. I have had a hunt around and other than the user story you quote, I can't find any details on how to do this. All the documentation indicates it's only for running 32-bit applications on an already 64-bit OS. However, if you're willing to experiment, you could try the following (derived from my link at [1]) echo foreign-architecture amd64 | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch sudo apt-get install linux-image:amd64 I think you will have to start off with an amd64 kernel, as the 32-bit one won't be able to run any 64-bit binaries. However the 64-bit one should run 32- bit binaries (if ia32-libs is installed?). If you get the 64bit kernel installed and booted, you can go from there to install apt:amd64, then follow the user-story as previously quoted, ubuntu- minimal, ubuntu-desktop, etc. After apt:amd64 is installed, I think you can remove the foreign-architecture line since you have essentially switched over at that point. Disclaimer: I have no 32bit system to test so this is all guesswork. Good luck! [1] https://wiki.ubuntu.com/OneiricOcelot/TechnicalOverview/ Beta #Improved_handling_of_32-bit_compatibility_on_amd64_systems With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user Wladimir Mutel (https://askubuntu.com/users/766151), user VJ- (https://askubuntu.com/users/71621), user ubuntufan (https://askubuntu.com/users/71975), user tumbleweed (https://askubuntu.com/users/32290), user realkstrawn93 (https://askubuntu.com/users/124967), user muru (https://askubuntu.com/users/158442), user Luis Alvarado (https://askubuntu.com/users/7035), user karel (https://askubuntu.com/users/94914), user Eliah Kagan (https://askubuntu.com/users/22949), user David Planella (https://askubuntu.com/users/9781), user Daniel K. (https://askubuntu.com/users/413022), user Cedric Knight (https://askubuntu.com/users/392052), user Caesium (https://askubuntu.com/users/34401), user Braiam (https://askubuntu.com/users/169736), and the Stack Exchange Network (http://askubuntu.com/questions/81824). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything looks amiss at Roel D.OT VandePaar A.T gmail.com.

, чтобы оставлять комментарии