/srv/irclogs.ubuntu.com/2019/07/23/#ubuntu-server.txt

lordievaderGood morning06:20
=== elsheepo is now known as beatzz
=== JanC_ is now known as JanC
friendlyguymorning07:29
friendlyguyis somebody willing to work with me to get old kernels automatically removed?07:37
friendlyguyi have an old system where this isnt working07:38
friendlyguyi worked with tomreyn and rbasak yesterday on this: removed most of the old kernels manually07:38
SkyriderGreetings all09:06
SkyriderWas wondering if someone could help me with a tiny problem. I noticed today that php curl was no longer functioning.. I checked it out and saw that I can't install curl at all: "php7.2-curl : Depends: libcurl4 (>= 7.44.0) but it is not going to be installed" --> But if I install libcurl4, it'll erase my mongodb 4.x server installation.09:06
SkyriderAny suggestions?09:07
tomreynfriendlyguy: i could help there if you like? if so, post the http address returned by 'dpkg -l | grep ^....linux | nc termbin.com 9999' to get started.09:24
friendlyguymorning!09:36
friendlyguycool, sure09:36
friendlyguybut i guess ill need to open that port first09:37
friendlyguygimme a sec09:38
friendlyguyhttps://termbin.com/j4j709:40
friendlyguyopening that port did help :)09:40
tomreynfriendlyguy: welcome back. be sure to type "tomreyn" here to raise my attention. what does "uname -r" say is the kernel version currently running?09:44
friendlyguytomreyn: its 4.4.0-154-generic09:54
tomreynfriendlyguy: sudo /bin/true && ( sudo apt-get update && sudo apt-mark auto linux-image-4.4.0-154-generic linux-headers-4.4.0-154-generic && sudo apt-get install linux-generic ) > /tmp/tomreyn && cat /tmp/tomreyn | nc termbin.com 999909:56
tomreynplease pass the url and tell me if it prints anything on screen other than the url, too.09:56
friendlyguyhttps://termbin.com/95ei09:59
friendlyguyno errors were shown09:59
tomreynfriendlyguy: please keep highlighting me (putting my name in front of what you say). the output looks fine (despite it being in german, but then i personally understand that; you could run "export LANG=C" to get output in english). now: sudo apt-mark manual linux-generic10:06
friendlyguytomreyn: thats done10:07
friendlyguy"has already been marked manual..."10:07
tomreynfriendlyguy: sudo apt-mark auto '^linux-(image(-extra)?|(cloud-)?tools|headers)-4.*' | grep -v 'not installed.' | nc termbin.com 999910:11
friendlyguytomreyn: https://termbin.com/reu610:16
friendlyguyoh, damn. i should have changed "not installed." to its german equivalent10:17
friendlyguysorry10:17
tomreynfriendlyguy: just run   export LANG=C      - it will only last for this ssh session10:18
friendlyguyi created a new one: https://termbin.com/a02g10:18
friendlyguydid the export also now10:19
tomreynfriendlyguy: and no worries. ;)  as a reminder, this tells you what your currently running kernel is:  uname -r      run it to remind yourself. then:   sudo apt-get update && sudo apt --purge autoremove       and make sure you read the list of software it wants to uninstall. it should not include the currently running kernel. if it does, cancel removal.10:20
friendlyguytomreyn: it does not want to uninstall anything10:21
tomreynokay, that's fine, too10:21
tomreynfriendlyguy: now:   nc termbin.com 9999 < /etc/apt/apt.conf.d/01autoremove-kernels10:22
friendlyguytomreyn: https://termbin.com/4k7l10:23
tomreynfriendlyguy: hmm this linux-image-extra-4.4.0-142-generic package is not in a good state. let's try to fix this:  sudo apt purge linux-image-extra-4.4.0-142-generic     and post the output to https://paste.ubuntu.com10:29
friendlyguytomreyn: how do you know? i couldn`t see that its in a bad state10:31
tomreynfriendlyguy: on what you just posted, there was this line: pH  linux-image-extra-4.4.0-142-generic   4.4.0-142.168                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP10:36
tomreynyou can produce this line using this command:   dpkg -l linux-image-extra-4.4.0-142-generic10:36
friendlyguypkg-query: no packages found matching linux-image-extra-4.4.0-142-generic10:37
friendlyguytomreyn: thats interesting10:37
tomreynthe 'pH' it starts with says this package is in a state where it is to be (p)urged but it is also (H)alf-installed. the p isn't an issue but the H should not be there.10:38
tomreynyou could read up on this after installing the manuals10:38
tomreyn!man10:38
ubottuThe "man" command brings up the Linux manual pages for the command you're interested in. Try "man intro" at the  command line, or see https://help.ubuntu.com/community/UsingTheTerminal | Manpages online: http://manpages.ubuntu.com/10:38
tomreynand running:   man dpkg-query10:38
tomreyn(to quit this viewer when you finished reading, press 'q')10:39
friendlyguytomreyn: Package 'linux-image-extra-4.4.0-142-generic' is not installed, so not removed10:39
friendlyguyi wonder which output you are looking at?10:39
tomreynright, i'm puzzled as to why it's saying this now.10:40
tomreyni'm looking at https://termbin.com/4k7l10:40
tomreynmaybe     dpkg -l | grep ^.H     will produce this output10:40
friendlyguytomreyn: nope10:42
friendlyguydidnt return anything10:42
tomreynok, another explanation is that this package was only in this state at the time because it was just being worked on by an automatic background process at the time10:42
tomreynso since it's just uninstalled now we don't need to worry about it10:43
tomreynis rebooting this system an option currently?10:43
tomreyn(don't do it, yet)10:43
tomreynfriendlyguy: ^10:43
friendlyguyyes, sure10:45
friendlyguyno problem10:45
friendlyguytomreyn: i can reboot it anytime10:45
tomreynfriendlyguy: okay, let's make sure all the latest software is installed:  sudo apt full-upgrade10:47
friendlyguytomreyn: it is10:47
tomreynhmm weird, i have a newer kernel version installed. can i see    dpkg -l | grep ^....linux | nc termbin.com 9999   again?10:48
friendlyguytomreyn: sure, https://termbin.com/bagv10:49
tomreynoh, my bad, i have an extra repository enabled which provides newer versions which are still undergoing testing.10:50
friendlyguyah, alright. thats clear then :)10:50
tomreynokay, so just reboot, and then run   sudo apt update && sudo apt --purge autoremove     and tell me whether it wants to remove anything10:51
tomreynor rather if it wants to remove anything there, please show the full output on the pastebin.10:52
friendlyguytomreyn: nothing10:56
tomreynfriendlyguy: okay, then run this to hopefully remove the outdated packages:   sudo apt purge '^linux-(cloud-tools|headers|image|image-extra|tools)-4\.4\.0-1[0-4][0-9](-generic)?$'10:59
tomreynfriendlyguy: if it prompts, don't confirm, yet10:59
tomreynjust show the output10:59
tomreynfriendlyguy: oh and please also show    uname -r    once more10:59
tomreynfriendlyguy: got busy?11:10
tomreynfriendlyguy: i'm gone for ~ 1 hour. in case you'll return in the meantime, make sure no package containing your current kernel version (as reported by "uname -r") is listed by the "apt purge ..." command. if so, confirm it. that should be all that's left to be done.11:37
rbasaktomreyn: you don't know about pastebinit?11:49
rbasakIt's a package ;)11:49
friendlyguytomreyn: ah, sorry. went for lunch11:50
friendlyguytomreyn: https://paste.ubuntu.com/p/2G9vyB9JVP/12:11
tomreynrbasak: i know ;) but it's not installed by default, and throws warnings which irritate people on 19.04. thanks for the hint, though.12:17
tomreynfriendlyguy: welcome back. you can confirm this prompt.12:18
rbasakhttps://bugs.launchpad.net/ubuntu/+source/pastebinit/+bug/181223212:18
ubottuLaunchpad bug 1812232 in pastebinit (Ubuntu Eoan) "Deprecation warnings" [Medium,Fix released]12:18
rbasakDisco isn't really Won't FIx - it just needs someone to drive it.12:18
tomreyni agree. :)12:27
friendlyguytomreyn: i am done with that, all removed12:28
tomreynfriendlyguy: okay, then we're done. you could duble check that there are no old leftover files in /usr/src/ and /boot/ if you like. i expect that older kernels will be automatically marked for removal from now on. if you like to, review the comands we ran and ask about them if you have any questions.12:32
friendlyguyi understood the commands, but i didnt get the "big picture" totally i think12:34
friendlyguywe basically removed old kernels, and made sure the current kernel is flagged as automatic, ist this correct?12:35
tomreynfriendlyguy: yes, that's really all we did i think12:35
friendlyguycan you guess what i screwed up to get in this situation?12:36
tomreynfriendlyguy: flagging those versioned kernel images as automatic, and, moreover, making sure the non versioned 'tracking' packages (linux-generic, linux-image-generic) are installed should make the automatism defined in /etc/apt/apt.conf.d/01autoremove-kernels work so that older kernel packages will get flagged to be removed by apt autoremove12:38
tomreynthis is a not only an issue on your very system but was a more common issue on 14.04 and earlier (but not on 18.04, and i think not on 16.04 fresh installations - so unless it was upgraded to).12:40
tomreynfriendlyguy: so i assume you upgraded this system from an earlier release at some point. but i may also be wrong in that it did actually still happen on earlier 16.04 point releases.12:42
friendlyguyyeah, the vm is about 10 years old12:42
friendlyguyi run a bunch of websites on it12:42
friendlyguynothing critical12:42
tomreynoh, so it went thruogh several upgrades. then i recommend you run https://github.com/tomreyn/scripts#foreign_packages12:43
tomreynalso deborphan12:43
friendlyguytomreyn: ill do that, thanks12:46
friendlyguyi was thinking about to do another release upgrade12:46
friendlyguy16.04 to 18.0412:47
tomreynfriendlyguy: you'd get TLS1.3, which is nice - faster web browsing on sites you host.12:49
tomreyn!releasenotes12:50
ubottuFor release notes of a given Ubuntu release, please refer to the 'Docs' column on the 'List of releases' table at https://wiki.ubuntu.com/Releases12:50
friendlyguytomreyn: thanks a lot for you help again!13:26
tomreynyou're welcome, friendlyguy13:27
supamanI have a webserver that is accessed by some finnish people that use the ä letter (hex e4) is some filenames that are uploaded to the server16:34
supamanwhen I look in the folder I see $344 instead of the letter16:35
supamanand most importantly I have problems backing up the folders using rsync to a smb mounted NTFS filesystem, it gives an error16:35
supamanwhy is this happening? using find, printf and xxd to see the hex values in the filenames it gives the correct hex value16:36
supamanso my system (ubuntu 18.04 on ext4) is not displaying the character correctly16:37
supamanand then rsync, smb, or something else in the stack is crapping out moving those files to the smb mount16:38
rbasakEverything needs to be set up to use the same encoding, or be able to determine the encoding correctly16:38
rbasakThat includes your locale, etc.16:38
supamanlocale is en_US.UTF-816:40
supamaninteresting, if I do a "touch täst" on the server, and check the hex value of ä I get a different value16:41
supamanif I type it I get hex value c3, but in the filenames its e416:42
RoyKit's probably russian cyber-terrorists trying to get in :D16:47
supamanhehe :-)16:47
supamannah, finnish environmentalists ... even worse ;-)16:48
tomreyn0xc3 would by Ã16:52
supamanin en_US.UTF-8?16:52
tomreynyes. echo -e '\uc3 \ue4'16:52
supamaneven more interesting, I created an empty file with ä (not Ä) in the name, ran it through find . -maxdepth 1 -type f -exec sh -c 'printf "%-10s %s\n" "$1" "$(printf "$1" | xxd -pu )"' None {} \; and that shows 0xc3 for ä16:54
supamanhmmm ... a bit more convoluted, ./täst gives me 2e2f74c3a47374 ... so its c3a4 that represents the ä17:01
tomreynAKA "LATIN SMALL LETTER A WITH DIAERESIS"17:04
supamannever got used to the names of all those commas and umlauts over letters17:04
supamancould be the difference is since I have an icelandic keyboard layout and need to press two keys (one dead key) to get the ä17:08
tomreynit's the (web searchable) description of this character from the unicode standard17:08
tomreynhttp://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=%C3%A4&mode=char17:10
supamanc3a4 is the utf-8 computer encoding, e4 is the iso-8859 encoding (according to https://en.wikipedia.org/wiki/%C3%84)17:10
tomreynso if you see à somewhere then it's due to LATIN-1 (i.e. non utf-8) encoding17:11
tomreynmeaning you have a character conversion to non utf-8 in place, which is your 'bottleneck' there.17:11
tomreynwell, not conversion, lack of conversion really17:11
supamanyeah, seems that when the files where uploaded to the server the filenames got stored as iso-8859 but now the system is in utf-8 mode and then it doesn't know what to do with the character17:13
hallynubuntuserver.wordpress.com deleted?17:28
coreycbjamespage: python3-ceilometerclient BDs have been removed except for vitrage: https://storyboard.openstack.org/#!/story/200626918:09
coreycbjamespage: mistral's dependency on python-glareclient may be difficult since glare is at least somewhat maintained still18:10
jamespagecoreycb: thanks18:17
* jamespage ponders glareclient18:17
jamespageI guess we can leave the client package in place for the time being...18:17
coreycbjamespage: alright i'll take a look at updating glare packages to py3 only18:18
=== Wryhder is now known as Lucas_Gray

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!