/srv/irclogs.ubuntu.com/2021/02/13/#ubuntu.txt

guivercimi, `sudo apt full-upgrade`   (upgrade has restrictions on what it can upgrade; thus `dist-upgrade` and `full-upgrade`) - same as with debian00:06
imithanks00:06
imiwhat are the restictions? why are the restrictions there? is it safe to use apt full-upgrade without those restrictions?00:07
guivercrestrictions can vary on release.. best to refer to `man` which will show manual ref page for your actual release (and your preferred command, apt, apt-get etc)00:09
guivercapt particularly has been improving so more recent releases can do more...  `apt-get` is pretty static so release matters far less00:10
metbsdserver iso cannot boot up the frame buffer01:20
metbsdis there a text only installet iso?01:20
metbsdsomeone gave me before i forgot01:20
cheatersarnold: hey, are you around by any chance?01:31
metbsdserver iso cannot boot old hardware01:42
Maikmetbsd: what is old hardware? And if it's 32 bit, that's not supported anymore.01:49
guivercnetboot iso01:49
Maikthose do not exist anymore afaik01:52
parabytethis is powered by 4 pin molex power connector and is x86 based01:56
parabyteanyone know what form factor this board is?01:56
parabytehttps://paste.pics/434e6495ad51a8814ef04e687263f53501:56
Maikparabyte: probably wrong channel to ask since it's not a ubuntu related support question01:59
parabyteMaik, I guessed that, i was just hoping there was someone on here who knew exactly what the board was intended for etc01:59
Maiksimple01:59
Maik!discuss02:00
ubottuWant to talk about Ubuntu, but don't have a support question? /join #ubuntu-discuss for non-support Ubuntu discussion, or try #ubuntu-offtopic for general chat. Thanks!02:00
Maik;)02:00
Maiknight peeps, i'm off02:00
=== zbenjamin is now known as Guest67577
=== zbenjamin_ is now known as zbenjamin
=== vlm_ is now known as vlm
=== MICROburst1 is now known as MICROburst
zealshamif i have a list of subdomains and i want grep for particular string like "NXDOMAINS"  when i run the dig on it and if the grep matches that particular subdomain should be written to a file. how do i do that in bash02:29
sarnoldzealsham: for d in foo.com bar.com baz.com google.com ; do dig "$d" | grep NXDOMAIN && echo "$d" > "$d" ; done02:34
zealshamthank you @sarnold02:35
chrometigerFreshly installed ubuntu 20.10 on my pi.  no audio out of the headphone jack.   is there any fix to this. also I see that I dont have raspi-config  and apt-get doesn't notice it.  anyone know how I can fix these 2 problems?02:44
sarnoldraspi-config may be specific to raspbian02:46
Maiksarnold: it is02:48
Maikon the headphone jack, try switching the output in Sound Settings02:49
metbsdits 64 bit hardware but its bios only02:50
metbsdserver iso halts02:50
metbsddont know why02:50
chrometigerMaik: thats the thing, in settings it doesn't give my that option02:51
chrometigerI have Multichannel Output - built-in Audio listed twice ....  Headphones Built-in Audio .....  and Analog Output built-in Audio   none of which work02:53
sarnoldchrometiger: dang :( I didn't try any of the audio on my 3b+ stuff, so I'm not sure ohw well it's supposed to work.. we've got a bunch of their firmware blobs though, I had the impression it ought to work03:00
cheatersarnold: do you know of a good way we can get ubuntu to fix that bug in the info package in 18.04?03:57
sarnoldcheater: the fastest way to get it fixed is to figure out what changed between 18.04 and 20.04 to fix it, then backport that fix to the 18.04 package03:57
cheateri'm unable to backport it.03:58
sarnoldcheater: this describes the process of getting fixes into releases https://wiki.ubuntu.com/StableReleaseUpdates03:58
cheaterthe best i can do is to tell the maintainers somehow.03:58
sarnoldah; you can do that part by 'ubuntu-bug info'03:59
cheateroh. thanks!03:59
jckfrst1anyone running ubuntu touch?04:33
Bashing-om!touch | jckfrst104:34
ubottujckfrst1: Information about the mobile port of the Ubuntu platform (formely Ubuntu Touch) for Phone and Tablet is available here: https://ubports.com/. Support and discussion in #ubports04:34
jckfrst1!ass04:36
jepHi everybody ... greetings from Denmark, Europe ... I'm running Virtual box on OSX Catalina host and installing Ubuntu server 20 as guest .. I've installed the following packages on Ubuntu server like this: sudo apt-get install dkms build-essential linux-headers-generic linux-headers-$(uname -r) ... after that I've mounted the guest editions CD and successfully run: sudo05:01
jep/mnt/cdrom/VBoxLinuxAdditions.run  ... it is installing guest additions ... no errors  ... rebooting and nothing happens ... what am I doing wrong ???05:01
cheaterwhat's a good way to make apt-cache search only print package names, and not the description?05:06
=== liowenex_ is now known as liowenex
cheaternever mind - found a better way to do what i want to do05:10
sarnoldcheater: if you're still trying to get all the -doc packages installed.. I had an idea earlier, but it made some stupid mistakes along the way...05:18
sarnoldcheater: I had to run off to deal with something.. and now i'm trying to clean up that mess05:18
cheateroh i found a way to do it now05:18
sarnoldcheater: so this isn't as useful as I wanted, but maybe it's useful dpkg -l | awk '$1 = "ii" {print $2"-doc";}'05:18
sarnoldah, good05:18
cheaterone sec05:19
cheatersarnold:  https://pastebin.com/k6E41jXL05:20
sarnoldcheater: aha! nice05:21
cheateri keep my full desktop config inside one ansible playbook05:21
cheaterit's over 1k lines now...05:21
sarnoldI *never* use comm, I don't use it often enough to get the hang of it, and because I don't get the hang of it, I never go to it first, heh05:21
cheateri just googled "bash find lines that exist in both files"05:22
cheater:)05:22
sarnoldsee I'd wind up doing something silly like cat a b | sort | uniq -c | awk '$1 ~ /2/ { print $0;}' except I bet the awk needs fiddling and who knows what else is broken with it...05:23
cheateryeah that wouldn't work :)05:24
jepHi05:32
cheatersarnold: i reported the bug using ubuntu-bug btw, thanks a lot.05:33
cheatersarnold: and there's a workaround, you can just download the info file that's missing from gnu.org.05:33
=== mIk3_09 is now known as mIk3_08
TomTomgood morning. maybe today somebody has a good idea. the current realtek eth driver has a problem during phy probing and requires that the module gets removed and added again and the link being reset. where to put these commands so that every boot starts up networking only after these commands?07:13
bibbleTomTom: which kernel ? 5.10 may not have any problems.07:18
TomTombibble: i am currently using 5.10.15 and it helped for two or three reboots, but from this morning the PHY part is missing again.07:19
TomTom`WantedBy=network.target` should be executed before networking? right?07:19
catbeardhttps://docs.fedoraproject.org/en-US/quick-docs/understanding-and-administering-systemd/#common-service-parameters could modify the Before/After in networking.service07:19
devslashim using ubuntu 20.10. i have 2 monitors. secondary on the left and primary on the right. every time I boot up Ubuntu, it shows the login prompt for Ubuntu on the secondary monitor. does anyone know how to fix that other than unplug the 2nd mointor which id rathrter not have to do07:21
bibbleTomTom: multiple times Bluetooth has vanished mysteriously, but shutdown, switch off PSU, switch off mains, wait a few minutes. It reappears for some reason. Very strange.07:22
bibbleWonder if motherboard caching magic can something mess things, if they worked previously.07:23
TomTomin my case its also a quite old board. probably also a bios thing. but i've found multiple entries about the PHY probing problem for RTL chips also using newer boards... i try the way of reloading the module and setting the link status before the networking target. i need the reboot to be reliable and having a reachable network afterwards. standing in the basement and turning it on/off until it works is not an option B-)07:29
coredumb51Good morning07:55
coredumb51How could I debug shorcuts not activating??07:56
coredumb51I've set several shortcuts on alt+shift+[1-0] but 8 and 9 are not working for some reason07:56
coredumb51gives alt+shift+( and ) on my keymap07:57
coredumb51Any idea??07:57
=== retentiveboy_ is now known as retentiveboy
ash123hello, I am having frequent screen freeze issues on my laptop with ubuntu 20.04. I have to restart the laptop everytime it freezes. How can I know the root cause?08:45
=== parisienne_ is now known as parisienne
=== denningsrogue1 is now known as denningsrogue
eeosHi! An external USB disk formatted ext4  gets mounted /media/user/"label" but mounted by root, so the user cannot actually use it ....10:14
eeosIs that a design choice?10:14
=== Gokturk is now known as Guest29148
=== Guest29148 is now known as Gokturk-Away
metbsdi didn't know that ubuntu iso is so sensitive about usb writer10:48
metbsdlooks like etcher is the only one that works10:49
liowenexUse DD10:49
metbsdrufus don't work anymore10:49
=== PowerTower_121 is now known as PowerTower_120
JivanPalRufus doesn't just write the image to the drive, it extracts the files and places them in a partition on the stick, and does different things for different distros based on problems people have had trying to get USB sticks to work with those distros' installers10:53
JivanPalNo need for that these days10:53
JivanPalEtcher just dd's the image to the drive and verifies the checksums match afterwards10:54
metbsddd for linux and etcher for windows.10:54
JivanPalWould still recommend Etcher on Linux because it checks the checksum of the drive content matches the source file automatically afterwards10:56
metbsdyah10:56
metbsdi'll stop using rufus now10:56
metbsdnot reliable10:57
=== coetzeer2 is now known as coetzeer_matrix
coredumb51How could I debug shorcuts not activating??11:11
coredumb51I've set several shortcuts on alt+shift+[1-0] but 8 and 9 are not working for some reason11:11
coredumb51gives alt+shift+( and ) on my keymap11:11
coredumb51Any idea??11:11
ikoniamanutally run the shortcut command11:11
ikoniacheck the log ?11:11
coredumb51command works fine11:12
coredumb51same command is used for all the other keymaps11:12
coredumb51just ( ) that don't activate11:12
eeoshi! An external usb HD with ext4 partitions is mounted under /home/user/media .... but has root.root ownership, and the user cannot make any modifications. Is this a design choice?11:12
coredumb51it "beeps" feels like the shortcut tries to do something else ...11:13
coredumb51same issue with ctrl+alt+(11:13
coredumb51ctrl+alt+) works fine though11:13
eeoscoredumb51: are there some core key bindings connected to the bindings you are trying to overwrite?11:14
coredumb51eeos if there is I've missed them...11:15
coredumb51also it's supposed to tell you when you overwrite one right?11:15
eeoscoredumb51: I suppose so ....11:16
coredumb51can't fathom what's wrong :/11:17
eeoscoredumb51: by any chance, could this be a problem of keyboard setting?11:17
eeoscoredumb51: you know, wrong keyboard layout identified ....11:17
coredumb51it works all fine11:17
coredumb51it detects and set the shortcut fine as well11:17
coredumb51so11:20
coredumb51shift+alt+( and ctrl+alt+( don't work11:21
coredumb51shift+alt+) don't11:21
coredumb51ctrl+alt+) does11:21
coredumb51everything else custom is fine11:22
ikonia~~~~~11:25
eeoswait a sec coredumb51 .... it sould be ctrl + shift+alt+( ....11:27
eeosdepending on your keyboard there is no such a thing as ( without shift11:28
eeoscoredumb51: have you tried ctrl + alt + 9 and ctrl + alt + 0? do they work?11:29
eeoscoredumb51: (depending on your keyboard layout, of course)11:29
eeosMy question: when an external usb HD with ext4 partitions is connected, it is mounted under /home/user/media .... but has root.root ownership, and the user cannot make any modifications. Is this a design choice?11:30
coredumb51eeos yes 9 and 0 work11:30
coredumb51eeos by bad it's indeed ctrl+alt+8 that doesn't work11:32
westormaybe you need to remove -r and allow non-registered users come in ?11:34
eeoswestor: are you answering my question?11:45
=== routebee is now known as salaphibumfetish
westorno i'm talking to #ubuntu moderators11:45
westora friend had a problem he cannot connect until he registered his name on freenode11:46
jeremy31westor: have them use webchat.freenode.com11:49
westoryes he trying via https://webchat.freenode.net/11:50
westorerror: Cannot join channel (+r) - you need to be identified with services - see https://freenode.net/kb/answer/registration11:50
jeremy31westor: https://freenode.net/kb/answer/registration11:50
raecarruthhello12:28
raecarruthcan i get wine to recognize a usb device?12:28
raecarruthor rather, how do i go about getting wine to recognize a usb device?12:28
kill-animalshello12:35
=== mIk3_09 is now known as mIk3_08
=== salaphibumfetish is now known as routebee
kill-animalshow can I list all directories containing two or more files?12:39
cbreakfind . -type d -links 412:41
cbreakincrease the number until you're bored12:41
cbreak(or write an exclude pattern to not list directories with 1 or 0 files)12:42
cbreakmaybe something like  find . -type d -not \( -links 2 -or -links 3 \)12:43
TowserI forgot my crypt password, how can I get it to boot again12:54
TowserI can't boot up because it asks for a crypt password12:58
=== coetzeer_matrix is now known as coetzeer-matrix1
BluesKajHowdy folks13:21
=== pauljw_20 is now known as pauljw
cbreaktowser: did you consider deleting everything and reinstalling?14:03
bart-good afternoon14:24
bart-i have a simple question is it possible to use the touchscreen in the terminal too?14:24
tootheplaying around with an ubuntu docker container for the firs ttime....I don't have ip14:46
tootheis there a way to install it?14:46
toothenevermind...got it...14:46
kyenteiI did an Ubuntu 20.04 server install, then added the KDE Neon repositories on top and installed neon-desktop. However, my brightness controls don't seem to be working. I've tested both the 5.4 and 5.8 HWE kernel, the mainline 5.10.15 kernel, and I've tried all the acpi_backlight kernel options. Backlight works in Arch, and I think on Ubuntu live as well. I'm using the amdgpu graphics drivers. Does anyone have a recommendation where I could look next?14:48
kyenteiI should add; manually echoing values to /sys/class/backlight does not seem to be working either14:48
ikoniawhy didn't you just install kubuntu14:49
kyenteiAnd install neon-desktop on top of that, you mean? I figured starting from a clean minimal base would be better.14:49
ikoniawhy would it be easier14:50
ikoniayou've installed a server targeted OS - installed parts of a desktop setup then expecting desktop functionality14:51
ikoniawhy not just install kubuntu, the desktop setup that's fully setup and ready to go14:51
ikoniaand then work any problems from there14:51
kyenteiI don't want Kubuntu, I want KDE Neon.14:51
ikoniaisn't kubuntu shipping with KDE and neon as default ?14:52
kyenteiNo. KDE Neon is the latest KDE Plasma on top of Ubuntu LTS. Kubuntu is not.14:52
kyenteiAnd the KDE Neon installer (calamares) doesn't allow for custom partitioning. Or at least, not without crashing.14:52
ikoniaI'm looking at the repos now and the versions seem pretty close on packages14:53
ikoniaI guess if you want support with the neon packages, contact the neon guys14:53
kyenteiBut it's not neon though, is it. I am just missing some part of the Ubuntu default packages to allow proper brightness controls and I'm asking if someone else has suggestions that I haven't thought of yet. it has nothing to do with KDE Neon specifically14:54
ikoniayou don't know that though14:54
ikoniaas you don't know what the neon repos pull in14:54
ikoniaand you're using bleeding edge stuff14:55
kyenteiSure I do, I've looked at what I installed. It's not bleeding edge for anything other than KDE Plasma. Besides that, it's all Ubuntu 20.0414:56
ikoniaand it's not supported15:03
ikoniaI'd looke at what the kubuntu-desktop package pulls in15:03
ikoniaand see what you're missing15:03
kyenteiI'll have a look at that indeed, thanks15:05
swear000hi15:22
MonotokoAight, I'm confused: https://pastebin.com/uVJU3SGY17:27
Monotokofile, owned by me17:27
Monotoko*folder17:27
Monotokodoesn't give me permissions to access it17:27
Monotokoroot can access, I've done chown -R monotoko:monotoko local17:28
Monotokoand yet my account still can't get to it17:28
aroonixbacklight -set 50 ;; doesnt seem to do anything no ubuntu 20.0417:40
arooninewly installed;17:40
ash123hi all! I installed Ubuntu 20.04 on my pc. Sometimes my laptop's touchpad doesn't work. I have to restart everytime this happens. Can you please help?18:28
aroonixbacklight on ubuntu 20.04 doesnt seem to do anything18:29
arooniintel integrated gpu on my lenovo t42018:30
oerheksash123, how about the urls i gave you yesterday?18:31
oerheks!logs18:31
ubottuOfficial channel logs can be found at https://irclogs.ubuntu.com/ . LoCo channels are now logged there too. Meetingology logs at https://ubottu.com/meetingology/logs/18:31
ash123I didn't find any such settings in my bios18:32
oerheksmaybe there is a bios update available, did you check?18:33
ash123for freezing issue, i set idle=nomwait so far from: https://askubuntu.com/questions/1047374/hp-envy-x360-ryzen-5-status-of-known-issues18:34
ash123and regarding bios, I dont have windows 10 anymore so not sure how to update.18:37
oerheksdepends on the vendor of the motherboard18:38
oerheksdmidecode -t 218:39
oerheksor dmidecode -t baseboard18:39
ash123https://pastebin.com/CPUFLFPY18:42
oerhekshp, one can put an update on usb/fat32 and run it from the biosmenu, AFAIK18:46
ash123one thing i noticed when touch pad doesn't work is that Ubuntu doesn't recognize the hardware i think. I couldn't see touchpad in settings.18:48
=== coetzeer-matrix1 is now known as coetzeer-matrix3
SirOsisOfTheliveHi, I installed ubuntu server 20.  i guess i used lvm to make 1 drive out of 4 600 Gig drives.   i thought i told it to use all drive space.   lsblk -f shows only 1.46G FSAVAIL   how do  i access the rest of the drive space?20:19
SayonaHi, what repo do you use to install php71,72,73,74 ?20:33
tomreynSayona: none that's supported here. but Ondřej Surý provides a PPA for this purpose https://deb.sury.org/ https://launchpad.net/~ondrej/+archive/ubuntu/php20:43
Sayonathanks tomreyn  :)20:43
Sayonais safe to use ondrej nu?20:44
tomreynSirOsisOfThelive: you can create LVs, logical volumes, then file systems on those.20:44
tomreynSayona: maybe. "not supported here" ;-)20:45
Sayona:P20:45
LiveWireI was tyring to run some video benchmarks, installed the 3070 finally lastnight.. For some reason driver issues from 1660S to it, would of thought it was pretty auto. 3dmark will run, but takes like 10minutes now to get system info..21:10
LiveWiredamn it, wrong window yet again21:10
LiveWirebut while im here, can someone tell me why when I open Chrome I have to enter a damn password. Ive cleared my basic pw from keyring21:13
WaVhttps://askubuntu.com/questions/31786/chrome-asks-for-password-to-unlock-keyring-on-startup21:19
LiveWireWaV: ty, i actually googled quite a bit before I asked21:20
=== lucas_ is now known as Guest69857
sybaritenhey! (l)ubuntu 18 here, on a rather fresh machine. Live OS though. And having mysql install problems (from apt). Here's the end of the install process, with an error: https://paste.ubuntu.com/p/KGXP4dh39N/22:25
oerheksinteresting, installing mysql in a live iso..22:26
oerheks?22:27
sybaritenoerheks: yeah, well22:28
superschnellsybariten: you'll have to find out why /usr/share/mysql/mysql-systemd-start pre  failed22:28
Habbiesybariten, line 19 has two hints22:28
sybaritensuperschnell: so would thatr be something that existed _before_ i started installing mysql?22:29
Maikwhat use is it to install it in a live session anyway....22:29
Habbiesybariten, no, it wouldn't22:29
superschnellsybariten: I have no idea what you mean22:29
oerheksMaik,  one needs a hell of a mem for that22:29
superschnellsybariten: it starts, it fails22:29
sybaritenHabbie: the service is, uh, loaded and active:failed .... dont really knwo what that means22:30
oerheksseriously, did you take a daily iso or just the download?22:30
Habbiesybariten, often one of those commands will tell you also why22:30
oerhekshttp://cdimage.ubuntu.com/bionic/daily-live/current/HEADER.html22:30
oerhekselse go figure out what you are doing :-D22:30
sybaritenoerheks: me? It's ... hmmm ... i cant remember. I was just sdome 18.04 lubuntu iso22:30
sybaritenor how do you mean?22:31
superschnellsybariten: don't be distracted by the package manager messages, it just ends by reporting a prerequisite failed, but that's just from the package manager's perspective. It wants to install X, then Y, but can't install Y because X failed and is required for Y. Look at why X failed, not Y.22:31
superschnellmysql-server-5.7 has a "post installation script", and that means that after unpacking some files to your root filesystem, it attempts to do stuff. One of those things is starting a program. It failed. It showed you what program it tried to start. You can now try to find the reason in logs mentioned or try to start it yourself (possible with a parameter that says it should run in the foreground, not22:32
superschnellthe background, see its man page) and see what it says.22:33
superschnellUntil, we know little more than you do.22:33
superschnellUntil then*22:33
sybaritensuperschnell: aha aha....  the journalctl said this, but i dont know if theres anything there that raises an eyebrow  https://termbin.com/pmrp22:34
superschnellModern LiveCDs no longer have the same problems precipitated from a readonly medium that they used to, however, it isn't out of the question that the unusual mixed read-only/writable filesystem merger yields some unforeseen issues. But we won't know till you check.22:34
Habbiesybariten, there's no mysql in there22:35
superschnellok22:35
sybaritenHabbie: no i know...22:35
sybaritenMaik: if it works its practical when you want to do things fast22:35
superschnellsybariten: try /usr/share/mysql/mysql-systemd-start pre22:35
superschnellJust guessing22:35
TJ-sybariten: the script that failed should output some info, see its source-code https://git.launchpad.net/ubuntu/+source/mysql-5.7/tree/debian/additions/mysql-systemd-start?h=ubuntu/bionic-updates22:35
superschnellsybariten: as root, obviously22:36
sybaritenHm! Weird. It has a permission error. Even though i sudo. Coming up..22:36
TJ-sybariten: what does this show? "journalctl -u mysql.service"22:37
superschnellsybariten: interesting.22:37
superschnellWhat error?22:37
TJ-That script is badly written; it ought to return different exit codes for each error22:37
sybaritenhttps://paste.ubuntu.com/p/gfkKmMK3j7/22:37
superschnellsybariten: I suggest sudo su22:38
superschnellthen trying again22:38
sybaritenaha ok22:38
sybaritenmaybe i should had done that for the whole install...22:38
sybaritenTJ-: hmmm "--- no entries ---" i think, if thats what you're after?22:38
superschnellPerhaps, I have no idea if this will work. It's curious in any cse.22:38
superschnellcase*22:39
TJ-sybariten: ha, yes, but no, not helpful!22:39
TJ-superschnell: from what I can see in the source-code, the command that fails is "mysqld --verbose --help --innodb-read-only"22:39
sybaritensuperschnell: same error actually! Interesting.... cause i can definitely ls the dir and cat files in it.  https://paste.ubuntu.com/p/XQGN8tm9BB/22:41
sybaritenHow can things be out of permission when one is root?22:41
superschnellsybariten: a read-only mount?22:42
TJ-sybariten: how about "ls -ld ls -lrt /etc/mysql/conf.d"22:42
HabbieTJ-, double ls22:43
superschnellsybariten: I must say I don't really get it22:43
superschnellsybariten: you could use strace to find out. Perhaps the process tries to switch context and becomes a different user first22:43
superschnellThen it is no longer root, and fails22:43
superschnelldo stat /etc/mysql/conf.d as root22:44
superschnellIt should yield some useful information. Perhaps the daemon attempts to run as user 'mysql' and then is refused acces.22:45
superschnellaccess*22:45
superschnellKeyboard is irritating today. Or rather, my typing.22:45
TJ-Habbie: oops22:45
sybaritensuperschnell: hmmm i dunno, i think although it comes from a very special filesystem ( as in being read from a USB memory ) i think from the loaded OS's point of view it should behave like a normal OS ... more or less.... if you understand what i mean22:45
superschnellsybariten: I know, I used to be a livecd distro co-dev22:46
sybaritenWhat i mean is, in my experience theres typically not a lot of things that are read-only (as opposed to normally) in a loaded live os22:46
sybaritensuperschnell: oh, cool! Yeah then you know22:46
superschnellBut before I blame it on fs peculiarities, I'd like to narrow down the circumstances of the error step by step22:46
TJ-sybariten: the problem looks to be that the systemd service is running as the mysqld user and doesn't have access to that directory22:47
superschnellI haven't seen errors caused by that on livecd/liveusb systems for a while22:47
TJ-sybariten: "ls -ld   /etc/mysql/conf.d"22:47
superschnellSo what TJ- said basically22:47
TJ-maybe the traverse mode is missing22:48
sybaritenshould i try a pure ubuntu 18 instead, on a usb memory, instead of lubuntu?22:48
superschnellsybariten: no, please just find out what the error is22:49
sybaritenokidoki. Whats your tip for my next step?22:49
superschnellThere is no need to jump to conclusions yet, we're just guessing at this point22:49
sybaritenyeah i understand22:49
superschnellstat /etc/mysql/conf.d22:49
Habbiels -ld /etc /etc/mysql /etc/mysql.conf.d22:49
superschnellOne of those22:49
TJ-Could also be an apparmor issue22:49
Habbiedmesg22:50
superschnellAnd you can still eventually run strace after you've listed its uid/gid ownership and permissions22:51
sybaritenso stat tells me some memory related stuff regarding a file?   https://paste.ubuntu.com/p/JdFmv2gm6T/22:52
=== Guest40585 is now known as catalase
Habbieoops22:52
Habbiels -ld /etc /etc/mysql /etc/mysql/conf.d22:52
Habbiebut, your output has all we need on that22:52
sybaritenah ofcourse.... yes one sec22:52
sybaritenok22:52
Habbieso permissions on dirs are not the problem22:52
Habbiethe stat call covers the bit i typoed22:52
superschnellWell, at this point I'm inclined towards strace, but one might consider it overkill22:54
TJ-Looks to be related to Bug #143536822:54
ubottubug 1435368 in apparmor (Ubuntu) "dh_apparmor does not assist postinst scripts that need to run the constrained binary before the postinst completes" [Low,Confirmed] https://launchpad.net/bugs/143536822:54
sybaritenHabbie: okay yeah no its rw by root so thats good i guess?22:55
TJ-sybariten: try this: "sudo apparmor_parser -r -T -W /etc/apparmor.d/usr.sbin.mysqld"22:56
Habbiesybariten, mysqld may not run as root; but group and other have r and x so reading should not be a problem22:56
superschnellTJ-: this is 5.7 though22:56
superschnellmight not matter22:56
TJ-sybariten: then try "sudo systemctl restart mysql"22:56
TJ-superschnell: I found that bug because it is referred to in the package's postinst script22:56
superschnellok22:57
superschnellsudo systemctl stop apparmor22:57
superschnell;-)22:58
sybaritensuperschnell: TJ- well apparmor is certainly something i dont have previous (explicit) experience of. The apparmor thing ran silently (i was root and didnt sudo), but the restart gave an error. Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.22:58
Lvl4SwordWhat's the method to get alt codes to work on Ubuntu? I've got AltGR working, but it only accepts 2 characters22:59
TJ-sybariten: OK, so it isn't an obvious missing apparmor profile or doesn't appear to be (you forced its install and the mysql service still failed)23:00
superschnellsybariten: I see no issues disabling it, at least temporarily for purposes of installing mysql, certainly not on a live system23:00
superschnellTJ-: oh, did I misunderstand?23:00
TJ-superschnell: not that I can tell :)23:01
superschnellWell, should he temporarily disable it then, or?23:01
sybaritenTJ-: ah, so that was what we were trying. Apparmor is something i can disable, and try an install after that?23:01
superschnellThat might work?23:01
TJ-Go for it :)23:02
superschnellsybariten: it's just a live system, I don't see the harm. I don't see you falling victim to a 0-day exploit right now ;-)23:02
sybaritenhehe ok. Yeah in theory the machine shoulnd even be exposed to the internet so ....  and i'm also only doing test stuff (on a machine that i reboot now and then) . So, systemctl stop apparmor ?23:03
superschnellIf you're already root, yeah, why not23:03
superschnellOtherwise, put sudo in front23:03
sybaritenBut what is the thing i want to try after that - an install with apt-get as i did first, or this  /usr/share/mysql/mysql-systemd-start pre  ?  I still don't understand how much is yet installed23:04
superschnellapt-get -f install23:04
superschnellI'd try that first, we'll see what happens23:04
sybaritenhmmm dependency problems....  https://paste.ubuntu.com/p/xbCps7m4CW/    does an apt-get -f install without any package name always go back to something i was doing previously ?23:06
Habbiesybariten, yes, -f will try to fix what is broken23:07
superschnellBut that means switching off apparmor didn't work or the error is caused by something else23:09
sybaritenyeah...23:12
SayonaHi question: What do you preffer in ubuntu: mariadb or mysql?23:13
TJ-sybariten: I'll try it in a virtual machine23:13
sybaritenTJ-: cool, i also have that on a win machine actually .... vmware23:13
sybaritenwith the same ISO i mean23:13
TJ-the only thing I can imagine is this is some kind of problem with the cow/tmpfs of the live image23:15
oerheksSayona, tons of discussions and comparison like https://kinsta.com/blog/mariadb-vs-mysql/ -- https://www.guru99.com/mariadb-vs-mysql.html23:15
oerheksuse the one you like best?23:15
superschnellTJ-: yeah23:15
superschnellTJ-: but it's unlikely on a standard live system, it's just weird23:16
TJ-all we need is an strace log23:16
oerheksSayona, and crossposting polls, please don't23:16
superschnellTJ-: wouldn't it just show us error 13 again, or would it show us more?23:16
superschnellI guess we shouldn't assume23:16
Sayonathnks23:16
Sayona:P23:16
superschnellsybariten: did you choose "install" rather than "try" or something?23:17
superschnellI'm not aware that would really make a difference in this day and age, but o23:17
superschnellok*23:18
sybaritenoh, and for the record....  if theres a suspicion there would be an actual HW problem with the USB memory i'm running off....  i had the same problem last night, with another computer with another USB memory with the same lubuntu on. I did not dig as deep into that error yesterday ofcourse but it started much in the same way.23:18
TJ-it does seem to be apparmor, here's another instance https://github.com/kubernetes/minikube/issues/7906#issuecomment-61948404423:19
sybaritensuperschnell: at what stage? bootup ?  no i think i let it go past 30seconds this time so it should have done try. I mean i arrived at tdesktop just as usual, with zero interaction23:19
TJ-here's the upstream bug https://bugs.mysql.com/bug.php?id=8228123:23
TJ-sybariten: try this: "aa-disable /usr/sbin/mysqld"  then "systemctl start mysql"23:24
sybaritenshoiuld i have aa-disable ?23:25
sybaritencause i don't , as an executable23:25
TJ-sybariten: ah, not by default23:25
sybaritenapparmor-utils or something?23:26
TJ-sybariten: lets just try removing it! "apparmor_parser -R -T -W -v /etc/apparmor.d/usr.sbin.mysqld"23:28
sybaritenwhat does that do?23:28
TJ-removes the apparmor profile for mysql23:29
TJ-this is to prove apparmor is the cause, so you an get the package configured, and then apt will be able to install packages again23:29
sybaritenok so lemme try the parser command first23:30
sybaritenremoval succeede but it said warning failed to create cache23:31
superschnellTJ-: any idea why stopping apparmor didn't work? I might learn from that. Not too familiar with apparmor23:32
TJ-that's fine, ignore that23:32
TJ-superschnell: did it actually get stopped though?23:32
superschnellTJ-: well his output was silent, but I suppose we don't really know23:33
TJ-Looking at the apparmor profile it has23:33
TJ-# Allow config access23:33
TJ-  /etc/mysql/** r,23:33
superschnellYeah, I believe the bug report you mentioned immediately23:33
sybaritenTJ-: shall i try a new apt-get -f install , as root?23:33
TJ-but from the way I read the 'pre' action it wants to *write* to /etc/mysql/mysql.conf.d/<somefile> - if so that'd explain it23:34
superschnellJust that I like to drill these sorts of incidents into my mind, because I'm oldschool and I when I am root, I expect full access without some security toolkit interfering, it's just a tic or an anachronistic preference I suppsoe23:34
TJ-sybariten: just try "systemctl start mysql" which'll re-execute that 'pre' action23:34
TJ-superschnell: but it isn't YOU being stopped, it is the 'mysql' user :)23:35
superschnellTJ-: then it should be root as well, not user mysql, but that wasn't mentioned in the report, so presumable it runs as root23:35
TJ-superschnell: or more accurately, the mysqld process23:35
superschnellpresumably* ffs23:35
sybaritenTJ-: mmmyeap, no complaints now.23:35
TJ-sybariten: OK, so that confirms that the apparmor profile is the issue...  it doesn't affect 18.04 mysql-server install in an LXD container, and I'd assume both would pull in the same version from the archives which makes this weirder23:36
TJ-going to try the virtual machine now23:36
sybaritenok23:36
TJ-Reproduced :)23:40
sybaritenAh you get the same error? Well thats reassuring  :)23:41
superschnellTJ-: Does apparmor work the same way in your LXD container?23:43
superschnellsybariten: turns out you had no way of preventing this and it's a damn bug23:43
superschnellWell, bug, it's a failure to synchronise expecations between two software package development teams23:44
superschnellNo less annoying though23:44
TJ-# Allow config access23:44
TJ-  /etc/mysql/** r,23:44
TJ-oops, wrong one!23:44
TJ-OK, the problem is the overlayfs, apparmor is denying an open() on upper/etc/mysql/conf.d23:46
superschnellSo that's a new bug?23:50
TJ-no, it is Bug #1804334  - I'm going to edit the bug title to point out this is a live / overlayfs issue23:51
ubottubug 1804334 in mysql-5.7 (Ubuntu) "package mysql-server-5.7 5.7.24-0ubuntu0.18.04.1 failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/180433423:51
sybaritensuperschnell: aha? A bug on which side, so to speak, do you think?23:51
superschnellsybariten: the problem is that apparmore doesn't allow access to a postinst script23:52
superschnellapparmor*23:53
sybaritenAha okay23:53
sybaritenbut.... this is then different when comparing a live OS vs an installed (l)ubuntu?23:53
superschnellIt appears to, because the prefix path isn't in the apparmor config, looks like23:54
superschnellTJ-: correct me if I'm wrong though23:55
superschnellIsn't it a bit of a PITA to coordinate every release one makes with the apparmor team, or am I mistaken about that requirement23:56
TJ-sybariten: correct, because the Live env is a combination of a read-only file system image with an overlay tmpfs (RAM) to make it work23:57
superschnellIf you circumscribe application and script permissions this narrowly, your circumscriptions effectively become a component of upstream development, do they not?23:57
TJ-no - it is up to the package maintainers to write and ship the apparmor profiles23:57
superschnellRight23:57
TJ-this is very much NOT an expected scenario!23:57
TJ-I've updated that bug report with a preface about why it occurs23:58
superschnellHmmm, so you can still always install mysql with any sort of apparmor profile manually23:58
superschnellwithout*23:58
superschnellTJ-: nice work man23:58
TJ-we don't generally expect people to be installing a database in a RAM file system :)23:59
sybaritenTJ-: aha. i see. And i guess none of this would be different if i tried with a ubuntu iso instead of lubuntu23:59
TJ-sybariten: correct23:59

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