Ubuntu 24.04 not recognizing AX211 WiFi driver https://askubuntu.com/questions/1559807/ubuntu-24-04-not-recognizing-ax211-wifi-driver

We have an issue with WiFi drivers on Ubuntu 24.04.

Machine specifications are following:

  • Dell Pro Max 16 MC16250

  • Intel WiFi 6E AX211

  • AX211 driver

Can you please suggest the solution?

VMWare workstation problem loaded vmmon https://askubuntu.com/questions/1559806/vmware-workstation-problem-loaded-vmmon

I'm using VMware workstation 17 Pro 17.16.4-build.24832109 on my Ubuntu. But everytime I'm starting my Windows VM, I get this error: "vmware could not open /dev/vmmon: no such file or directory. Please make sure that the kernel module vmmon is loaded"

If I run: sudo vmware-modconfig --console --install-all
I get in the end of the output "VIrtual machine monitor" failed to start but some others succeed.

I saw this: https://github.com/codiobert/vmware-vmmon-fix , and it fixed it one time but it means I have to run this script every time I boot my computer which is annoying. How can I fix this?

Display Hostnames with "who" -u/-m https://askubuntu.com/questions/1559805/display-hostnames-with-who-u-m

Moving from Solaris to Ubuntu. I need to display the hostnames of connected ip's as in hosts file instead of ip addresses. Using "who -u""who -m"

Regards

DNS problem? No internet at startup https://askubuntu.com/questions/1559804/dns-problem-no-internet-at-startup

Ubuntu 24.04.3 Internet unavailable at turn on. Ethernet connections are OK. Firefox, Brave. after initiating VPN (Air) via (UK server) internet is still unavailable. When I changed the country server to a different location (e.g. Austria) then internet is available. When the country is changed back to my UK physical location, then internet is now available via VPN. Ceased use of the VPN, then internet is now available. Because the VPN handles DNS I guess this is related. How to control or set my VPN?

External Monitor capped at 60Hz https://askubuntu.com/questions/1559800/external-monitor-capped-at-60hz

my external monitor worked well at 144hz all these but today all of sudden, my external monitor is capped to 60hz. I tried everything like adding new mode, but nothing worked. I deleted the nvidia driver and suddenly after a reboot everything works well. But, I need nvidia driver for a project. I want to see if there is any to keep the nvidia driver and have it run at 144hz. (Nvidia running on my laptop dual booted with windows-primary and mok signed in for secure boot on)

Afrer Google Chrome update (Ubuntu 25.10) I can't load Chrome https://askubuntu.com/questions/1559797/afrer-google-chrome-update-ubuntu-25-10-i-cant-load-chrome

Like many users that have migrated to Linux from Windows, my knowledge is wide, but not very deep. After upgrading to Ubuntu 25.10 (from 25.04), then an update to Chrome (sudo apt update; sudo apt upgrade -y), I have been unable to get Chrome to load.

Results of less syslog:

