Siduction Forum > Announcements / Ankündigungen (DE / EN)

Migration from KDE-Next to Debian KDE

(1/7) > >>

devil:
This how-to does not work anymore, since for pressing reasons the kde-next repo was emptied. If you have not done the conversion yet, a possible way to do the transition could be: http://forum.siduction.org/index.php?topic=6072.msg50017#msg50017

As Santa will not package KDE for siduction anymore, we are to help users back from KDE-Next to Debian KDE. As this is beyond the normal capabilities of APT and DPKG in a simple command or two, we came up with a routine to convert users back. We tried this with four installs, three of which were blocked in dist-upgrade already. We had success in all cases, but it is still a bit of unchartered waters, since every install is different.


So you might (and probably will) get stuck somewhere during the process. You might also have to repeat commands as you move on. If you get stuck, apt-get -f install is your first and trusted friend. If packages block you from moving on, you might want to use dpkg --purge <package> or, if that does not do the trick, in this case even dpkg --force-all --purge <package>. Be sensible about this and think before you act. If in doubt, ask us.


If packages are supposed to be removed, write them down for a later reinstall (should not be more than a handfull) If half the system is to go, you better come see us on IRC to see if we can solve this. Be sure to copy all relevant info from the konsole while you can, so we have a chance to get to the bottom of things. You can paste the output to
http://paste.debian.net beforehand to safe time.


All of this might sound like it's a complicated process. For most users it should more or less run through and you'll be done in an hour or less, depending on how much stuff needs to be reinstalled after removing all KDE-Next packages. And as always: Back things up that you want to keep. It would be nice if all users of lkde-next could migrate back in a timely manner, so that no eventualities, that we cannot control sneak into the process (like another transition e.g.)



Dieses how-to funktioniert nicht mehr, da aus technischen Gründen das kde-next Repo geleert wurde. Falls ihr die Umwandlung noch nicht vollzogen habt, wäre Folgendes ein gangbarer Weg: http://forum.siduction.org/index.php?topic=6072.msg50017#msg50017

Da Santa KDE nicht mehr für siduction paketieren wird, wollen wir unsere User mit KDE-Next-Installationen zu Debian KDE zurückführen. Da das über die normalen Fähigkeiten von APT und DPKG mit ein oder zwei Befehlen hinausgeht, haben wir eine Routine entworfen, die Schritt für Schritt zum Ziel führt. Wir haben dies mit vier Installationen getestet, von denen drei bereits im Dist-Upgrade feststeckten. Bei allen vier Installationen gelang die Rückführung, jedoch ist, da jede Installation individuell ist, möglicherweise mit Hängern zu rechnen, die wir nicht genau voraussehen können.


Sollte der Prozess hängen, ist als erste Maßnahme der zuletzt genutzte Befehl zu wiederholen. Danach ist apt-get -f install das Mittel der Wahl, auch mehrmals wenn nötig. Sollten Pakete den weiteren Verlauf blockieren, so kann dpkg --purge <Paket> oder in diesem speziellen Fall auch dpkg --force-all --purge <Paket> eingesetzt werden, gefolgt von apt-get -f install. Seid sensibel und denkt bitte mit. Bei unklaren Situationen fragt uns.


Sollen Pakete entfernt werden, schreibt diese auf, um sie später neu zu installieren. Es sollten nicht mehr als eine Handvoll sein. Soll das halbe System entfernt werden, kommt bitte in den IRC, damit wir der Sache auf den Grund gehen können. Dazu brauchen wir möglichst viel Ausgaben aus der Konsole, die ihr schon vorab nach http://paste.debian.net pasten könnt.


Das mag jetzt kompliziert klingen, aber für die allermeisten User sollte der Prozess problemlos sein. Wir können aber leider nicht alles vorausehen. Der Prozess sollte, je nachdem wie viele Pakete neu installiert werden müssen, nicht mehr als eine Stunde in Anspruch nehmen. Zudem gilt, wie immer: Backt up, was ihr behalten wollt. Zudem wäre es schön, wenn möglichst alle User mit KDE-Next die Umstellung zeitnah vornehmen, sodass sich keine Eventualitäten (wie etwa eine weitere Transition) einschleichen, die wir nicht in unter Kontrolle haben.




Get rid of kde-next


And now to the practical side of things / Und nun zur Praxis:


Preparation / Vorbereitung:



--- Code: ---apt-get update
--- End code ---

--- Code: ---apt-get install apt
--- End code ---

--- Code: ---mkdir cleanup; cd cleanup
--- End code ---


Identifying and listing KDE-Next packaging / KDE-Next-Pakete identifizieren und auflisten:

--- Code: ---dpkg --get-selections | awk '/\011install/ {print $1}' | while read name; do apt-cache madison $name | head -n 1; done | grep kdenext
--- End code ---
Check if the result looks reasonable / Überprüfe das Resultat auf Stimmigkeit:

--- Code: ---dpkg --get-selections | awk '/\011install/ {print $1}' | while read name; do apt-cache madison $name | head -n 1; done | grep kdenext | awk -F '|' '{ print $1 }' > replace.txt
--- End code ---
After the 2nd command your result is saved to replace.txt / Nach dem 2. Befehl ist die Liste der Pakete in replace.txt gespeichert


