Tuesday, January 18, 2022

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Select the rows containing a certain word in the 1st column and having the digits in the 1st column greater than a specific value

Posted: 18 Jan 2022 03:32 AM PST

Select the rows containing a 'G' in 1st column and having the digits greater than 50 as shown below:

Input file:

764M    qa11279_TPK0002730_50901083/  762M    qa10589_TPK0002730_50796634/  11G     qa17805_TPK0001664_51330191/  56G     qa15384_TPK0001664_51232746/  140G    qa29996_TPK0000949_51951816/  

Output file:

56G     qa15384_TPK0001664_51232746/  140G    qa29996_TPK0000949_51951816/  

Cannot install amdgpu on Pop OS

Posted: 18 Jan 2022 02:32 AM PST

I am installing amdgpu version 21.40.1 (I need it for some programs) and constantly get this error: E: Package 'linux-modules-extra-5.15.11-76051511-generic' has no installation candidate. I tried running as sudo (same error) and I tried modding the script to use apt instead of apt-get (same error, except a red E). The command I use is sudo amdgpu-install --usecase=workstation --vulkan=pro --opencl=rocr,legacy

Cron not sending email, command line email works

Posted: 18 Jan 2022 02:12 AM PST

I have installed ssmtp on an raspberry pi running Raspbian 10 Buster. Email from the command line, e.g. using mail works fine. However, I have also configured a user's cron job to send email by adding the MAILTO variable to the file.

# Edit this file to introduce tasks to be run by cron.  #   # Each task to run has to be defined through a single line  # indicating with different fields when the task will be run  # and what command to run for the task  #   # To define the time you can provide concrete values for  # minute (m), hour (h), day of month (dom), month (mon),  # and day of week (dow) or use '*' in these fields (for 'any').  #   # Notice that tasks will be started based on the cron's system  # daemon's notion of time and timezones.  #   # Output of the crontab jobs (including errors) is sent through  # email to the user the crontab file belongs to (unless redirected).    MAILTO="person1@myredacteddomain.tld,person2@myredacteddomain.tld"    # we need to set the user path to add the system scripts directory /usr/local/sbin  # I tried with PATH=$PATH:/usr/local/sbin but it used this verbatim in the path  PATH=/usr/sbin:/usr/bin:/bin:/usr/local/sbin:    #   # For example, you can run a backup of all your user accounts  # at 5 a.m every week with:  # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/    # For more information see the manual pages of crontab(5) and cron(8)  #   # m h  dom mon dow   command    26 3 * * * cronic python3 ~/redacted_directory_name/redacted_script_name.py  50 16 * * * echo "Testing cron email" > ~/cron_email_test.txt  

as I understand from other online searches (correct me if I'm wrong), cron uses sendmail by default to send emails.

Sendmail is available on the system, but it is really ssmtp

$ which sendmail  /usr/sbin/sendmail  $ ls -l /usr/sbin/sendmail   lrwxrwxrwx 1 root root 5 Jul 20  2014 /usr/sbin/sendmail -> ssmtp  

On this machine I have configured ssmtp to use an external SMTP server to send mail.

cron doesn't send email either for root or another non-sudo user.

So, why is cron not sending email, and how can I fix it?

Upgrading opensnitch fails

Posted: 18 Jan 2022 01:51 AM PST

I had never have problem with opensnitch. Now when trying to update from 1.5.0.r6.9770cf5-1 to 1.5.0.r37.bb25362-1 using yay I get this error:

cannot find package "github.com/golang/protobuf/protoc-gen-go" in any of:          /usr/lib/go/src/github.com/golang/protobuf/protoc-gen-go (from $GOROOT)          /home/me/.cache/yay/opensnitch-git/src/gopath/src/github.com/golang/protobuf/protoc-gen-go (from $GOPATH)  ==> ERROR: A failure occurred in build().      Aborting...   -> error making: opensnitch-git  

I have tried go get github.com/golang/protobuf/protoc-gen-go and got protoc-gen-go in $HOME/go/bin but still error exist. I don't set $GOPATH so it is $HOME/go by default (changing it doesn't help).

What I am doing wrong?

Cgroup and process memory statistics mismatch

Posted: 18 Jan 2022 01:38 AM PST

I am trying to set up some monitoring to see when a service is using too much memory. The memory usage can be read from two places:

  • the /proc/<pid>/status for the pid, or
  • the /sys/fs/cgroup/<group-id>/memory.stat for the control group it runs in.

The service is started by systemd, so it gets its own control group, and because it sometimes starts child processes that I need to include in the statistics, and because the path is constant across restarts, the control group statistic is more appropriate.

Unfortunately the numbers don't seem to match. Here is a sample of the values at a point when no subprocesses are running (the command is exactly as executed except for the service name, and the result is exactly as obtain except non-memory-related items removed):

# cat /sys/fs/cgroup/system.slice/some.service/memory.stat /proc/$(cat /sys/fs/cgroup/system.slice/some.service/cgroup.procs)/status  anon 5873664  file 2408448  kernel_stack 491520  slab 962560  sock 0  shmem 61440  file_mapped 405504  file_dirty 0  file_writeback 0  inactive_anon 0  active_anon 5853184  inactive_file 1916928  active_file 360448  unevictable 0  slab_reclaimable 270336  slab_unreclaimable 692224  pgfault 60258  pgmajfault 99  pgrefill 0  pgscan 0  pgsteal 0  pgactivate 0  pgdeactivate 0  pglazyfree 0  pglazyfreed 0  workingset_refault 0  workingset_activate 0  workingset_nodereclaim 0  …  VmPeak:   494812 kB  VmSize:   494164 kB  VmLck:         0 kB  VmPin:         0 kB  VmHWM:     25836 kB  VmRSS:     25484 kB  RssAnon:            5468 kB  RssFile:           20016 kB  RssShmem:              0 kB  VmData:   464776 kB  VmStk:       132 kB  VmExe:       180 kB  VmLib:     23940 kB  VmPTE:       156 kB  VmSwap:        0 kB  voluntary_ctxt_switches:        9  nonvoluntary_ctxt_switches:     620  

I would consider the appropriate value to be VmRSS (= RssAnon + RssFile + RssShmem) from the process statistic. But while I would think that anon of the group should be RssAnon of the process and file of the group should be RssFile of the process, they don't match. While anon is 5736 KB, RssAnon is only 5468 KB, and for file the difference is even bigger, with file being only 2352 KB, but RssFile being 20016 KB, almost order of magnitude difference.

Also there is memory.current file with one value that approximately matches anon + file + kernel_stack + slab + sock + shmem, but I don't see any matching value in the process status.

So why are the numbers so different, and which are more indicative of how much memory pressure the application is exerting on the system?

Note: using cgroup2 on kernel 4.19.72 (slightly stale embedded BSP).

Problem adding Android Bliss OS to GRUB

Posted: 18 Jan 2022 03:00 AM PST

Here's what's going on: I have an ACER laptop and it has Linux Mint, Ubuntu, Windows. It had an old Linux Mint Sarah partition that I reformatted into NTFS for a Bliss OS installation.

I went through with the installation on the partition and launched it once it was finished, all is well. After rebooting the computer, I don't see it in the GRUB menu. Okay, that happened before with other installations and I update-grub.