2025-11-17T16:20:13.859687-05:00 danr-ms01 systemd[7663]: Started app-gnome-com.google.Chrome-30611.scope - Application launched by gnome-shell.
2025-11-17T16:20:13.899228-05:00 danr-ms01 systemd[7663]: Started app-flatpak-com.google.Chrome-787400809.scope.
2025-11-17T16:20:14.134634-05:00 danr-ms01 kernel: [UFW BLOCK] IN=wlp91s0 OUT= MAC=33:33:00:00:00:0c:50:c7:bf:c3:48:59:86:dd SRC=fe80:0000:0000:0000:52c7:bfff:fec3:4859 DST=ff02:0000:0000:0000:0000:0000:0000:000c LEN=424 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=50072 DPT=1900 LEN=384 
2025-11-17T16:20:14.504084-05:00 danr-ms01 com.google.Chrome.desktop[30626]: [1117/162014.503631:WARNING:chrome/app/chrome_main_linux.cc:82] Read channel stable from /app/extra/CHROME_VERSION_EXTRA
2025-11-17T16:20:14.689010-05:00 danr-ms01 systemd[7663]: Started app-flatpak-com.google.Chrome-2297290011.scope.
2025-11-17T16:20:14.821817-05:00 danr-ms01 com.google.Chrome.desktop[30654]: [1117/162014.820914:WARNING:chrome/app/chrome_main_linux.cc:82] Read channel stable from /app/extra/CHROME_VERSION_EXTRA
2025-11-17T16:20:15.261917-05:00 danr-ms01 gnome-keyring-daemon[7692]: asked to register item /org/freedesktop/secrets/collection/login/2, but it's already registered
2025-11-17T16:20:16.752975-05:00 danr-ms01 gnome-shell[7938]: WL: error in client communication (pid 30626)
2025-11-17T16:20:16.753253-05:00 danr-ms01 com.google.Chrome.desktop[30626]: [2:2:1117/162016.752761:ERROR:ui/events/platform/wayland/wayland_event_watcher.cc:47] libwayland: [destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a
2025-11-17T16:20:16.753496-05:00 danr-ms01 com.google.Chrome.desktop[30643]: [1117/162016.753124:ERROR:third_party/crashpad/crashpad/util/linux/scoped_ptrace_attach.cc:27] ptrace: Operation not permitted (1)
2025-11-17T16:20:17.201464-05:00 danr-ms01 systemd[7663]: app-flatpak-com.google.Chrome-2297290011.scope: Consumed 1.335s CPU time, 92.9M memory peak.
2025-11-17T16:20:17.226831-05:00 danr-ms01 systemd[7663]: app-flatpak-com.google.Chrome-787400809.scope: Consumed 4.012s CPU time, 193.7M memory peak.

Other than dumping the log, I have uninstalled and reinstalled Chrome (from a download via DPKG) and from Flatpack. I don't recall if I tried Snap or not.

I am currently running Firefox for now on this system (MinisForum MS-01). I have multiple systems running Chrome, so maybe that is the source of the third-party file that's being objected to?

Ubuntu 24.04 RAID zero Raspberry Pi 5 https://askubuntu.com/questions/1559785/ubuntu-24-04-raid-zero-raspberry-pi-5

I'm going to ask a lot of questions in this post as I'm new to the Raspberry Pi and somewhat of a novice in Ubuntu. I'm going to use Raspberry Pi OS to create the raid 0 and I need some help on this with the steps, then I'm flashing Ubuntu to said RAID. I also want a better understanding of how the RAID zero works and how the hardware functions with the software. What sets the drive in RAID zero so that the OS can boot once flashed? By the way, I am using a hat. Does the Raspberry Pi have a so-called BIOS or what is the initial startup screen?

Edit: Sorry I'm having issues with what I believe is the power supply with the Pi. I suppose I could use Ubuntu to create the raid once I can get it booted into Ubuntu. It boots in raspberry Pi OS fine just not Ubuntu. If I use the third party power supply I have it boot loops before getting to the os. If I use my laptop to power and boot into Ubuntu it boots into Ubuntu but power cycles once I set up the wifi adapter. I'm waiting on the official power supply in the mail at the moment. And yes, the third-party power adapter does 5.1v at 5 amps.

Where it boot loops:

Where it boot loops

Progress: Trying boot mode NVME

usb_max_current_enable default 0 max-current 5000
Read bcm2712-rpi-5-b.dtb bytes      78100  hnd 0x33d
Read /config.txt bytes               1645  hnd 0x7e1
Read /config.txt bytes               1645  hnd 0x7e1
Read initrd.img bytes            62719588  hnd 0x33d
Read bcm2712-rpi-5-b.dtb bytes       5195  hnd 0x1ecce
Read /overlays/overlay_map.dt bytes  1491  hnd 0x1e741
Read /overlays/bcm2712d0.dtbo bytes   409  hnd 0x1ed2f
Read /overlays/hat_map.dtbo bytes     409  hnd 0x1ed2f
Read /config.txt bytes               1645  hnd 0x7e1
/overlays/sunfounder-pironman5.dtbo
Read /overlays/vc4-kms-v3d-pi5.dtbo bytes   3330  hnd 0x1ef29
Read /overlays/dwc2.dtbo bytes        801  hnd 0x1e85a
Read /cmdline.txt bytes               170  hnd 0x7e0
fs_open: 'armstub8-2712.bin'
Read vmlinuz bytes                12427790 hnd 0x2a939

Yes, I flashed one of the NVMe drives with Ubuntu in Pi OS NOT raid zero yet. I'm using a USB drive to boot into Pi OS, but can use Ubuntu once I can get it booted in Ubuntu. Now I can't boot into the Pi is due to the boot order. I can install an OS on an SD card, but I'm putting a hold on this project until I get the power supply in the mail.

Insert prefix to each line of file if line is not blank otherwise do something else https://askubuntu.com/questions/1559722/insert-prefix-to-each-line-of-file-if-line-is-not-blank-otherwise-do-something-e

I would like sed do something to each line of a file.

  • if line is NOT blank, do something, (insert prefix_01 before line text),

  • if line is blank, (including spaces, tabs or whatever not printable), do something else, (insert prefix_02 before line text).

This is my code:

f1="f1.txt"

printf "line ONE\n \t \nline THREE  \t\n" > "$f1"

prefix_01="everything good.. "
prefix_02="NOT good !! "

cat "$f1" | sed -E 's/^/'"$prefix_01"'/'

will produce the following output:

everything good.. line ONE
everything good..
everything good.. line THREE

but I would like to have the following output (with prefix_02 in case of blank lines):

everything good.. line ONE
NOT good !! 
everything good.. line THREE

I would like sed to test if line is empty or not, then do action_01 or action_02.

  • if NOT empty line, action_01, (print prefix_01 + text of the line).
  • if empty line, action_02, (print prefix_02 + contents of the line).

Any help?

GRUB 'unknown filesystem' Error https://askubuntu.com/questions/1559707/grub-unknown-filesystem-error

I want to add a menuentry in the grub pointing to an SD stick so that I can reinstall and format the whole machine quickly from it next time whenever that is needed.

To this end, I am customize GRUB (/etc/grub.d/40_custom) so that I can boot an Ubuntu Server 24.04 installer from an SD card created using the dd command and formatted using an iso9660 filesystem.

Here is my /etc/grub.d/40_custom file:

menuentry 'Ubuntu Installer (Failing)' {
    # Fails with 'error: unknown filesystem'
    set root='(hd0,gpt2)' 
    linux /casper/vmlinuz boot=casper quiet
    initrd /casper/initrd
}

During boot,

  • when I select this menuentry, I get error: could not find vmlinuz;
  • when I execute the ls command for (hd0,gpt2) I get unknown filesystem.

If anyone had ran into this problem before, please share your experience, that would be much appreciated.

Remarks:

  • I find weird that GRUB (installed by Ubuntu server) fails failed to read an SD card having the exact Ubuntu server installer.
  • I am seeking a direct solution for the GRUB entry, not external tools like Ventoy.
  • I know that's not how typical formatting and installing is done. I could change the UEFI settings to boot from the SD, but I want to achieve unattended install. However, if I run an unattended install, I get the problem of a looping install: it finishes, reboots, the UEFI again detects the SD and keeps going like that infinitly until I stop it in the right time (which defeats the purpose of unattended install). Somehow, it fails unmounting the SD, so I give up trying to debug this loop that shouldn't normally happen.
  • Then, I got the idea to delegate this from the UEFI to the GRUB, so that when the install finishes, a reboot happens, the UEFI boots the freshly install Ubuntu with no custom menuentry in it.
AppArmor won't let Firefox Snap save credit cards https://askubuntu.com/questions/1559602/apparmor-wont-let-firefox-snap-save-credit-cards

Firefox has not saved credit card numbers for me since I upgraded to the Snap version. When I try to save a credit card number I see messages like this in the syslog:

dbus-daemon[3656]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.6" pid=5121 label="snap.firefox.firefox" peer_pid=3655 peer_label="unconfined"
dbus-daemon[3656]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.Secret.Service" member="OpenSession" mask="send" name=":1.6" pid=5121 label="snap.firefox.firefox" peer_pid=3655 peer_label="unconfined"

I spent about an hour grepping in the AppArmor config files, Googling, and searching Stack Exchange to no avail. What's the secret method to enable this commonly used feature for the snap?

Firefox 144.0.2 Ubuntu 24.04.3 LTS

PS:I am aware of the .deb version, of which I was previously a user. I am hoping we can get the snap version, which Ubuntu is enthusiastically promoting, to work properly so I don't have to go back

Suddenly, Ubuntu 24.04 & VirtualBox won't run a VM - "can't enable the AMD-V extension" Why? https://askubuntu.com/questions/1553345/suddenly-ubuntu-24-04-virtualbox-wont-run-a-vm-cant-enable-the-amd-v-ext

When I attempt to run any of my VirtualBox VMs I get the error:

VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).