Now here is the heavy lifting / Jetzt folgt die eigentliche Arbeit:

--- Code: ---dpkg --force-all --purge qml-module-org-kde-activities
--- End code ---


--- Code: ---for i in `cat replace.txt`; do  apt-get download $i/sid; done
--- End code ---

--- Code: ---dpkg --force-all --install *.deb
--- End code ---




Cleaning up / Aufräumen:

--- Code: ---nano siduction.list...
--- End code ---
Comment all kdenext-related entries in your sources.list / Alle Kdenext-Einträge in den Quellen auskommentieren
Check if you have a separate kdenext.list and comment the lines there / Prüfe ob es eine separate kdenext.list gibt und kommentiere auch dort die Zeilen aus

--- Code: ---apt update
--- End code ---
repeat:
--- Code: ---apt install -f
--- End code ---
repeat:
--- Code: ---apt upgrade
--- End code ---
repeat:
--- Code: ---apt dist-upgrade
--- End code ---


Make sure, kde-standard or kde-full is installed / Sicherstellen, das kde-standard oder kde-full installiert ist:

--- Code: ---apt install kde-standard
--- End code ---
or

--- Code: ---apt install kde-full
--- End code ---



Manualy delete deprecated packages / Manuell verwaiste Pakete entfernen:

--- Code: ---apt-show-versions | grep available
--- End code ---


Done. that was easy, was it? :)
Fertig. Hat doch garnicht weh getan :)

mylo:
Hi,

feedback:


--- Code: ---qml-module-org-kde-activites
--- End code ---
could not be deinstalled as was not installed

--- Code: ---for i in.....download $i/sid...
--- End code ---

provides several

--- Code: ---W cant drop privilegesfor downloading as file /root/cleanup/*
--- End code ---

and

--- Code: ---E Veröffentlichung sid für * konnte nicht gefunden werden
--- End code ---
telling "publication sid for * could not be found[/code]
Now where I stuck:


--- Code: ---apt install kde-standard | kde-full
--- End code ---
impossible:

--- Code: ---E konnte Sperre von /var/lib/dpkg/list nicht bekommen open 11...
E Sperren des Adminverzeichnisses nicht möglich...
sowie
apt does not have a stable CLI interface. Use with caution in script
--- End code ---
apt cache policy shows nothing installed.
Tested all the other hints mentioned including forcing, did also a reboot, same situation.

Edit:

--- Code: ---ls -ld /var/lib/dpkg
provides
drwxr-xr-x 7 root root..
--- End code ---


.../list seems not to be existing.


--- Code: ---pol kde-full kde-standard
kde-full:
  Installiert:           (keine)
  Installationskandidat: 5:90
  Versionstabelle:
     5:90 500
        500 [url=http://http.debian.net/debian]http://http.debian.net/debian[/url] unstable/main amd64 Packages
        500 [url=http://http.debian.net/debian]http://http.debian.net/debian[/url] unstable/main i386 Packages
kde-standard:
  Installiert:           (keine)
  Installationskandidat: 5:90
  Versionstabelle:
     5:90 500
        500 [url=http://http.debian.net/debian]http://http.debian.net/debian[/url] unstable/main amd64 Packages
        500 [url=http://http.debian.net/debian]http://http.debian.net/debian[/url] unstable/main i386 Packages

--- End code ---

System is running in init 5...and the replace.txt has 0 bytes.

mylo:
Hi devil,

my processes are:


--- Code: ---http://paste.debian.net/hidden/e9789b67/
--- End code ---

Could not find a suspicious one.

absolut:
mylo,

1. for the first three steps the kdenext repo has to be active, only after that it is being disabled

2. i did the "Identifying and listing KDE-Next packaging" step as user in init 5, downloading the packages to user home. had no warnings

3. i did the heavy lifting and apt dist-upgrade in init 3, obviously as root

4. apt install kde-standard or kde-full failed for me:

--- Code: ---# LANG=C apt install kde-standard
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kde-standard : Depends: akregator (>= 4:4.11.3) but it is not going to be installed
                Depends: kaddressbook (>= 4:4.11.3) but it is not going to be installed
                Depends: kmail (>= 4:4.11.3) but it is not going to be installed
                Depends: knotes (>= 4:4.11.3) but it is not going to be installed
                Depends: korganizer (>= 4:4.11.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
--- End code ---

whereby there are no held packages (the output below is empty):

--- Code: ---# LANG=C apt-mark showhold

--- End code ---

i wonder why kdepim is not installable (i removed it some time ago, because i did not use it). may it be due to the fact that the version is 4 instead of 5, and mismatches the kde5 current version?

mylo:
Hi absolut,

I did all three as prescribed, seems the prob is somewhere. Good to know for me, that I am not the only one.
However I have an other effect (may be) on top. No holds also. What says ap-cahe policy to this on your inst?

Navigation

[0] Message Index

[#] Next page

Go to full version