Reboot again and nothing.

I went into boot order because sometimes the partition might show there but there is nothing.

Next time I go to reinstall it shows that the partition /dev/sda7 has the Android installed. When I go into the disk utility on my Mint it also says the partition has android.

How do I add it to the GRUB menu and generally access it? (Also: Secure Boot is disabled in the Setup)

Utility mutt - images in html template are not displayed

Posted: 18 Jan 2022 12:20 AM PST

Images in html template are not displayed by using Mutt.

Command

mutt -e "set content_type=text/html" -a lb.png -s "Test Mail" user@example.com < mail.html  

mail.htm

<img src="cid:lb.png" />  

How to make zsh autocomplete suggest flags of the inner executable of a wrapper?

Posted: 18 Jan 2022 12:16 AM PST

I'm using Arch Linux with zsh. I'm using devour as a wrapper for other commands, using it like devour cmd args.... I want zsh autocomplete to suggest cmd's flags/arguments after I've typed out cmd, making devour's autocomplete similar to sudo but without flags for devour. For example, typing devour id <TAB> should suggest flags for id.

I've checked /usr/share/zsh/functions/Completion/Unix/_sudo but I don't know much about zsh scripting for autocomplete so I don't know what I should extract from it to get the desired behavior.

How can I create an autocomplete script for such a wrapper?

Touchpad is only working when entered bios setup during startup

Posted: 18 Jan 2022 01:45 AM PST

I am trying to figure out what may be the cause that a touchpad on my hp notebook is working only if I enter bios setup (whether by pressing esc at startup or from grub) and by adding i8042.nopnp to the kernel command line. Both operations are necessary since merely adding i8042 parameter does make the touchpad discoverable but unresponsive and just entering the setup does not make anything to my knowledge. Multiple solutions that I have found (most notably adding other i8042.xxx parameters) gave no positive results whatsoever (literally, neither xinput nor dmesg outputs have not changed). By bios setup I mean a dialog where I can choose whether to open bios settings, change boot order, boot from network, launch UEFI diagnostics tool etc.

My notebook's model is HP 15s-eq1017nw with a mobile Ryzen APU (4500U if it matters), no discrete GPU. The firmware versions I have tested multiple distros on (specifically: Ubuntu 21.10 and 20.04 LTS, Linux MX 21 both "ahs" and standard, and the current Manjaro ) are F.34 Rev.A and F.54 Rev.A.

Before going into dmesg and xinput outputs I would like to emphasize that I have found my "solution" by a mere coincidence so there is no know-how behind it.

Just for the record, bluetooth, wifi, keyboard and the display have worked out of the box. It is just the touchpad that is tricky.

dmesg output when the touchpad is working (i.e. when I add i8042.nopnp to the kernel options and enter the bios setup): https://pastebin.com/ZHu1iSp4

dmesg output when I just add the i8042.nopnp but skip entering the bios setup: https://pastebin.com/mxWX9CpL

Both outputs were made just after logining in.

The touchpad is recognized (both on Windows 10 and on Linux) as as Elantech touchpad:

(xinput when it is working)

⎡ Virtual core pointer                      id=2    [master pointer  (3)]  ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]  ⎜   ↳ ELAN071A:00 04F3:30FD Touchpad            id=10   [slave  pointer  (2)]  ⎜   ↳ ETPS/2 Elantech Touchpad                  id=12   [slave  pointer  (2)]  ⎜   ↳ ELAN071A:00 04F3:30FD Mouse               id=9    [slave  pointer  (2)]  ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]      ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]      ↳ Video Bus                                 id=6    [slave  keyboard (3)]      ↳ Power Button                              id=7    [slave  keyboard (3)]      ↳ HP TrueVision HD Camera: HP Tru           id=8    [slave  keyboard (3)]      ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]      ↳ HP WMI hotkeys                            id=13   [slave  keyboard (3)]      ↳ ACPI Virtual Keyboard Device              id=14   [slave  keyboard (3)]    

(xinput when the touchpad is detected but it does not move the cursor, i.e. when I don't enter the bios setup)

⎡ Virtual core pointer                      id=2    [master pointer  (3)]  ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]  ⎜   ↳ ETPS/2 Elantech Touchpad                  id=10   [slave  pointer  (2)]  ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]      ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]      ↳ Video Bus                                 id=6    [slave  keyboard (3)]      ↳ Power Button                              id=7    [slave  keyboard (3)]      ↳ HP TrueVision HD Camera: HP Tru           id=8    [slave  keyboard (3)]      ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]      ↳ ACPI Virtual Keyboard Device              id=11   [slave  keyboard (3)]      ↳ HP WMI hotkeys                            id=12   [slave  keyboard (3)]    

Update 1

I just checked what does grub do when it enters the startup menu (this is what I called bios setup earlier) and it invokes the fwsetup command (or whatever it is).

I wonder what happens when a machine enters this menu/state since this action makes touchpad not only discoverable but also working.

And before anyone asks, waiting before launching Linux does solve the issue.

connected to wifi no internet

Posted: 18 Jan 2022 12:14 AM PST

Background:

Wifi was working for months. My computer semi froze (most of the programs I was running were killed and my file manager was glitching out) The termimal worked fine so I rebooted my pc from there (sudo reboot). Logging in took way waaaay longer than usual (30s+ more than usual) and I couldn't access internet anymore.

Updated kernel somewhere in december of last year. Have rebooted a few time since.

What have I tried:

  • phone on same wifi works fine
  • I rebooted my pc a couple of times
  • tried to connect using mobile hotspot. Pc connects to network but still no internet
  • ping -c 3 8.8.8.8 gives 3 packets transmitted, 0 received, 100% packet loss (same thing with mobile hotspot)

Relevant logs: Pastebin

lspci    03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822]      DeviceName: Realtek RTL8822BE 802.11 bgn 1x1 WiFi + BT 4.2 Combo Adapter       Subsystem: Hewlett-Packard Company Realtek RTL8822BE 802.11ac 2 × 2 Wi-Fi + Bluetooth 4.2 Combo Adapter (MU-MIMO supported) [103c:831b]    iwconfig    wlo1      IEEE 802.11  ESSID:"WiFi-5.0"              Mode:Managed  Frequency:5.26 GHz  Access Point: <MAC 'WiFi-5.0' [AC1]>               Bit Rate=58.5 Mb/s   Tx-Power=20 dBm               Retry short limit:7   RTS thr:off   Fragment thr:off            Encryption key:off            Power Management:on            Link Quality=44/70  Signal level=-66 dBm              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0            Tx excessive retries:2  Invalid misc:1   Missed beacon:0  

TLDR: internet used to work, forced reboot, can still connect to wifi but no internet. Other devices can use the wifi

Edit:

(Had to type it by hand so there might be typos) Ifpconfig wlo1

Wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.58 netmask 255.255.255.0 broadcast 192.168.1.255  Inet6 fe80::(etc) prefixlen 64 scopeid 0x20<link>  Ether c0::(etc) txqueuelen 1000 (ethernet)  RX packets 43239 bytes 639280 (6.0 MiB)  RX errors 0 dropped 0 overruns 0 frame 0  TX packets 29538 bytes 3386511 (3.1Mib)  TX errors 0 dropped 0 overruns 0 carriers 0 collisions 0  