Here's the entire list of services running on my machine:

colord.service                                        loaded active running Manage, Install and Generate Color Profiles
  colord.service                                        loaded active running Manage, Install and Generate Color Profiles
  colord.service                                        loaded active running Manage, Install and Generate Color Profiles
  containerd.service                                    loaded active running containerd container runtime
  cron.service                                          loaded active running Regular background program processing daemon
  cups-browsed.service                                  loaded active running Make remote CUPS printers available locally
  cups.service                                          loaded active running CUPS Scheduler
  dbus.service                                          loaded active running D-Bus System Message Bus
  docker.service                                        loaded active running Docker Application Container Engine
  gnome-remote-desktop.service                          loaded active running GNOME Remote Desktop
  kerneloops.service                                    loaded active running Tool to automatically collect and submit kernel crash signatures
  ModemManager.service                                  loaded active running Modem Manager
  NetworkManager.service                                loaded active running Network Manager
  nvidia-persistenced.service                           loaded active running NVIDIA Persistence Daemon
  packagekit.service                                    loaded active running PackageKit Daemon
  polkit.service                                        loaded active running Authorization Manager
  power-profiles-daemon.service                         loaded active running Power Profiles daemon
  rsyslog.service                                       loaded active running System Logging Service
  rtkit-daemon.service                                  loaded active running RealtimeKit Scheduling Policy Service
  sddm.service                                          loaded active running Simple Desktop Display Manager
  smartmontools.service                                 loaded active running Self Monitoring and Reporting Technology (SMART) Daemon
  snap.canonical-livepatch.canonical-livepatchd.service loaded active running Service for snap application canonical-livepatch.canonical-livepatchd
  snapd.service                                         loaded active running Snap Daemon
  switcheroo-control.service                            loaded active running Switcheroo Control Proxy service
  systemd-journald.service                              loaded active running Journal Service
  systemd-logind.service                                loaded active running User Login Management
  systemd-oomd.service                                  loaded active running Userspace Out-Of-Memory (OOM) Killer
  systemd-resolved.service                              loaded active running Network Name Resolution
  systemd-timesyncd.service                             loaded active running Network Time Synchronization
  systemd-udevd.service                                 loaded active running Rule-based Manager for Device Events and Files
  udisks2.service                                       loaded active running Disk Manager
  unattended-upgrades.service                           loaded active running Unattended Upgrades Shutdown
  upower.service                                        loaded active running Daemon for power management
  user@1000.service                                     loaded active running User Manager for UID 1000
  wpa_supplicant.service                                loaded active running WPA supplicant

