apt-get dist-upgrade uninstalled most of KDE

2017-08-16 Thread nobrin
Hello,

I just upgraded my system (Debian sid with main, contrib, non-free) to
the most recent unstable version, running "apt-get update" and
"apt-get dist-upgrade".

Unfortunately, this uninstalled most of KDE, including
"plasma-desktop", "kde-plasma-desktop", "konsole",  and many packages
starting with "libkf5" and "libqt5".
I've enclosed the relevant part of /var/log/apt/history.log at the end
of this email.

The last "apt-get dist-upgrade" was from two days ago, so I suspect
some major change going with sid packages. Is it the case? Any ETA?

(Is there any way to undo the last apt-get? Unfortunately, I don't
have all the removed packages still in /var/cache/apt/archives)

Thanks!
Marco



Re: apt-get dist-upgrade uninstalled most of KDE

2017-08-16 Thread nobrin
Start-Date: 2017-08-16  11:30:15
Commandline: apt-get dist-upgrade
Requested-By: marco (1000)
Install: libx265-130:amd64 (2.5-2, automatic), libc-ares2:amd64
(1.13.0-2, automatic), gnupg-utils:amd64 (2.1.23-2, automatic),
gpg-wks-client:amd64 (2.1.23-2, automatic), gnupg-l10n:amd64
(2.1.23-2, automatic), gpg-wks-server:amd64 (2.1.23-2, automatic),
gpg:amd64 (2.1.23-2, automatic), gnuplot-x11:amd64 (5.0.6+dfsg1-1,
automatic), libdirectfb-1.7-7:amd64 (1.7.7-5, automatic),
gpg-agent:amd64 (2.1.23-2, automatic), gpgconf:amd64 (2.1.23-2,
automatic), gpgsm:amd64 (2.1.23-2, automatic)
Upgrade: vlc-bin:amd64 (2.2.6-4, 2.2.6-4+b1), tex-common:amd64 (6.07,
6.08), vlc-plugin-video-output:amd64 (2.2.6-4, 2.2.6-4+b1),
libqgsttools-p1:amd64 (5.7.1~20161021-2, 5.9.1-2), libavformat57:amd64
(7:3.3.3-2, 7:3.3.3-3), libpangoft2-1.0-0:amd64 (1.40.6-1, 1.40.9-1),
libavfilter6:amd64 (7:3.3.3-2, 7:3.3.3-3),
qt5-image-formats-plugins:amd64 (5.7.1~20161021-2, 5.9.1-1),
qml-module-qtquick-window2:amd64 (5.7.1-2+b2, 5.9.1-5),
libqt5test5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
qml-module-qtwebkit:amd64 (5.7.1+dfsg-1, 5.9.1+dfsg-2), ffmpeg:amd64
(7:3.3.3-2, 7:3.3.3-3), vim-common:amd64 (2:8.0.0197-5, 2:8.0.0946-1),
gnupg-agent:amd64 (2.1.18-8, 2.1.23-2), vlc-plugin-samba:amd64
(2.2.6-4, 2.2.6-4+b1), qt5-gtk-platformtheme:amd64 (5.7.1+dfsg-4,
5.9.1+dfsg-7), qml-module-qtquick2:amd64 (5.7.1-2+b2, 5.9.1-5),
libqt5help5:amd64 (5.7.1-1, 5.9.1-2), libswresample2:amd64 (7:3.3.3-2,
7:3.3.3-3), vlc-plugin-qt:amd64 (2.2.6-4, 2.2.6-4+b1),
qml-module-qt-labs-folderlistmodel:amd64 (5.7.1-2+b2, 5.9.1-5),
heroku:amd64 (6.13.13-1, 6.13.17-1), libqt5multimedia5:amd64
(5.7.1~20161021-2, 5.9.1-2), libopenmpt0:amd64 (0.2.8461~beta26-1,
0.2.8760~beta27-1), vlc-plugin-skins2:amd64 (2.2.6-4, 2.2.6-4+b1),
vlc-plugin-visualization:amd64 (2.2.6-4, 2.2.6-4+b1),
libvigraimpex6:amd64 (1.10.0+git20160211.167be93+dfsg-4,
1.10.0+git20160211.167be93+dfsg-5), libqt5dbus5:amd64 (5.7.1+dfsg-4,
5.9.1+dfsg-7), libqt5sql5-sqlite:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
nodejs:amd64 (4.8.4~dfsg-1, 6.11.2~dfsg-2),
qml-module-qtquick-layouts:amd64 (5.7.1-2+b2, 5.9.1-5),
libqt5widgets5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
vlc-plugin-notify:amd64 (2.2.6-4, 2.2.6-4+b1), libvlc5:amd64 (2.2.6-4,
2.2.6-4+b1), gir1.2-pango-1.0:amd64 (1.40.6-1, 1.40.9-1),
gstreamer1.0-plugins-bad:amd64 (1.12.2-1, 1.12.2-1+b1),
libnet-http-perl:amd64 (6.12-1, 6.16-1),
qml-module-qtqml-models2:amd64 (5.7.1-2+b2, 5.9.1-5),
qml-module-qt-labs-settings:amd64 (5.7.1-2+b2, 5.9.1-5),
libpostproc54:amd64 (7:3.3.3-2, 7:3.3.3-3), libvlccore8:amd64
(2.2.6-4, 2.2.6-4+b1), libvlc-bin:amd64 (2.2.6-4, 2.2.6-4+b1),
libqt5xml5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
libqt5printsupport5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
libqt5qml5:amd64 (5.7.1-2+b2, 5.9.1-5), dirmngr:amd64 (2.1.18-8,
2.1.23-2), libqt5designercomponents5:amd64 (5.7.1-1, 5.9.1-2),
libqt5multimediawidgets5:amd64 (5.7.1~20161021-2, 5.9.1-2),
libdatetime-format-strptime-perl:amd64 (1.7300-1, 1.7400-1),
libqt5concurrent5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
libpangoxft-1.0-0:amd64 (1.40.6-1, 1.40.9-1), libqt5gui5:amd64
(5.7.1+dfsg-4, 5.9.1+dfsg-7), libqt5multimedia5-plugins:amd64
(5.7.1~20161021-2, 5.9.1-2), libqt5quickwidgets5:amd64 (5.7.1-2+b2,
5.9.1-5), libpangocairo-1.0-0:amd64 (1.40.6-1, 1.40.9-1),
libopenmpt-modplug1:amd64 (0.2.8461~beta26-1, 0.2.8760~beta27-1),
libqt5multimediaquick-p5:amd64 (5.7.1~20161021-2, 5.9.1-2),
libavcodec57:amd64 (7:3.3.3-2, 7:3.3.3-3), libqt5webkit5:amd64
(5.7.1+dfsg-1, 5.9.1+dfsg-2), libqt5script5:amd64
(5.7.1~20161021+dfsg-2, 5.9.1+dfsg-2), vim-runtime:amd64
(2:8.0.0197-5, 2:8.0.0946-1), gpgv:amd64 (2.1.18-8, 2.1.23-2),
vim:amd64 (2:8.0.0197-5+b1, 2:8.0.0946-1), vlc:amd64 (2.2.6-4,
2.2.6-4+b1), libavutil55:amd64 (7:3.3.3-2, 7:3.3.3-3),
libqt5core5a:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7), libavdevice57:amd64
(7:3.3.3-2, 7:3.3.3-3), python3-numexpr:amd64 (2.6.2-1, 2.6.2-2),
xxd:amd64 (2:8.0.0197-5+b1, 2:8.0.0946-1), libswscale4:amd64
(7:3.3.3-2, 7:3.3.3-3), qdbus-qt5:amd64 (5.7.1-1, 5.9.1-2),
vlc-plugin-video-splitter:amd64 (2.2.6-4, 2.2.6-4+b1), gnupg2:amd64
(2.1.18-8, 2.1.23-2), libqt5opengl5:amd64 (5.7.1+dfsg-4,
5.9.1+dfsg-7), qml-module-qtmultimedia:amd64 (5.7.1~20161021-2,
5.9.1-2), libqt5xmlpatterns5:amd64 (5.7.1~20161021-3, 5.9.1-2),
qttranslations5-l10n:amd64 (5.7.1~20161021-1, 5.9.1-1), vim-tiny:amd64
(2:8.0.0197-5+b1, 2:8.0.0946-1), qttools5-dev-tools:amd64 (5.7.1-1,
5.9.1-2), libqt5network5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
gnupg:amd64 (2.1.18-8, 2.1.23-2), vlc-plugin-base:amd64 (2.2.6-4,
2.2.6-4+b1), libqt5designer5:amd64 (5.7.1-1, 5.9.1-2),
libpango-1.0-0:amd64 (1.40.6-1, 1.40.9-1),
libgstreamer-plugins-bad1.0-0:amd64 (1.12.2-1, 1.12.2-1+b1),
libqt5quick5:amd64 (5.7.1-2+b2, 5.9.1-5), libavresample3:amd64
(7:3.3.3-2, 7:3.3.3-3), libqt5sql5:amd64 (5.7.1+dfsg-4, 5.9.1+dfsg-7),
qml-module-qtgraphicaleffects:amd64 (5.7.1~20161021-3, 5.9.1-2),
mplayer:amd64 (2:1.3.0-6+b3, 2:1.3.0-6+b4), libqt5sql5-mysql:amd64
(5.7.1+dfsg-4, 5.9.1+

Re: apt-get dist-upgrade uninstalled most of KDE

2017-08-16 Thread nobrin
Thanks you all for the help! I usually do pay attention, and I prefer
sid even given the risks (it's great).
I don't need the machine at the moment, so I'll just wait for the
transition to complete.

Using snapshot repositories and "apt-get install packagename=version"
sounds like a *great* strategy to implement a quick-and-dirty rollback
function for apt-get. Do you think it would suffice to analyze
history.log and run "apt-get install" with
- "package-" for all packages installed by the last update and
- add "package=version" for all updated and removed packages?

The snapshot it would use is the one of the previous upgrade.

Thanks,
Marco

On Wed, Aug 16, 2017 at 2:55 PM, Martin Steigerwald  wrote:
> Martin Steigerwald - 16.08.17, 23:43:
>> There is no automatic way to undo the action. I suggest you install again
>> by  using metapackages like
>>
>> - plasma-desktop
>> - kde-standard
>> - kde-full
>>
>> depending on the amount of packages you want to have installed.
>>
>> And then add any additional packages you want to have again.
>
> I missed that this wouldn´t fix current KDE/Plasma packages not fitting yet to
> Qt 5.9.1.
>
> So I suggest you switch to Debian testing temporarily.
>
> Then either aptitude install one of above meta packages will over a nice
> solution that will downgrade Qt packages to 5.7.1 again… or you need to
> manually do that by something along the lines of
>
> apt/aptitude install package=versionnummer
>
> Next time check output of apt more closely. It must have shown a *very long*
> list of packages it is about to remove.
>
> Another thing would be to temporarily install a different desktop like lxqt or
> Mate or so :)
>
> Thanks,
> --
> Martin



Re: apt-get dist-upgrade uninstalled most of KDE

2017-08-16 Thread nobrin
Thanks!

I was thinking about implementing an "apt-get rollback-upgrade"
command, which would also remove any package installed by the previous
upgrade. To be reliable, though, it should also restore any
configuration overwritten by the install. So maybe it is not feasible.

I agree, maybe "apt-mark hold" is a better strategy if one wants to
keep installing packages during the transition.

Best,
Marco

On Wed, Aug 16, 2017 at 3:28 PM, Ben Caradoc-Davies  wrote:
> On 17/08/17 10:08, nob...@gmail.com wrote:
>>
>> Using snapshot repositories and "apt-get install packagename=version"
>> sounds like a*great*  strategy to implement a quick-and-dirty rollback
>> function for apt-get. Do you think it would suffice to analyze
>> history.log and run "apt-get install" with
>> - "package-" for all packages installed by the last update and
>> - add "package=version" for all updated and removed packages?
>> The snapshot it would use is the one of the previous upgrade.
>
>
> "apt-get install package=version" should remove any packages that conflict
> with the installation, so you should not have to manually remove anything.
> The only other thing I did after the downgrade was to "apt-mark hold" the
> packages affected by the transition that I did not want to remove; this is
> my preferred tactic for surviving transitions.
>
>
> Kind regards,
>
> --
> Ben Caradoc-Davies 
> Director
> Transient Software Limited 
> New Zealand
>



Re: apt-get dist-upgrade uninstalled most of KDE

2017-08-16 Thread nobrin
Hi All,

As a reference, I undid the last apt command in one (long) line:

apt-get install `cat /var/log/apt/history.log | awk
'/Start-Date/{last=""} /^Start-Date:/,/End-Date/{last=last $0 "\n"}
END {print last}' | sed 's/ \([^ ]*\) (\([^,)]\+\)\(,
[^)]\+\)\?)/\1=\2/g' | awk -F, '/Install:/{gsub(/^Install:/,"");
gsub(/=[^,]*/,""); for(i=1;ihttp://snapshots.debian.org/archive/debian/20170814T210836Z/ sid
main non-free contrib

Cheers,
Marco

On Wed, Aug 16, 2017 at 3:35 PM,   wrote:
> Thanks!
>
> I was thinking about implementing an "apt-get rollback-upgrade"
> command, which would also remove any package installed by the previous
> upgrade. To be reliable, though, it should also restore any
> configuration overwritten by the install. So maybe it is not feasible.
>
> I agree, maybe "apt-mark hold" is a better strategy if one wants to
> keep installing packages during the transition.
>
> Best,
> Marco
>
> On Wed, Aug 16, 2017 at 3:28 PM, Ben Caradoc-Davies  wrote:
>> On 17/08/17 10:08, nob...@gmail.com wrote:
>>>
>>> Using snapshot repositories and "apt-get install packagename=version"
>>> sounds like a*great*  strategy to implement a quick-and-dirty rollback
>>> function for apt-get. Do you think it would suffice to analyze
>>> history.log and run "apt-get install" with
>>> - "package-" for all packages installed by the last update and
>>> - add "package=version" for all updated and removed packages?
>>> The snapshot it would use is the one of the previous upgrade.
>>
>>
>> "apt-get install package=version" should remove any packages that conflict
>> with the installation, so you should not have to manually remove anything.
>> The only other thing I did after the downgrade was to "apt-mark hold" the
>> packages affected by the transition that I did not want to remove; this is
>> my preferred tactic for surviving transitions.
>>
>>
>> Kind regards,
>>
>> --
>> Ben Caradoc-Davies 
>> Director
>> Transient Software Limited 
>> New Zealand
>>