ip r | grep default (I think this is the router ip) pinging this gives me the same result as before. 100% package loss

Final edit: thank you so so much!!! It turns out my firewall rules somehow got messed up? Even though I hadn't touched them in years. I just turned them off completely.

How to have "apt search" give one-line summaries?

Posted: 18 Jan 2022 03:21 AM PST

apt-cache gives one line summaries:

$ apt-cache search conway  golly - Game of Life simulator using hashlife algorithm  libclass-delegator-perl - Perl module for a simple and fast object-oriented delegation  ...  

However, apt search does not:

$ apt search conway  Sorting... Done  Full Text Search... Done  golly/impish 3.3-1build1 amd64    Game of Life simulator using hashlife algorithm  libclass-delegator-perl/impish,impish 0.09-4.1 all    Perl module for a simple and fast object-oriented delegation  ...  

There is an apt configuration option that makes it return one line summaries, but I cannot figure out what it is. What is this -o option, and where is it documented?

Automatic time synchronization: `ntpdate` works but `chrony` does not

Posted: 18 Jan 2022 02:56 AM PST

I have a problem with time synchronization of my Linux server. Both this machine and the NTP server are located in a (smaller) university data center hence the local address.

What is strange is that the ntpdate command works:

ntpdate -u 172.16.0.25  

with the output:

17 Jan 15:03:53 ntpdate[25993]: adjust time server 172.16.0.25 offset 0.036043 sec  

However, the chronyd does not (it simply hangs):

chronyd -q 'server 172.16.0.25 iburst'  

I was trying all things to set the automatic time sync using ntpd but did not succeed and finally resorted to chrony but still cannot figure it out.

Here's what happened with ntpd. I installed ntpdate using the instructions on https://vitux.com/how-to-setup-ntp-server-and-client-on-debian-10. The conf file has a command

server 172.16.0.25 prefer iburst  

while the system status ntp reports

Jan 18 10:26:11 akulab1 ntpd[26957]: kernel reports active service TIME_ERROR: 0x41: Clock Unsynchronized  

The ntpq -p has the following output

HKS-SRV01.unica .LOCL.           1 u    9   64   15    0.557  2275.65   9.515 –   

However, after a while the service reports Jan 18 10:31:01 akulab1 ntpd[26957]: ntpd exiting on signal 15 (Terminated) as NTP sync did not succeed. But, the ntpdate -u 172.16.0.25 reports synchronization: 18 Jan 10:33:13 ntpdate[26990]: step time server 172.16.0.25 offset 2.282101 sec (if I am not mistaken...) – ksonofre 7 mins ago

Here is my /etc/ntp.conf file:

driftfile /var/lib/ntp/ntp.drift    leapfile /usr/share/zoneinfo/leap-seconds.list    statistics loopstats peerstats clockstats  filegen loopstats file loopstats type day enable  filegen peerstats file peerstats type day enable  filegen clockstats file clockstats type day enable    server 172.16.0.25 prefer iburst    restrict -4 default kod notrap nomodify nopeer noquery limited  restrict -6 default kod notrap nomodify nopeer noquery limited    restrict 127.0.0.1  restrict ::1    restrict source notrap nomodify noquery  

I have restarted the NTP service again: systemctl restart ntp

The output of the ntpq -np is the following:

root@akulab1:~# ntpq -np       remote           refid      st t when poll reach   delay   offset  jitter  ==============================================================================   172.16.0.25     .LOCL.           1 u   63   64  377    0.518  104.685  14.815  

However, the service (systemctl status ntp) still reports:

Jan 18 11:04:10 akulab1 ntpd[27089]: kernel reports TIME_ERROR: 0x4041: Clock Unsynchronized  

And, after I set the timedatectl set-ntp true the NTP service simply shuts down, i.e. reports inactive.


The last option is to simply make a cron job with the above ntpdate -u 172.16.0.25 but I would like to use a more elegant solution.

Thanks a bunch in advance!

ssh-add is always asking for passphrase - Automate it on bashrc

Posted: 18 Jan 2022 12:42 AM PST

I want to add to my bashrc the code:

eval $(ssh-agent -s)  ssh-add ~/.ssh/id_rsa  

but it is always asking to

Enter passphrase for /home/User/.ssh/id_rsa:

A friend of mine add the same snippet to bashrc and worked perfectly(without asking for passphrase and showing the message Identity added: /home/User/.ssh/id_rsa.

How can I do it in a way that I don't have to type the passphrase each time I entry on terminal and show me the info that Identity added?

Cannot launch xorg on intel graphics i5-8250U computer

Posted: 18 Jan 2022 02:05 AM PST

I bought a used computer on Ebay last week and have been trying to install Arch Linux (my usual OS). For the most part it went smoothly, it boots fine without any issues and I can get a TTY for my user.

The last step remaining was launching i3wm. However, startx isn't working.

I looked at the Xorg.0.log file and there appears to be a segfault:

[   134.360]   X.Org X Server 1.21.1.3  X Protocol Version 11, Revision 0  [   134.367] Current Operating System: Linux thinkpad-t480 5.16.0-arch1-1 #1 SMP PREEMPT Mon, 10 Jan 2022 20:11:47 +0000 x86_64  [   134.367] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=97a6e99b-b821-4676-9825-5f4b12fd9a64 rw loglevel=3 quiet cryptdevice=UUID=6f35e165-8b99-4b64-9b71-155ff64b0568:root root=/dev/mapper/root  [   134.372]    [   134.373] Current version of pixman: 0.40.0  [   134.375]    Before reporting problems, check http://wiki.x.org      to make sure that you have the latest version.  [   134.375] Markers: (--) probed, (**) from config file, (==) default setting,      (++) from command line, (!!) notice, (II) informational,      (WW) warning, (EE) error, (NI) not implemented, (??) unknown.  [   134.384] (==) Log file: "/home/keeyan/.local/share/xorg/Xorg.0.log", Time: Sat Jan 15 09:50:35 2022  [   134.387] (==) Using config directory: "/etc/X11/xorg.conf.d"  [   134.389] (==) Using system config directory "/usr/share/X11/xorg.conf.d"  [   134.390] (==) No Layout section.  Using the first Screen section.  [   134.390] (==) No screen section available. Using defaults.  [   134.390] (**) |-->Screen "Default Screen Section" (0)  [   134.390] (**) |   |-->Monitor "<default monitor>"  [   134.390] (==) No monitor specified for screen "Default Screen Section".      Using a default monitor configuration.  [   134.390] (==) Automatically adding devices  [   134.390] (==) Automatically enabling devices  [   134.390] (==) Automatically adding GPU devices  [   134.390] (==) Automatically binding GPU devices  [   134.390] (==) Max clients allowed: 256, resource mask: 0x1fffff  [   134.392] (WW) The directory "/usr/share/fonts/misc" does not exist.  [   134.392]    Entry deleted from font path.  [   134.392] (WW) The directory "/usr/share/fonts/TTF" does not exist.  [   134.392]    Entry deleted from font path.  [   134.392] (WW) The directory "/usr/share/fonts/OTF" does not exist.  [   134.392]    Entry deleted from font path.  [   134.392] (WW) The directory "/usr/share/fonts/Type1" does not exist.  [   134.392]    Entry deleted from font path.  [   134.394] (==) FontPath set to:      /usr/share/fonts/100dpi,      /usr/share/fonts/75dpi  [   134.394] (==) ModulePath set to "/usr/lib/xorg/modules"  [   134.394] (II) The server relies on udev to provide the list of input devices.      If no devices become available, reconfigure udev or disable AutoAddDevices.  [   134.394] (II) Module ABI versions:  [   134.394]    X.Org ANSI C Emulation: 0.4  [   134.394]    X.Org Video Driver: 25.2  [   134.394]    X.Org XInput driver : 24.4  [   134.394]    X.Org Server Extension : 10.0  [   134.394] (++) using VT number 1    [   134.396] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31  [   134.397] (II) xfree86: Adding drm device (/dev/dri/card0)  [   134.397] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0  [   134.397] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0  [   134.401] (--) PCI:*(0@0:2:0) 8086:5917:17aa:225d rev 7, Mem @ 0xe7000000/16777216, 0xc0000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/131072  [   134.401] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)  [   134.401] (II) LoadModule: "glx"  [   134.401] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so  [   134.408] (II) Module glx: vendor="X.Org Foundation"  [   134.408]    compiled for 1.21.1.3, module version = 1.0.0  [   134.408]    ABI class: X.Org Server Extension, version 10.0  [   134.408] (==) Matched intel as autoconfigured driver 0  [   134.408] (==) Matched modesetting as autoconfigured driver 1  [   134.408] (==) Matched fbdev as autoconfigured driver 2  [   134.408] (==) Matched vesa as autoconfigured driver 3  [   134.408] (==) Assigned the driver to the xf86ConfigLayout  [   134.408] (II) LoadModule: "intel"  [   134.408] (WW) Warning, couldn't open module intel  [   134.408] (EE) Failed to load module "intel" (module does not exist, 0)  [   134.408] (II) LoadModule: "modesetting"  [   134.408] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so  [   134.414] (II) Module modesetting: vendor="X.Org Foundation"  [   134.414]    compiled for 1.21.1.3, module version = 1.21.1  [   134.414]    Module class: X.Org Video Driver  [   134.414]    ABI class: X.Org Video Driver, version 25.2  [   134.414] (II) LoadModule: "fbdev"  [   134.414] (WW) Warning, couldn't open module fbdev  [   134.414] (EE) Failed to load module "fbdev" (module does not exist, 0)  [   134.414] (II) LoadModule: "vesa"  [   134.414] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so  [   134.415] (II) Module vesa: vendor="X.Org Foundation"  [   134.415]    compiled for 1.21.1.1, module version = 2.5.0  [   134.415]    Module class: X.Org Video Driver  [   134.415]    ABI class: X.Org Video Driver, version 25.2  [   134.415] (II) modesetting: Driver for Modesetting Kernel Drivers: kms  [   134.415] (II) VESA: driver for VESA chipsets: vesa  [   134.415] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)  [   134.415] (II) modeset(0): using drv /dev/dri/card0  [   134.415] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support  [   134.415] (II) modeset(0): Creating default Display subsection in Screen section      "Default Screen Section" for depth/fbbpp 24/32  [   134.415] (==) modeset(0): Depth 24, (==) framebuffer bpp 32  [   134.415] (==) modeset(0): RGB weight 888  [   134.415] (==) modeset(0): Default visual is TrueColor  [   134.415] (II) Loading sub module "glamoregl"  [   134.415] (II) LoadModule: "glamoregl"  [   134.415] (II) Loading /usr/lib/xorg/modules/libglamoregl.so  [   134.422] (II) Module glamoregl: vendor="X.Org Foundation"  [   134.422]    compiled for 1.21.1.3, module version = 1.0.1  [   134.422]    ABI class: X.Org ANSI C Emulation, version 0.4  [   134.531] (EE)   [   134.531] (EE) Backtrace:  [   134.536] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x89) [0x55bf51a04049]  [   134.536] (EE) 1: /usr/lib/Xorg (0x55bf518b4000+0x15ae69) [0x55bf51a0ee69]  [   134.536] (EE) 2: /usr/lib/libpthread.so.0 (0x7fc5e6e05000+0x13870) [0x7fc5e6e18870]  [   134.537] (EE) 3: /usr/lib/libLLVM-13.so (0x7fc5dd6dd000+0x1acb683) [0x7fc5df1a8683]  [   134.538] (EE) 4: /usr/lib/libLLVM-13.so (0x7fc5dd6dd000+0x98d5f8) [0x7fc5de06a5f8]  [   134.538] (EE) 5: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0xfe2e) [0x7fc5e7291e2e]  [   134.538] (EE) 6: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0xff1c) [0x7fc5e7291f1c]  [   134.538] (EE) 7: /usr/lib/libc.so.6 (_dl_catch_exception+0xe5) [0x7fc5e6d6cd45]  [   134.538] (EE) 8: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0x1420a) [0x7fc5e729620a]  [   134.538] (EE) 9: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7fc5e6d6cce8]  [   134.538] (EE) 10: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0x139bb) [0x7fc5e72959bb]  [   134.538] (EE) 11: /usr/lib/libdl.so.2 (0x7fc5e706d000+0x236c) [0x7fc5e706f36c]  [   134.538] (EE) 12: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7fc5e6d6cce8]  [   134.538] (EE) 13: /usr/lib/libc.so.6 (_dl_catch_error+0x33) [0x7fc5e6d6cdb3]  [   134.538] (EE) 14: /usr/lib/libdl.so.2 (0x7fc5e706d000+0x2b99) [0x7fc5e706fb99]  [   134.538] (EE) 15: /usr/lib/libdl.so.2 (dlopen+0x48) [0x7fc5e706f3f8]  [   134.538] (EE) 16: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x66fc) [0x7fc5e600c6fc]  [   134.538] (EE) 17: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x85a0) [0x7fc5e600e5a0]  [   134.539] (EE) 18: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x871f) [0x7fc5e600e71f]  [   134.539] (EE) 19: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x8f1f) [0x7fc5e600ef1f]  [   134.539] (EE) 20: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x6885) [0x7fc5e600c885]  [   134.539] (EE) 21: /usr/lib/libgbm.so.1 (gbm_create_device+0x11a) [0x7fc5e600c9ca]  [   134.539] (EE) 22: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x67) [0x7fc5e5d6d697]  [   134.539] (EE) 23: /usr/lib/xorg/modules/drivers/modesetting_drv.so (0x7fc5e7264000+0x1096f) [0x7fc5e727496f]  [   134.539] (EE) 24: /usr/lib/Xorg (InitOutput+0x18b3) [0x55bf51a2b943]  [   134.539] (EE) 25: /usr/lib/Xorg (0x55bf518b4000+0x3c334) [0x55bf518f0334]  [   134.539] (EE) 26: /usr/lib/libc.so.6 (__libc_start_main+0xd5) [0x7fc5e6c5bb25]  [   134.539] (EE) 27: /usr/lib/Xorg (_start+0x2e) [0x55bf518f175e]  [   134.539] (EE)   [   134.539] (EE) Segmentation fault at address 0x7fc9e3ec23b0  [   134.539] (EE)   Fatal server error:  [   134.539] (EE) Caught signal 11 (Segmentation fault). Server aborting  [   134.539] (EE)   [   134.539] (EE)   Please consult the The X.Org Foundation support        at http://wiki.x.org   for help.   [   134.539] (EE) Please also check the log file at "/home/keeyan/.local/share/xorg/Xorg.0.log" for additional information.  [   134.540] (EE)   [   134.565] (EE) Server terminated with error (1). Closing log file.  

I decided to try with xf86-video-intel which sometimes helps and sometimes hurts. Once installed it went a little bit better. i3 launched fine, but now any GUI apps that I try to launch coredump (e.g. nm-applet, alacritty, brave etc.):

Jan 15 10:23:05 thinkpad-t480 systemd[1]: Started Process Core Dump (PID 3678/UID 0).  Jan 15 10:23:05 thinkpad-t480 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'  Jan 15 10:23:05 thinkpad-t480 kernel: audit: type=1130 audit(1642242185.889:130): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'  Jan 15 10:23:06 thinkpad-t480 systemd-coredump[3679]: Process 3677 (alacritty) of user 1000 dumped core.                                                                                                                Module linux-vdso.so.1 with build-id 3b23eb9fafd9a6683da8f2a15381914a95d54b1e                                                        Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed                                                        Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e                                                        Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70                                                        Module libxml2.so.2 with build-id b710b880b0d4e9c93554fa632129db44c20632cd                                                        Module libncursesw.so.6 with build-id 859adb8b03a5655151b4da104bc4b326a0d4bc8c                                                        Module libedit.so.0 with build-id 4b0babfcad161c2ad0af6e59e2493258db23a331                                                        Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42                                                        Module libvulkan.so.1 with build-id 0c8486d8689e18bd837da80fe4d17664a248bc10                                                        Module libdrm_nouveau.so.2 with build-id ee16fa6a4d0bd08f5448cfc046ccb76b49aaa8a3                                                        Module libdrm_amdgpu.so.1 with build-id 30d019987d514b23115b47d6b47c1e45c18fdbaf                                                        Module libelf.so.1 with build-id a4fb077dcec6ee26a5fab1fa10c59bd03b1078e4                                                        Module libdrm_radeon.so.1 with build-id 5d1615e0467d0a34a5a82cbd4ebc84851e116307                                                        Module libsensors.so.5 with build-id dc8b2c1c0d8525411aca188ea3cc3fb86d381d30                                                        Module libzstd.so.1 with build-id 6214183688018e3fba6d66db10c2c8d0b45e0578                                                        Module libLLVM-13.so with build-id 82982c299d46219d0eab8ee9cb8bb7365483453b                                                        Module iris_dri.so with build-id ebdb09c64ad01a77f899d04accb3d2e414fe5cf1                                                        Module libstdc++.so.6 with build-id 9b5eeeb149bf3c4efe787fb398b44f00507aec87                                                        Module libxcb-xfixes.so.0 with build-id a6b197ace5b9b59f913f5969eb419a88d1194f47                                                        Module libxshmfence.so.1 with build-id 8876d9ccf620858795724ca24b9e567585a77cec                                                        Module libxcb-sync.so.1 with build-id dda14591103b01b1311906053bf1ca9e82ade35c                                                        Module libxcb-present.so.0 with build-id 68f5465258750e2397b1333b3ffc01ee33caa4e1                                                        Module libxcb-dri3.so.0 with build-id 9407a2480e09dc5a1dd9d9a0652fa8d32b328c91                                                        Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1                                                        Module libXxf86vm.so.1 with build-id 01e8243d0c6c971fa9e743e6e53d606b1cb76f6e                                                        Module libxcb-dri2.so.0 with build-id 2dd6e65129a809dab828a1d26215a3f7a363fcc8                                                        Module libxcb-glx.so.0 with build-id 8ad115382ad874165523dc5b4488c99d73bbc3c4                                                        Module libdrm.so.2 with build-id 457a1a1bd25f1d5541a10d3f16c5dc1440d77c7d                                                        Module libglapi.so.0 with build-id 9331aed5060062bcfafd463d36506312fab59549                                                        Module libGLX_mesa.so.0 with build-id 76cdb170e96b9ad2d09c67051436088c007f4b7b                                                        Module libGLX.so.0 with build-id 2a08836c6e6126ce9ff4496b6aacaf29ae9b4e7b                                                        Module libGLdispatch.so.0 with build-id 501765b3a78d668860fa54229b18107473aeda4c                                                        Module libGL.so.1 with build-id 912ac4f37a9fa2d5abcf7a9088c9983cfe46f12a                                                        Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c                                                        Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49                                                        Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa                                                        Module libXrandr.so.2.2.0 with build-id d4e869b5c72541e1de8f96b456248987ea52d51b                                                        Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0                                                        Module libXrender.so.1 with build-id 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3                                                        Module libXcursor.so.1 with build-id eb6315bcd7526aaf51b0a1307efdc587cea0a152                                                        Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478                                                        Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767                                                        Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7                                                        Module libglib-2.0.so.0 with build-id 220436a4e27f39372710df014d2517c0387eefa4                                                        Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2                                                        Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c                                                        Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955                                                        Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff                                                        Module libexpat.so.1 with build-id 16023a53e7b5bbdff92bd0bf2eebd36f9b5b879f                                                        Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d                                                        Module libharfbuzz.so.0 with build-id 1d9dee49dd99162c3f83eb3259c3c88c6b4cd7fe                                                        Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3                                                        Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60                                                        Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26                                                        Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc                                                        Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf                                                        Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996                                                        Module librt.so.1 with build-id 75484da2d6f1515189eefa076e0a40328834cd16                                                        Module libutil.so.1 with build-id af6d8200064ee6e6a01252884d166b44f0a6121b                                                        Module libgcc_s.so.1 with build-id 7f8508bb914546ada778809b64b99d234337d835                                                        Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a                                                        Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222                                                        Module libfontconfig.so.1 with build-id 1103a641395c7d3b42e49b793d3a9ea927c77bf6                                                        Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8                                                        Module alacritty with build-id 1e625a961519ee171ca24b2cbf8a2f2901d9132e                                                        Stack trace of thread 3677:                                                        #0  0x00007fd3e11c0683 n/a (libLLVM-13.so + 0x1acb683)                                                        #1  0x00007fd3e00825f8 _ZN4llvm3orc13MachOPlatform14notifyRemovingERNS0_15ResourceTrackerE (libLLVM-13.so + 0x98d5f8)                                                        #2  0x00007fd3e9052e2e call_init (ld-linux-x86-64.so.2 + 0xfe2e)                                                        #3  0x00007fd3e9052f1c _dl_init (ld-linux-x86-64.so.2 + 0xff1c)                                                        #4  0x00007fd3e8cb0d45 _dl_catch_exception (libc.so.6 + 0x138d45)                                                        #5  0x00007fd3e905720a dl_open_worker (ld-linux-x86-64.so.2 + 0x1420a)                                                        #6  0x00007fd3e8cb0ce8 _dl_catch_exception (libc.so.6 + 0x138ce8)                                                        #7  0x00007fd3e90569bb _dl_open (ld-linux-x86-64.so.2 + 0x139bb)                                                        #8  0x00007fd3e8ed836c n/a (libdl.so.2 + 0x236c)                                                        #9  0x00007fd3e8cb0ce8 _dl_catch_exception (libc.so.6 + 0x138ce8)                                                        #10 0x00007fd3e8cb0db3 _dl_catch_error (libc.so.6 + 0x138db3)                                                        #11 0x00007fd3e8ed8b99 n/a (libdl.so.2 + 0x2b99)                                                        #12 0x00007fd3e8ed83f8 dlopen (libdl.so.2 + 0x23f8)                                                        #13 0x00007fd3e7ed8208 n/a (libGLX_mesa.so.0 + 0x51208)                                                        #14 0x00007fd3e7edabc9 n/a (libGLX_mesa.so.0 + 0x53bc9)                                                        #15 0x00007fd3e7edbb5e n/a (libGLX_mesa.so.0 + 0x54b5e)                                                        #16 0x00007fd3e7ebe141 n/a (libGLX_mesa.so.0 + 0x37141)                                                        #17 0x00007fd3e7ebe954 n/a (libGLX_mesa.so.0 + 0x37954)                                                        #18 0x00007fd3e7ebed13 n/a (libGLX_mesa.so.0 + 0x37d13)                                                        #19 0x000055dcf1a4d59f n/a (alacritty + 0xa859f)                                                        #20 0x000055dcf1b11b71 n/a (alacritty + 0x16cb71)                                                        #21 0x000055dcf1a5c9a6 n/a (alacritty + 0xb79a6)                                                        #22 0x000055dcf1a589b9 n/a (alacritty + 0xb39b9)                                                        #23 0x000055dcf1a3264b n/a (alacritty + 0x8d64b)                                                        #24 0x000055dcf1b58f83 n/a (alacritty + 0x1b3f83)                                                        #25 0x000055dcf1a40689 n/a (alacritty + 0x9b689)                                                        #26 0x00007fd3e8b9fb25 __libc_start_main (libc.so.6 + 0x27b25)                                                        #27 0x000055dcf1a1011e n/a (alacritty + 0x6b11e)                                                        ELF object binary architecture: AMD x86-64  Jan 15 10:23:06 thinkpad-t480 systemd[1]: systemd-coredump@2-3678-0.service: Deactivated successfully.  Jan 15 10:23:06 thinkpad-t480 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'  Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1131 audit(1642242186.009:131): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'  Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD  Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD  Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD  Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:132): prog-id=0 op=UNLOAD  Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:133): prog-id=0 op=UNLOAD  Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:134): prog-id=0 op=UNLOAD  

I also tried the following xorg.conf (as well as a few different alterations, like disabling Accel) with and without xf86-video-intel, but it doesn't seem to help (found at https://bbs.archlinux.org/viewtopic.php?id=208252):

Section "Device"     Identifier  "Intel Graphics"     Driver      "intel"     Option      "AccelMethod"     "uxa"  EndSection  

I tried booting a Linux Mint live USB and everything works fine. I can launch the desktop environment, watch videos etc. without any issues. It also came pre-installed with Windows and Windows worked fine as well. Since I bought the PC second hand I ran all the bios diagnostics (for unrelated reasons) just to check that it's all okay and all tests passed as well. I also tried switching to linux-lts and that made no difference either :(

I've spent quite some time looking into this issue and haven't been able to figure it out. Any help is really appreciated :)