Is one of these causing the problem? I've actually killed docker.service with no help.

QEMU Works

I have some QEMU images and those still run.

Android Emulator

I can also still run the Android Emulator (from Android Studio).

Note -- of course I close those before trying to run the VirtualBox VM

Also, these VirtualBox VMs recently worked on this same system.

Can anyone give me an idea of why the VirtualBox VMs won't run now?

Things I've Tried

  • updated VirtualBox to latest
  • updated all software
  • rebooted

Kernel Version

  • Linux 6.14.0-24-generic
  • #24~24.04.3-Ubuntu
  • SMP PREEMPT_DYNAMIC
  • Mon Jul 7 16:39:17 UTC 2
  • x86_64 x86_64 x86_64 GNU/Linux

Found This Under CPU Details

Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        48 bits physical, 48 bits virtual
Byte Order:                           Little Endian
CPU(s):                               16
On-line CPU(s) list:                  0-15
Vendor ID:                            AuthenticAMD
Model name:                           AMD Ryzen 7 9700X 8-Core Processor
CPU family:                           26
Model:                                68
Thread(s) per core:                   2
Core(s) per socket:                   8
Socket(s):                            1
Stepping:                             0
Frequency boost:                      enabled
CPU(s) scaling MHz:                   66%
CPU max MHz:                          5582.0000
CPU min MHz:                          600.0000
BogoMIPS:                             7585.25
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx_vnni avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid bus_lock_detect movdiri movdir64b overflow_recov succor smca fsrm avx512_vp2intersect flush_l1d amd_lbr_pmc_freeze
Virtualization:                       AMD-V

Do I need to turn Virtualization off in the BIOS?

But, I've been running VirtualBox VMs with that turned on for many months now?!?!

dual boot entry not visible for ubuntu 24.04 with full disk encryption & Windows 11 with bitlocker, uefi, and secureboot https://askubuntu.com/questions/1552530/dual-boot-entry-not-visible-for-ubuntu-24-04-with-full-disk-encryption-windows

I have a system with

  1. Single SSD
  2. UEFI + Secureboot
  3. Microsoft Windows 11 with bitlocker (full disk encryption [FDE])
  4. I have installed Ubuntu Desktop 24.04 with FDE (LUKS)

I am unable to find the boot entry for Ubuntu. When I view the boot devices in my UEFI settings, I do not see a separate entry for Microsoft Windows, and I see the SSD, which defaults to booting into Microsoft Windows.

I have attempted the following.

  1. Create a bootable USB using balenaEtcher.
  2. suspend bitlocker
  3. Selected USB as the bootable device from the UEFI screen (not from Windows > settings > system > advanced recovery > boot from USB)
  4. In the Ubuntu Live session,
  • I have decrypted and mounted the root drive (cryptsetup luksOpen /dev/nvmexxx) cryptroot
  • vgscan
  • vgchange -ay
  • lvscan
  • mount the root parition
  • mount EFI
  • bind dev, proc, sys
  • grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu

which returned EFI variables cannot be set for this system. You will have to complete the grub setup manually

  • update-grub

However, this still doesn't show the ubuntu entry.

What is required to get Ubuntu to appear in the bootup options

Printscreen of Gparted showing the single SSD the system has Printscreen of Gparted

Printscreen of UEFI settings of the device UEFI boot options

Bootable usb to format hard drive https://askubuntu.com/questions/1466914/bootable-usb-to-format-hard-drive

Is there any way to boot from USB and completely format the hard drive. The reason I want to do this is because my Ubuntu 22.04 is not able to start anymore.

