Transplanting Debian HDD From 32-bit > 64-bit Notebook

483
tjt263

Okay so my old 32-bit notebook got old and died.
I preserved the old HDD (with bootable Debian OS).
I bought a newer 64-bit notebook and gave it the old HDD.
It worked perfectly for a long time and continues to do so.
The issue I'm having is with sudo apt-get dist-upgrade:

user@Debian:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libc-dev-bin : Depends: libc6 (< 2.14) but 2.19-18 is installed libc6-dev : Depends: libc6 (= 2.13-38+deb7u8) but 2.19-18 is installed libc6-i686 : PreDepends: libc6 (= 2.13-38+deb7u8) but 2.19-18 is installed locales : Depends: libc-bin (> 2.19) but 2.13-38+deb7u8 is installed E: Unmet dependencies. Try using -f. 

Running sudo apt-get -f install returns similar errors.
I feel like these errors must stem from the change in architecture.
How can I specify to use i386 or amd64 packages instead of i686?

0
Размещенный ответ правильный. Но какова была цель в вашем желании сохранить старый жесткий диск? Данные? Программы? И то и другое? Легкость восстановления и работы? Потому что чистая установка ОС - единственный способ решить эту проблему. но важно то, что вы спасаете от старых усилий. JakeGould 8 лет назад 0

3 ответа на вопрос

1
Thomas Weinbrenner

I don't think your problems are a result of your notebook change. You still have a i386 Debian on an 64bit notebook - which is ok. There should be no problems because of this.

Your only problem is that you are upgrading from wheezy to jessie and some dependencies don't resolve. That happens and it is no big problem.

Remove those few offending packages, then upgrade. If you really need them, install them later again.

libc-dev-bin and libc6-dev are development binaries, libraries and header files. You need them to compile packages, you certainly don't need them during the upgrade.

locales will probably upgrade without problems once you removed the others.

libc6-i686 is not another architecture - it is a part of the i386, but these libraries are optimized for i686 machines. You can remove them without problems.

So remove libc-dev-bin,libc6-dev and libc6-i686 and try to upgrade again - it should probably work.

Это тип ответа, который я искал. Как бы вы порекомендовали удалить оскорбительные файлы? tjt263 8 лет назад 0
Кроме того, что вы имеете в виду _i686_ это не другая архитектура? Насколько я знаю, это совершенно другой чип. Я никогда не понимал эти обозначения с точки зрения программного обеспечения. tjt263 8 лет назад 0
Удалите эти файлы с помощью `sudo apt-get remove libc-dev-bin libc6-dev libc6-i686` Если некоторые другие пакеты зависят от них (возможно, другой` -dev`-Package), удалите их тоже. Затем обновите `sudo apt-get dist-upgrade` Thomas Weinbrenner 8 лет назад 0
I686 - это процессор 6-го поколения семейства [x86] (https://en.wikipedia.org/wiki/X86). Это 32-битный процессор, поэтому, если вы хотите использовать его с Debian, вы должны использовать архитектуру Debian i386. У них только что была специальная версия libc, оптимизированная для процессоров i686. Thomas Weinbrenner 8 лет назад 0
0
acejavelin

apt-get will always download the correct version for your installed OS. You can’t upgrade from 32-bit to 64-bit, you need to do a clean install. Backup your /home folder and do a clean install then copy your /home folder back.

Хотя я согласен с общим духом этого ответа - 32-битная ОС в 64-битной системе означает стирание и переустановку - в старой системе может быть установлено больше, чем просто содержимое каталога `/ home`. JakeGould 8 лет назад 0
Действительно, но переход с 32-разрядного на 64-разрядный режим также потребует переустановки приложений. Хорошо обслуживаемая и управляемая система будет хранить все критические данные в домашнем каталоге пользователей ... Я предполагаю, что это однопользовательская система, поэтому большинство других данных не будут очень актуальными, просто раздражает их настройку. acejavelin 8 лет назад 1
0
Tobu

As Thomas said, the upgrade issues aren't related to your notebook change (although I would personally choose to crossgrade, that's for people who are comfortable with debian administration).

You can deal with upgrade errors by switching to aptitude. aptitude will come up with many solutions to safely upgrade. Replace apt-get invocations with aptitude ones:

sudo aptitude dist-upgrade 

If the first solution removes many packages, type n to skip it, until you find one that only removes a handful of -dev packages.