Resolving broken unmet dependency with libc6 on mint 20.2

Posted: 18 Jan 2022 03:34 AM PST

I work at a university where I am forced into the Microsoft ecosystem. Ugh. Given that reality, I'd like to install the linux OneDrive client.

https://github.com/abraunegg/onedrive

I am getting the following error and I can't resolve it.

$ sudo apt install onedrive  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:   onedrive : Depends: libc6 (>= 2.33) but 2.31-0ubuntu9.2 is to be installed              Depends: libphobos2-ldc-shared94 (>= 1:1.24.0) but it is not installable  E: Unable to correct problems, you have held broken packages.  

System and How I got here

I am running Linux Mint 20.2 with kernel 5.11:

$ lsb_release -a  No LSB modules are available.  Distributor ID: Linuxmint  Description:    Linux Mint 20.2  Release:    20.2  Codename:   uma    $ uname -r  5.11.0-46-generic  

I followed the installation instructions for the OneDrive client here:

https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md

noting that step 3 says to follow the Ubuntu 20.04 installation. When I do, I get the error list at the top of this post.

Typical apt commands show that I am up to date:

$ sudo apt-get update           Ign:1 http://packages.linuxmint.com uma InRelease  Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                  Hit:3 http://packages.linuxmint.com uma Release                                                                                                               Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                                     Hit:5 http://download.virtualbox.org/virtualbox/debian focal InRelease                                                                                        Hit:6 http://archive.canonical.com/ubuntu focal InRelease                                                                                                     Hit:7 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                        Hit:8 http://dell.archive.canonical.com focal InRelease                                                                                                       Get:9 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease [3,622 B]                                                                          Get:11 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                                                      Hit:12 https://repo.protonvpn.com/debian stable InRelease                                                                                          Hit:13 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_21.04 ./ InRelease  Get:14 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]  Fetched 340 kB in 2s (168 kB/s)       Reading package lists... Done    $ sudo apt-get upgrade -y  Reading package lists... Done  Building dependency tree         Reading state information... Done  Calculating upgrade... Done  0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.    $ sudo apt-get autoremove -y  Reading package lists... Done  Building dependency tree         Reading state information... Done  0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.    $ sudo apt-get autoclean -y  Reading package lists... Done  Building dependency tree         Reading state information... Done  