Can't use OpenGL 3.3+ in WSL (Windows 11) https://askubuntu.com/questions/1392866/cant-use-opengl-3-3-in-wsl-windows-11

Both of my GPU and CPU support up to OpenGL 4.6 and my drivers are up-to-date. However, my Ubuntu 20.04 on WSL only supports 3.3 . Here's what glxinfo says:

glxinfo | grep "OpenGL"
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce RTX 3080 Laptop GPU)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 21.2.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

Edit: My kernel version is: 5.10.60.1

Suddenly no internet connection Ubuntu 21.04 https://askubuntu.com/questions/1352826/suddenly-no-internet-connection-ubuntu-21-04

So until yesterday my internet was just working fine, today it doesn't anymore. Nothing has changed in terms of updates or configuration since then.

The PC is still connected to the router. I can ping the router at 192.168.178.1 and even log in to the settings. The router is also connected to the internet, all other computers in the house can access the internet.

I can also ping any device that is in the local network.

I.e. ping -c 2 192.168.178.43 works.

But I cannot seem to connect to any outside IP whatsoever.

When doing ping -c 2 1.1.1.1 or ping -c 2 8.8.8.8 I always get 100% package loss.

Could there be some cached settings perhaps that are suddenly not allowing my router to process the request? Or perhaps my router can't send back any information to my PC anymore?

These are all shots in the dark, as I am relatively new to using Linux, and the problem just mysteriously appeared. No settings have been altered and it was working fine before.

I'd be happy to hear some ideas on how to fix this. I'd rather not re-install the whole system.

grub bootloader failed to install error when trying to install Ubuntu or Lubuntu - tried to reinstall grub but didn't work https://askubuntu.com/questions/1204041/grub-bootloader-failed-to-install-error-when-trying-to-install-ubuntu-or-lubuntu

I've unsuccessfully been trying to install Ubuntu or Lubuntu for a couple of weekends now. The installation seems to go fine until the end, when I get the "grub bootloader failed to install" error. I dug through the forums and tried all kinds of things, such as re-installing grub, but nothing worked.

Some background info:

  • I did disable securable boot.

  • The laptop formally had Windows 10 on it.

  • I changed the hard disk (since I was planning to upgrade anyway), but this didn't make a difference.

  • Here is the boot info https://paste.ubuntu.com/p/dt2RZgtT5Y/ Unfortunately, this doesn't tell me very much, so I hope someone else can tell me what's wrong!

How do I create a Python virtual environment in the Ubuntu on Windows App using 'venv' rather than 'virtualenv'? https://askubuntu.com/questions/1182768/how-do-i-create-a-python-virtual-environment-in-the-ubuntu-on-windows-app-using

I am using the Ubuntu on Windows App running on Windows Subsystem for Linux. So an initial question is if Python virtual environments is supported. Given my as yet limited understanding of Python virtual environments I would think that they are supported in the Ubuntu on Windows App. Here is the version info:

Windows Ubuntu App 1804.2019.521.0

Ubuntu release 18.04 (bionic)

Python Version 3.6.7 (as best I remember this was installed by default).

My motivation for wanting to use venv is this reddit post:

venv by nature of being part of Python itself has access to the internals of Python which means it can do things the right way with far fewer hacks... ...So venv can be thought of virtualenv done right, with the blessing and support of the Python developers.

Similar questions came up when I entered my question, but I didn't find one that solved my problem.

One post:

Since you specifically installed python3.6 instead of Ubuntu's default python3 version, which is python3.5, you have to install python3.6-venv instead of python3-venv since that would resolve to python3.5-venv. To do so, you can use sudo apt install python3.6-venv

Another post from 01/2018 said that python3.6 -m venv myvenv worked after reinstalling Python3.6.4. I'm avoiding re-installation for the time being.

Here is what I tried to create a virtual environment:

1) Opened Ubuntu

2) Went to the directory where I want to create the virtual environment.

 /home/dgrucza/python-virtual-environments

3) Entered python3 -m venv env This returned the following:

The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Failing command: ['/home/dgrucza/python-virtual-environments/evn/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

4)Tried to install venv by entering sudo apt-get install python-venv After entering my password at the prompt this returned the following:

Reading package lists... Done Building dependency tree Reading state information... Done Package python3-venv is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python3-venv' has no installation candidate

5) Also tried entering python3.6 -m venv myenv, but received the same message.

The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Failing command: ['/home/dgrucza/myenv/bin/python3.6', '-Im', 'ensurepip', '--upgrade', '--default-pip']

no /run/dbus/system_bus_socket https://askubuntu.com/questions/1038160/no-run-dbus-system-bus-socket

I wanted to upgrade from 17.10 to 18.04 but the upgrade failed, I think the reason was that policykit-1 was left unconfigured.

Rebooting did not help and now I am in the emergency console. I found that I have a /var/run/dbus/system_bus_socket, but not /run/dbus/system_bus_socket.

On another machine, I have system_bus_socket in both directories. Any idea what I can do to repair the system?

Unknown Filesystem - grub rescue after Windows 10 update? https://askubuntu.com/questions/924147/unknown-filesystem-grub-rescue-after-windows-10-update

About a week ago Windows 10 ran its automatic updates and after that I'm unable to boot to ubuntu the way I was doing it (pressing f12 and manually selecting Ubuntu partition). Now it takes me to a black screen saying Unknown Filesystem grub rescue when I try to access it that way.

The partition isn't wiped out and Ubuntu works just fine, but I have to enter a few commands as shown in this video(Non-English) to access it. Would anyone mind helping me to "revert" whatever windows did so I can keep booting to ubuntu manually when I want to with f12 key?

Additional info - I asked this question on Reddit and I was asked

"what is the output of 'fdisk -l' in the terminal?"

This is what shows up:

Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 7DCE2DB6-E1A6-4A44-9EC2-96460D5449EB

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    923647    921600   450M Windows recovery environment
/dev/sda2     923648   1128447    204800   100M EFI System
/dev/sda3    1128448   1161215     32768    16M Microsoft reserved
/dev/sda4    1161216 244113228 242952013 115,9G Microsoft basic data
/dev/sda5  244113408 245759999   1646592   804M Windows recovery environment
/dev/sda6  245762048 830351359 584589312 278,8G Microsoft basic data
/dev/sda7  830351360 838543359   8192000   3,9G Microsoft basic data
/dev/sda8  838543360 976773119 138229760  65,9G Linux filesystem

Thank you very much in advance :)

  [1]: https://www.youtube.com/watch?v=NMMdNke-gkY
Permission denied when I try to run ssh root@10.2.0.15 https://askubuntu.com/questions/874848/permission-denied-when-i-try-to-run-ssh-root10-2-0-15

Screenshot of the problem here

ssh root@10.0.2.15

root@10.0.2.15's password:

Permission denied,please try again .

I'm not allowed to use the ssh root@10.0.2.15 ,for some reason it won't let me do that .

cannot import saved openVPN configuration file in Ubuntu 16.04 LTS https://askubuntu.com/questions/760345/cannot-import-saved-openvpn-configuration-file-in-ubuntu-16-04-lts

I am trying to import a .ovpn file from the network manager. Here are the steps I follow.

Network Manager → VPN Connections → configure VPN

This opens the Network Connections dialogue. Then,

Add → import saved vpn configuration → choose .ovpn file

This should load my .ovpn configuration, but instead I get a prompt saying

ERROR: plugin does not support import capability.

I can still use VPN using the command

sudo openvpn --config ~/openvpn/xxx.conf

is this a bug that needs to be filed?

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3 https://askubuntu.com/questions/603935/pyvenv-vs-venv-vs-python-virtualenv-vs-virtualenv-and-python-3
malikarumi@Tetouan2:~$ pip install virtualenv
    Collecting virtualenv
    Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB)
    100% |################################| 1.8MB 330kB/s 

malikarumi@Tetouan2:~$ pip freeze
    (a lot of stuff, but not virtualenv)

malikarumi@Tetouan2:~$ virtualenv testvenv1
    The program 'virtualenv' is currently not installed. You can install it by typing:
    sudo apt-get install python-virtualenv

What is going on here? is python-virtualenv == pyvenv? Isn't that still broken? Does original virtualenv still work with python? if venv (too many name variations!!!) is part of the standard library, https://docs.python.org/3/library/venv.html, why am I being told to install it?

And when I did try to install it, I got:

malikarumi@Tetouan2:~$ sudo apt-get install python-virtualenv
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
    python-colorama python-distlib python-html5lib python-pip python-setuptools

At which point I aborted, because installing python3-pip just before that had given me

Setting up python3-setuptools (3.3-1ubuntu1) ...
Setting up python3-pip (1.5.4-1) ...

And I wasn't sure if the extra packages would overwrite them or go onto python 2.7.

I read that python 3 is supposed to be the default going forward. Since both 2.7 and 3.4 are there, and have separate commands, how do I not only make sure Python 3 is my default, but that anything I install goes there and is used by it instead of 2.7?

BTW, I tried sudo apt-get python3-virtualenv and got: E: Unable to locate package python3-virtualenv

install ipkg via command line https://askubuntu.com/questions/555291/install-ipkg-via-command-line

I'm trying to install ipkg-utils.

However, when I try to install it, it is unable to locate the package

sudo apt-get install ipkg-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ipkg-utils

I tried wget https://dev.openwrt.org/log/trunk/tools/ipkg-utils (the repository for ipkg), but it didn't work.

I inherited the code. ipkg was used to distribute and need to build an ipkg archive of a PIC build.