If you wonder about the one non-upgraded package, its snapd:

$ sudo apt-cache policy | tail  <omitted stuff>  Pinned packages:       snapd -> 2.51.1+20.04ubuntu2 with priority -10       snapd -> 2.49.2+20.04 with priority -10       snapd -> 2.48.3+20.04 with priority -10       snapd -> 2.44.3+20.04 with priority -10  

I get that I have 2.31-0ubuntu9.2 installed.

$ sudo apt-cache policy libc6  libc6:    Installed: 2.31-0ubuntu9.2    Candidate: 2.31-0ubuntu9.2    Version table:   *** 2.31-0ubuntu9.2 500          500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages          100 /var/lib/dpkg/status       2.31-0ubuntu9 500          500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages  

And I get that in need a more recent version of libc6. I assume that my current version of libc6 is included in 2.31-0ubuntu9.2

Two questions:

  • Why does apt report `2.31-0ubuntu9.2 is to be installed." It seems to me it's already installed.

  • What how can I resolve this issue? (Or do I just live with inefficient access to OneDrive by browser or running a virtual Windoze machine)

I'm sure I could dig around and find a way to upgrade libc6, but I'm wondering whether that's wise, given that it's a pretty foundational library.

Thanks for any information you can provide. I especially appreciate explanations of suggested solutions so I can continue to learn to effectively manage my computer.

How to screen share using slack and wayland in Manjaro Gnome?

Posted: 18 Jan 2022 03:16 AM PST

On Manjaro, I have installed com.slack.Slack in version 4.23.0 through flatpak.

Now, when I try to share a screen, I unexpectedly get a "Screen Share" popup that appears to be coming from Gnome. I expect to not see that at all but that I can select the app / screen directly from the underlaying slack Share Screen popup.

Overlay Screen Share that does not react to user input

The additional Screen Share popup would be fine, yet it also does not react on clicks. I cannot Cancel, Share and cannot even a select a screen nor an entire screen.

How to properly enable screen share?

Is it possible to show when an executable was run for the last time?

Posted: 17 Jan 2022 11:47 PM PST

Note that the FS is mounted with the relatime option (thus the recent last access time is not shown).

Is there a way to see when an executable (ELF 64-bit LSB executable) was run for the last time?

Using root access. The idea is that a complex production application can run the same exec that currently exists at two different places (pending installation). I just want to ensure that only one of them is run from now on, without interrupting anything (cannot temporarily remove one for instance ; it's 99% sure only one of them is used, but need to be 100% sure).

Merge every two lines after the pattern until next pattern

Posted: 18 Jan 2022 01:18 AM PST

File.txt

String1?  word1  word2  word3  word4    String2?  word5  word6  word7  word8  

Desired Output:

String1?  word1 | word2  word3 | word4    String2?  word5 | word6  word7 | word8  

Only pattern is Lines with /?$/ I tried:

sed '/\?$/{n;:l N;/\?$/b; :a; N; $!b a; s/\n\s\{1,\}/ | /g; bl}'  

but it didn't work. My current working solution:

sed '/\?$/{:a;N;/\n....-..-.. /!s/\n/ - /;ta;P;D}' | sed 's/^[- ]*//g;s/[ -]*$//g'  

... but it's a work-around and is extremely slow. Can anyone help with a single one liner without pipes and is a fast solution?

If an empty line doesn't exist, as in pattern ,$\|^$, and if ^$ is not there and is having another line with ?$, then how can we hold the buffer from ?$ to first non-greedy ?$ pattern and then print all lines except the last line and merge the last line with the next pattern buffer for search?

mail command sends body as attachment, unlike normal email client? How to stop this?

Posted: 17 Jan 2022 11:53 PM PST

I am using the mail command from mailutils on Ubuntu Linux 20.04. I am using it to send documents automatically to a service on the web which processes them. They provide an email address to which you can forward your document as an attachment.

When I use my normal email client, say, thunderbird, or SOGO mail, and manually send a document it works fine, and the document is received as expected and processed. However, when I use the mail command like this:

echo "The body of the email" | mail -s "just a test" someone@service.com -A my_attachment.pdf  

the remote service acts as though it has received two documents, the actual attachment, and also the body of the email as another attachment. This makes me think the mail command somehow sends the body as an attachment or something in a different way to other email programs I use. The emails from mail look fine in my own email client.

So how do I get my emails from mail to look like they only have one attachment, just like my manual emails? If not possible is there an alternative command line email program on Ubuntu which will act in the way I want?

Installing CUDA Toolkit (11.5) on Debian (11)

Posted: 18 Jan 2022 12:51 AM PST

The instructions to install CUDA Toolkit (11.5) on Debian (11) are nicely organized here: developer.nvidia.com/cuda-downloads.

But I seem to run in a small dependency issue, whether I try the deb (local) method or deb (network) method. My impression is that apt wants to install the 470 versions of nvidia related packages, whereas it should install the 495 versions.

If I run sudo apt install cuda then I obtain:

Reading package lists... Done  Building dependency tree... Done  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:   cuda-drivers-495 : Depends: nvidia-driver (>= 495.29.05) but it is not going to be installed                      Depends: libcuda1 (>= 495.29.05) but it is not going to be installed                      Depends: libnvcuvid1 (>= 495.29.05) but it is not going to be installed                      Depends: libnvidia-allocator1 (>= 495.29.05) but 470.74-1 is to be installed                      Depends: libnvidia-compiler (>= 495.29.05) but 470.74-1 is to be installed                      Depends: libnvidia-encode1 (>= 495.29.05) but it is not going to be installed                      Depends: libnvidia-fbc1 (>= 495.29.05) but it is not going to be installed                      Depends: libnvidia-opticalflow1 (>= 495.29.05) but it is not going to be installed                      Depends: libnvidia-ptxjitcompiler1 (>= 495.29.05) but 470.74-1 is to be installed                      Depends: libnvoptix1 (>= 495.29.05) but it is not going to be installed                      Depends: libxnvctrl-dev (>= 495.29.05) but it is not going to be installed                      Depends: nvidia-cuda-mps (>= 495.29.05) but 470.74-1 is to be installed                      Depends: nvidia-detect (>= 495.29.05) but 470.74-1 is to be installed                      Depends: nvidia-libopencl1 (>= 495.29.05) but 470.74-1 is to be installed                      Depends: nvidia-opencl-common (>= 495.29.05)                      Depends: nvidia-opencl-icd (>= 495.29.05) but it is not going to be installed                      Depends: nvidia-smi (>= 495.29.05) but it is not going to be installed                      Depends: nvidia-xconfig (>= 495.29.05) but 470.57.02-1 is to be installed                      Depends: nvidia-modprobe (>= 495.29.05)   libcufile-11-5 : Depends: liburcu6 but it is not installable   nvidia-libopencl1 : Conflicts: libopencl1                       Conflicts: libopencl1:i386                       Recommends: nvidia-opencl-icd but it is not going to be installed or                                   opencl-icd   ocl-icd-libopencl1 : Conflicts: libopencl1   ocl-icd-libopencl1:i386 : Conflicts: libopencl1  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  

I managed to install some dependencies by specifying the version manually, e.g. sudo apt install nvidia-settings=495.29.05-1 but this seems like an endless process.

Note: If I run sudo apt-cache policy nvidia-driver then I obtain:

nvidia-driver:    Installed: (none)    Candidate: 470.74-1    Version table:       495.29.05-1 500          500 https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64  Packages          500 file:/var/cuda-repo-debian11-11-5-local  Packages       470.74-1 990          990 http://deb.debian.org/debian testing/non-free amd64 Packages  

Does anyone know how I should proceed?

At the moment my /etc/apt/sources.list is as follows:

deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /  # deb-src https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /  deb http://deb.debian.org/debian/ bookworm contrib  deb http://deb.debian.org/debian/ testing main contrib non-free  

PS: I also tried the "runfile (local)" method, but after running sudo sh cuda_11.5.0_495.29.05_linux.run and selecting the components to install, I get "Installation failed" with no further details.

Simultaneous digital and analog output on pipewire

Posted: 18 Jan 2022 03:00 AM PST

i'm currently trying to configure pipewire to use both digital and analog output at the same time with different streams, like in windows. In pavucontrol currently i have to switch between "analog duplex" and "Digital stereo (IEC958) output + analog stereo input", this is not good especially when using pulseEffect, it causes all sorts of troubles when switching.

I have an x570 aorus master with a Realtek ALC1220-VB and on majaro is using Starship/Matisse HD audio controller

Thanks.

Edit: apparently using the pro audio profile did what i wanted for the output but now the analog input doesn't work: the two neither one of the two interfaces can retrieve any sound from the mic and the first one it doesn't have volume meter bar.

blkid doesn't doesn't print the device name on CentOS

Posted: 18 Jan 2022 02:40 AM PST

I am running a container with CentOS:

docker run -it centos bash  

I first check for its Label or UUID:

[root@3271c071fe0a /]# cat /proc/cmdline  BOOT_IMAGE=/boot/vmlinuz-5.3.0-1032-aws root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295  

Then I tried to use the Label (cloudimg-rootfs) and convert it to device name so I used blkid but it doesn't print anything:

[root@3271c071fe0a /]# blkid -L="cloudimg-rootfs"  [root@3271c071fe0a /]#    

I was expecting to get /dev/xvda1 because I checked it with lsblk:

[root@3271c071fe0a /]# lsblk  NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT  loop1     7:1    0 96.6M  1 loop  loop2     7:2    0 28.1M  1 loop  loop3     7:3    0 97.1M  1 loop  xvda    202:0    0    8G  0 disk  `-xvda1 202:1    0    8G  0 part /etc/hosts  