ipkg has been superseded by opkg. I have opkg running ok but haven't built anything yet. What I didn't find out was whether I could create an ipkg archive using opkg.

I've been googling for hours with no joy. Does anyone know how to install ipkg?

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty
Configure gnome-shell extensions from command line https://askubuntu.com/questions/490939/configure-gnome-shell-extensions-from-command-line

I like to run a couple of scripts to automatically install packages and do some configurations on fresh OS installs. I use gnome shell with a few extensions and was thinking of improving my scripts to configure them.

I usually configure the extensions using gnome-shell-extension-prefs or dconf-editor and I know how to edit other schemas from the command line. Example:

gsettings set org.gnome.desktop.background picture-options stretched

But, although I can find and edit the installed extensions under org.gnome.shell.extensions using dconf-editor I can't access them using gsettings since they don't seem to have an assigned schema:

No such schema 'org.gnome.shell.extensions.extname'

The only extensions accessible with gsettings seem to be the ones that came pre-installed.

So, the question is, how can I configure the installed extensions from the command line? Is there any way to assign to gsettings the compiled schemas in ~/.local/share/gnome-shell/extensions/ ? Maybe I'm looking in the wrong direction.

Environment: Ubuntu Gnome 14.04 (Gnome Shell 3.10.4)

Thanks in advance.

New laptop won't boot after installing Ubuntu 14.04 on SSD https://askubuntu.com/questions/462063/new-laptop-wont-boot-after-installing-ubuntu-14-04-on-ssd

I removed the HDD from a Toshiba Computer I bought today and installed a 250GB SSD. After installing it, I immediately installed Ubuntu 14.04 on it from a USB drive. Everything went fine during installation, but when I restarted I got the message

Reboot and select proper Boot device or Insert Boot Media in selected Boot Device and press a key.

That message came up after a nano-second screen that says Checking Media Presence and then No Media Present.

When I reboot using the USB stick, I can see the SSD drive and it has the OS written on it and it looks like it's been partitioned correctly.

Can someone please tell me what I need to do to get my computer to boot up?

  • I read something about how the Secure boot and CSM or UEFI might be a factor, but I'm not experienced enough with new Bios to know how to configure those settings.
  • I also read about Grub probably not installing on the SSD and I might just have to fix Grub for it to work, but I haven't been able to do that through the Ubuntu running of the USB stick.

Any help or links to good threads would be very helpful. If you have any questions, I would be very happy to help you in helping me.

http://paste.ubuntu.com/7407446/

Need help with getting NoMachine working on Ubuntu 14.04 https://askubuntu.com/questions/455330/need-help-with-getting-nomachine-working-on-ubuntu-14-04

I'm trying to get NoMachine working on a AWS EC2 instance with 14.04 Trusty Tahr.

I’ve used the instructions from:

When I try to connect from my Mac using NoMachine 4.2.21, I get this error:

The connection with the server was lost.
Error is 54: Connection reset by peer.

When I use the OpenNX 0.16.0.729 client, I get a blank black screen.

Help.

How to know what and when the next cron job is https://askubuntu.com/questions/323124/how-to-know-what-and-when-the-next-cron-job-is

Is there a tool or a way to view the next scheduled job (in the system or at least at the user level) and its time without looking into crontab (crontab -l)?

Imagine that there are 500 different cron jobs with repetitions. I need an "easy" way to know that the job A will be executed after 5 minutes from now.

libgl error, Unity and compiz not loading on startup https://askubuntu.com/questions/260727/libgl-error-unity-and-compiz-not-loading-on-startup

Recently when I restarted my dual boot Ubuntu (windows 7 and Ubuntu 12.10), all I can see is just my desktop, no dash, no launcher or any topbars. Here is the output of usr/lib/nux/unity_support_test -p:

 libGL error: failed to load driver: swrast
 libGL error: Try again with LIBGL_DEBUG=verbose for more details.
 OpenGL vendor string:   ATI Technologies Inc.
 OpenGL renderer string: ATI Mobility Radeon HD 5000 Series 
 OpenGL version string:  1.4 (2.1 (4.2.11995 Compatibility Profile Context))

 Not software rendered:    yes
 Not blacklisted:          yes
 GLX fbconfig:             yes
 GLX texture from pixmap:  yes
 GL npot or rect textures: yes
 GL vertex program:        yes
 GL fragment program:      yes
 GL vertex buffer object:  no
 GL framebuffer object:    yes
 GL version is 1.4+:       yes

 Unity 3D supported:       no

Also, when I try to start compiz manually using terminal I get following output:

[vj]:~$ compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : unity
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
compiz (core) - Info: Unity is not supported by your hardware. Enabling software rendering instead (slow).
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
compiz (core) - Info: Unity is not supported by your hardware. Enabling software rendering instead (slow).
compiz (core) - Info: Starting plugin: opengl
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Info: Loading plugin: decor
compiz (core) - Info: Starting plugin: decor
compiz (core) - Info: Loading plugin: vpswitch
compiz (core) - Info: Starting plugin: vpswitch
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: mousepoll
compiz (core) - Info: Starting plugin: mousepoll
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move
compiz (core) - Info: Loading plugin: wall
compiz (core) - Info: Starting plugin: wall
compiz (core) - Info: Loading plugin: grid
compiz (core) - Info: Starting plugin: grid
compiz (core) - Info: Loading plugin: regex
compiz (core) - Info: Starting plugin: regex
compiz (core) - Info: Loading plugin: imgpng
compiz (core) - Info: Starting plugin: imgpng
compiz (core) - Info: Loading plugin: session
compiz (core) - Info: Starting plugin: session
compiz (core) - Info: Loading plugin: gnomecompat
compiz (core) - Info: Starting plugin: gnomecompat
compiz (core) - Info: Loading plugin: animation
compiz (core) - Info: Starting plugin: animation
compiz (core) - Info: Loading plugin: fade
compiz (core) - Info: Starting plugin: fade
compiz (core) - Info: Loading plugin: unitymtgrabhandles
compiz (core) - Info: Starting plugin: unitymtgrabhandles
compiz (core) - Info: Loading plugin: workarounds
compiz (core) - Info: Starting plugin: workarounds
compiz (core) - Info: Loading plugin: scale
compiz (core) - Info: Starting plugin: scale
compiz (core) - Info: Loading plugin: expo
compiz (core) - Info: Starting plugin: expo
compiz (expo) - Warn: failed to bind image to texture
compiz (core) - Info: Loading plugin: ezoom
compiz (core) - Info: Starting plugin: ezoom
compiz (core) - Info: Loading plugin: unityshell
compiz (core) - Info: Starting plugin: unityshell
compiz (unityshell) - Error: GL_ARB_vertex_buffer_object not supported

compiz (core) - Error: Plugin initScreen failed: unityshell
compiz (core) - Error: Failed to start plugin: unityshell
compiz (core) - Info: Unloading plugin: unityshell
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  18 (X_ChangeProperty)
Resource id in failed request:  0x2800005
Serial number of failed request:  9454
Current serial number in output stream:  9457

I'll be really grateful if someone can help me with this problem.

How Do I Customize the "cryptroot" Script? https://askubuntu.com/questions/174818/how-do-i-customize-the-cryptroot-script

I have a system where all the partitions (/, /home, and swap) are encrypted except for /boot. /boot resides in an external device which also contains a set of encrypted key files used to automatically decrypt all of the partitions. In other words, my desired end result was to have 2-factor authentication using an external device and a password where the password would be entered once during boot and the boot scripts would use the password to decrypt all of the partitions.

I'm a newbie to Ubuntu (and Linux in general), but I did some trial and error modifying the various scripts found in initrd.img using update-initramfs. The cryptroot script seemed to be doing all the work mounting the partitions at first, but after some experimenting, it appears that it is only responsible for decrypting the root file system. I had modified a string in the script changing Enter the passphrase to simply Password, which appeared to work when decrypting the root file system, but used the old prompt again for decrypting the next partition. In other words, this is what I'm getting:

  1. cryptroot script loads.
  2. The script asks for a password to decrypt the key partition and mounts it.
  3. The script calls the setup_mapping function to decrypt the root file system.
  4. The script tries to read the key file from the key partition to decrypt the root file system.
  5. The root file system is decrypted and mounted.
  6. The system prompts to enter a passphrase to decrypt the next partition…

I think Ubuntu might be running another copy of the cryptroot script somewhere to decrypt all the other partitions after root, but I don't know what else to modify.

How to zero out a drive? https://askubuntu.com/questions/142858/how-to-zero-out-a-drive

I'm currently running Ubuntu 12.04 and want to completely format my laptop so I can install Windows 7 (replace Ubuntu).

When I put in my bootable USB with the OS it just shows a black screen with a white blinking cursor on the top left corner. I wait for hours (to be specific 5 whole hours) waiting for something to happen but I get nothing, so I pull out the USB and my Ubuntu 12.04 loads up.

Repeated this several times with putting different boot priority options on top-est that relate to USB but the results are same. I go and visit some sites on the net like this http://www.techspot.com/community/topics/cant-replace-ubuntu-with-windows.175716/ that say I have to zero out my hard drive.

My question is how?

Note: Erasing out all my data is no problem cause I have nothing important to backup.

If I have to lose my primary OS (Ubuntu 12.04) in the process I am ready to as my aim is just to install Windows 7 successfully. Please don't answer that there is something wrong with my USB or my USB reader/port/hardware or the content inside the USB cause they all works fine on my brothers PC as it boots up flawlessly.