Why it doesn't print it?
I tried with =:
enter image description here

And without: enter image description here

pam_lastlog does not write to /var/log/lastlog

Posted: 18 Jan 2022 02:48 AM PST

I am using pamela with JupyterHub to open PAM sessions for my users. I am on CentOS 8 and I am using the login service. I can see in /var/log/secure

pam_unix(login:session): session opened for user testuser by (uid=0)

and in /var/log/messages

systemd[1]: Started Session 8341 of user testuser

Furthermore there are no erros logged in /var/log/{messages|secure|audit/audit.log}. But with a new user succesfull logged in to JupyterHub, the lastlog command still says that this user has never logged in. So I think I miss some requirements for pam_lastlog in order to write information to /var/log/lastlog. pam_open_session is called in a subprocess with root privileges. Maybe this subprocess needs to be tied to a pts or tty in order to write useful information to /var/log/lastlog? This is the /etc/pamd.d/login file:

#%PAM-1.0  auth       substack     system-auth  auth       include      postlogin  account    required     pam_nologin.so  account    include      system-auth  password   include      system-auth  # pam_selinux.so close should be the first session rule  session    required     pam_selinux.so close  session    required     pam_loginuid.so  session    optional     pam_console.so  # pam_selinux.so open should only be followed by sessions to be executed in the user context  session    required     pam_selinux.so open  session    required     pam_namespace.so  session    optional     pam_keyinit.so force revoke  session    include      system-auth  session    include      postlogin  -session   optional     pam_ck_connector.so  

this is in /etc/pamd.d/postlogin

#%PAM-1.0  # This file is auto-generated.  # User changes will be destroyed the next time authselect is run.    session optional                   pam_umask.so silent  session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet  session [default=1]                pam_lastlog.so nowtmp showfailed  session optional                   pam_lastlog.so silent noupdate showfailed  

and this is in /etc/pamd.d/system-auth

#%PAM-1.0  # This file is auto-generated.  # User changes will be destroyed the next time authselect is run.  auth        required      pam_env.so  auth        sufficient    pam_unix.so try_first_pass nullok  auth        required      pam_deny.so    account     required      pam_unix.so    password    requisite     pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=  password    sufficient    pam_unix.so try_first_pass use_authtok nullok sha512 shadow  password    required      pam_deny.so    session     optional      pam_keyinit.so revoke  session     required      pam_limits.so  -session     optional      pam_systemd.so  session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid  session     required      pam_unix.so  

CentOS 7 Linking sites in Apache conf folders without using a2ensite and a2dissiste

Posted: 18 Jan 2022 03:03 AM PST

I'm following this guide to create virtualhosts in my server, but my apache is running on CentOS 7, and I do not have the a2ensite command required at point 5.

What's the equivalent centos command for the command the guide uses at point 5 ?

sudo a2dissite 000-default.conf  sudo a2ensite ostechnix1.lan.conf  sudo a2ensite ostechnix2.lan.conf  

How to remove newline character within a column in a tsv file?

Posted: 18 Jan 2022 02:02 AM PST

enter image description here

I need "This contains newline" in one row, newline from the column2 and column4 need to remove.

nb: For your understanding the data I upload an image if you want I will upload the text content

"column1"   "column2"          "column3"    "column4"           " column5"  "DATA"       "THIS                 "DATA"   "THIS                "DATA"               CONTAIN NEWLINE"                 CONTAIN NEWLINE"    I need to remove the newline and output looks like:  "column1"   "column2"                "column3"  "column4"                " column5"  "DATA"      "THIS CONTAIN NEWLINE"    "DATA"    "THIS CONTAIN NEWLINE"     "DATA"  

Passing parameters by shell script file to expect script

Posted: 18 Jan 2022 01:04 AM PST

I need to pass a paramter from a shell script under command line of ssh script

for example :

#!/usr/bin/expect  spawn ssh user@servername.com "cm1+passingparameters.sh;cmd2"  

my existing script 123.sh which is working fine.

#!/usr/bin/expect    spawn ssh user@servername.com "/pstools/85419/jre/bin/java -Xms1024M -Xmx1024M -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2 -jar /app1/non/psoft/85419/gu1/gust/classes/SVC_TestS.jar https://decorp6-- tst4.custhelp.com/services/rest/connect/v1.3/incidents userid password ssow.proxy.com port;cd /app01/nonhr/psoft/85419/gucq1/gecust;mail -s 'OTO' email@ged.com < logs.txt"    expect "password"    send "mypassword\r"    interact    expect eof  

I want 2 scripts a.sh and b.sh

a.sh should be as follows (notice change from above mentioned original script PASS b.sh after .jar)

#!/usr/bin/expect    spawn ssh user@servername.com "/pstools/85419/jre/bin/java -Xms1024M -Xmx1024M -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2 -jar /app1/non/psoft/85419/gu1/gust/classes/SVC_TestS.jar PASS b.sh;cd /app01/nonhr/psoft/85419/gucq1/gecust;mail -s 'OTO' email@ged.com < logs.txt"  expect "password"    send "mypassword\r"    interact    expect eof  

b.sh should be as follows

#!/user/ksh   https://decorp6--tst4.custhelp.com/services/rest/connect/v1.3/incidents userid password ssow.proxy.com port  

Setting environment variable using shell script

Posted: 18 Jan 2022 12:01 AM PST

I am using csh scripts for some automation purpose. I have a number of scripts, and the beginning of all of which I need to set a fixed set of environment variables.

|----SCRIPT 1---|     |----SCRIPT 2---|  |# set env vars |     |# set env vars |  |               |     |               |  |# do something |     |# do something |  |               |     |# else         |  

So I thought that I'll put all the environment variables in another script and source it from each file. But as it turns out, environment variables set inside the sourced script are not reflected outside. Is there any clean way to achieve what I want? Or do I have to explicitly set environment variables in each script ?

UPDATE :

While sourcing the file, I was piping the output to a file using the 'tee' command. I noticed that after removing the pipe, the script file worked.

"Press ENTER or type command to continue": why am I seeing this?

Posted: 18 Jan 2022 03:03 AM PST

I'm familiar with this message when a command's output is more than one line.

However, on one of the systems I use, I see it every time I write with :w, despite having plenty of horizontal space for the message. For example:

enter image description here

This only seems to happen when I use vim in a tmux session, but I can't work out why this should happen. Every other aspect of vim and tmux seems to be working fine. Turns out it has nothing to do with tmux.


Update: I tracked it down to the following line in my vimrc:

set backupdir=/tmp  

Using a vimrc that contains only this line is enough to trigger the message when writing to a file. Interestingly, it only happens when I write to an existing file.

Why would this happen, and on this machine only?

No comments:

Post a Comment