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?

Having trouble logging into a server https://askubuntu.com/questions/1559793/having-trouble-logging-into-a-server

I am trying to log into a Ubuntu 22.04.2 server on Proxmox. It is rejecting the admin login even when typed perfectly. We know the login is correct because my boss can log into it from his MacBook, however my Windows OS will not work. We tried ssh-ing into the server and getting around our reverse proxies. No matter what we do it always says incorrect login. I just need help understand why it won't let me in specifically.

"Failed to open \EFI\BOOT\mmx64.efi" [closed] https://askubuntu.com/questions/1559792/failed-to-open-efi-boot-mmx64-efi

Well this is not much of a question but rather my solution to this problem, tried installing Linux Mint 22.2 zara but after selecting to enroll the MOK and leaving the install halfway, turned the linux mint live session off then removed the installation media when promted since I had to do something else rather quick, when I came back, plugged the usb back on and tried booting from it I got the error:

"Failed to open \EFI\BOOT\mmx64.efi - Not Found
Failed to load image : Not Found
Failed to start MokManager: Not Found
Something has gone seriously wrong: import_mok_state() failed: Not Found."

Then the notebook (Acer Aspire e1-410g) shut itself off and subsequent tries with this usb and others with the same and different distros get the same message, including ubuntu. So I spent a lot of time looking for a fix, and, along the possibilities for a fix ranging from trying different distros to simply copy grubx64.efi to the desktop to then rename that to mmx64.efi and placing that back in the corresponding folder (which I couln't do since the live usb was read-only) a simple solution that worked was to just boot into my linux mint system, download the ISO for the OS I wanted to install, then using the archive manager from linux mint to navigate the ISO file at \EFI\BOOT\ then copying the grubx64.efi file to the desktop, renaming it to mmx64.efi then placing that file back to \EFI\BOOT\ without removing the original grubx64.efi file. Then wrote that ISO into a usb and booted from that. Got the screen to enroll the MOK then started the linux mint session as normal, install worked without further problems.

WiFi speed limited on Ubuntu 24.04 (compared to Windows 11 dualbooted and other devices in the same network) https://askubuntu.com/questions/1559790/wifi-speed-limited-on-ubuntu-24-04-compared-to-windows-11-dualbooted-and-other

After upgrading to Ubuntu 24.04 LTS, my WiFi speed dropped to ~43Mbps instead of the expected 450Mbps that I get on Windows on the same machine.

What I've tried:

  • Disabled WiFi power management
  • Updated kernel from 6.8 to 6.14
  • Updated linux-firmware package

None of these resolved the issue. Wireless-info output: https://dpaste.com/3J9W8EXMK Has anyone successfully resolved similar speed issues ? Any help would be appreciated!

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 setup 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

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. But now I can't boot into pi is due to the boot order I can install an os on an sdcard but I'm putting a hold on this project until I get the power supply in the mail.

Where are APT's default preferences stored? https://askubuntu.com/questions/1559771/where-are-apts-default-preferences-stored

I can modify the priority of a package by creating a preferences fragment in /etc/apt/preferences.d/ and giving it content like

Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

where the Pin-Priority (presumably) gives this package higher priority than other sources, like the standard Ubuntu repos.

Where is the default preference information for the standard Ubuntu repos, though? The manpages have extensive information, but under the "APT's Default Priority Assignments" section they don't actually say where these values are stored on the system. They make reference to /etc/apt/apt.conf and /etc/apt/preferences, but neither of these files exist on either of two fresh 24.04 systems I've looked at.

On these fresh systems, the /etc/apt/preferences.d/ fragment folder contains only fragments for the Extended Support repos, not the standard defaults:

$ ls /etc/apt/preferences.d
total 8.0K
-rw-r--r-- 1 root root 437 Apr  2  2024 ubuntu-pro-esm-apps
-rw-r--r-- 1 root root 429 Apr  2  2024 ubuntu-pro-esm-infra

Where are default APT preferences found on Ubuntu 24.04?

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?

Command line(s) to make a usb stick bootable [closed] https://askubuntu.com/questions/1559683/command-lines-to-make-a-usb-stick-bootable

I have the latest Ubuntu ISO on a USB stick, but GRUB doesn't seem to recognize it. Its path is something like /media/SanDisk3.2Gen1/ubuntu-24.04.3-desktop-amd64.iso and I suspect the SanDisk part of the path makes it invisible to GRUB.

How to move the ISO up one tier, or how to tell GRUB to descend the path?

Setting Ubuntu 24.04lts to boot using older kernel (on hold) https://askubuntu.com/questions/1559460/setting-ubuntu-24-04lts-to-boot-using-older-kernel-on-hold

my grub timer is set to boot default windows. I do not want to change this , but keep default to windows upon timeout since I use windows first every morning to read news... ubuntu is for more secure stuff and computer work done later in the day, maybe.

So info on how to change grub default/timer NOT USEFUL

When I chose to instead select Ubuntu before default timeout, it always goes to most recent kernel, even though it is not at the top of the advanced list (thanks to editing it via grub customizer) - so I have to remember to go to the advanced list and select the top one which is an older kernel (that's on hold to keep updates from easing it)...

The top one may be an older kernel, but with it everything is perfect - some of these newer installed kernels glitch certain things, and I'll try them as they come out to see if they don't screw with something, and if they don't I'll move to it (like I did from 6.8.0-79 to 6.8.0-85) ~ if they do then to heck with it.

QUESTION: how do I make it boot to my kernel at the top of the list and not the newest when just clicking UBUNTU in the grub menu on initial boot, not just restoring, instead of having to remember to go into the advanced mode and use the list?

Hmmmm.... this seems to maybe be impossible?

Note that when restoring from hibernation, I can just click UBUNTU before the default timer goes to windows, and it goes to the kernel selected when first booted, not newest, thus not requiring going to the advanced list to select...

Secure Boot Messed up everything [closed] https://askubuntu.com/questions/1559448/secure-boot-messed-up-everything

This question has gotten a lot of backlash, so here's some additional info i might have skipped.

I am on Ubuntu 22.04 LTS. It was installed with secure boot disabled. My issue is however, not the fact that when secure boot is on. It's the fact that I turned on secure boot, switched it off again, and now Ubuntu remains in a broken state with almost no driver loaded. I can boot Ubuntu with both, secure boot on and off. However, it does not change the fact that none of my previously working drivers aren't loaded anymore.

I am looking for a long term solution, as I assume that a quickfix will be broken by secure boot again.

Thank you.


So, I have a dual boot running on my machine. I use windows for anything office and gaming related, and ubuntu for development.

Now, gaming nowaday often requires secure boot because of the damn anti cheat stuff. I enabled it, and now Ubuntu is completely broken, even after disabling secure boot.

Two issues: 1) Second display is no longer detected. Only one of the is working at a time, random which on when rebooting. 2) Ethernet connection is no longer detected.

I tried purging drivers, resetting services and so on. Basically anything you find within the first ten pages of google. But it seems secure boot f**ed my whole system.

So. How do I get Ubuntu up and running again? Is a reinstall inevitable? What's a long term solution? I will have to reenable secure boot once again some time.

Thanks for your help!

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?!?!

My Bluetooth headphones work only mono (no stereo) https://askubuntu.com/questions/1525280/my-bluetooth-headphones-work-only-mono-no-stereo

I'm currently using Ubuntu 24.04, but I also faced this issue in version 22. When I connect my Bluetooth headphones (Soundcore P3), it plays only mono and the only available configurations in the settings are: -HSP/HFP -HSP/HFP codec CVSD -HSP/HFP codec mSBC

I've tried almost every solution I could find, but nothing has worked. Has anyone else encountered this problem and managed to solve it? Any help would be greatly appreciated!

There was a previous post with a similar problem and an answer suggests to turn off input channel to allow A2DP. I tried that, but the problem is still existing and I still have only these 3 configuration above...

PS: I use my earbuds with different systems (i.e. Android, iPad, Windows, other distros like fedora) and it works well without any problem.

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

Need help on google authenticator on ubuntu https://askubuntu.com/questions/1370702/need-help-on-google-authenticator-on-ubuntu

I have Ubuntu 20.04.3 LTS where I have successfully installed Google authenticator for MFA authentication, now I need a help on the steps of authentication, my goal is this:

  1. If a user has no ssh-key then on SSH connection the user must first enter their password and then enter the Google verification key to get system access.

  2. If a user has an ssh-key then there is no need to enter a password, but they should need to enter the Google verification key.

Is this possible, if yes what kind of settings do I need to set in /etc/ssh/sshd_config and /etc/pam.d/sshd

Here is my existing /etc/pam.d/sshd configuration

# Standard Un*x password updating.
@include common-password

# Standard Un*x authentication.
@include common-auth

# Standard Un*x authentication.
auth required pam_google_authenticator.so nullok user=root secret=/root/totp/${USER}
auth required pam_permit.so

And here is /etc/ssh/sshd_config file

ChallengeResponseAuthentication yes
UsePAM yes
PubkeyAuthentication yes
AuthorizedKeysFile     .ssh/authorized_keys
PermitRootLogin yes
PasswordAuthentication no
AuthenticationMethods publickey,keyboard-interactive
How can I force remove a snap https://askubuntu.com/questions/1364861/how-can-i-force-remove-a-snap

I am trying to delete Spotify.

I ran sudo snap remove spotify, but it hung for a long time and I had to kill the command by sending it a SIGQUIT (Ctrl + \) since it didn't respond with a SIQINT (Ctrl + c)

I tried running the command again, but it is now in this weird stuck state where it says it's installed but cannot be removed.

Here is some diagnostic information:

$ snap changes
ID   Status  Spawn               Ready               Summary
153  Done    today at 16:15 CDT  today at 16:16 CDT  Auto-refresh snap "spotify"
154  Error   today at 21:35 CDT  today at 21:44 CDT  Remove "spotify" snap
155  Abort   today at 21:44 CDT  -                   Remove "spotify" snap
$ sudo snap install spotify
snap "spotify" is already installed, see 'snap help refresh'
$ sudo snap refresh spotify
snap "spotify" has no updates available
$ sudo snap remove --purge spotify
error: snap "spotify" has "remove-snap" change in progress

I tried googling , but I can't find anything about forcefully removing the snap.

How do I force snap to delete this snap?

the kate editor is missing in ubuntu 20.04 start menu https://askubuntu.com/questions/1262584/the-kate-editor-is-missing-in-ubuntu-20-04-start-menu

ever since upgrading to ubuntu 20.04, i can't find the kate IDE in the ubuntu start menu anymore.

i'd also like to be able to start .php and .js and .json files using kate..

i've searched the web for any clues, but could not find any..

please share any ideas you might have for me in this thread.

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']

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory https://askubuntu.com/questions/1064111/importerror-libcublas-so-9-0-cannot-open-shared-object-file-no-such-file-or-d

I am getting this error when I want to import tensorflow-gpu on Ubuntu 16.04.

I have installed CUDA 9.1 properly, cudNN 7.1 properly and tested both without facing any problem. (using python 3.5 2.)

I have used pip3 in either ways (with several tensorflow versions): i tried:

#for tensoflow 1.4
pip3 install tensorflow-gpu==1.4
# for tensorflow 1.8 from source
pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.8.0rc1-cp35-cp35m-linux_x86_64.whl

I have tried to install several versions of tensorflow-gpu , 1.4, 1.5 , 1.8 ,1.9. still getting the same error, when running

import tensorflow as tf 

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Is there any way to get rid of this? or it is just installing cuda 9.0 ( which will be the pain as it took a week for me to install the cuda 9.1 due to problems of nvidia and Ubuntu !)

I also installed libcupti (required) and Bazel (required). from this page: http://www.python36.com/install-tensorflow141-gpu/2/

moreover, i have installed the same setup on windows (tensorflow 1.8 , cuda 9.1) without any problem.

OpenVPN keeps flipping back VPN connections https://askubuntu.com/questions/905482/openvpn-keeps-flipping-back-vpn-connections

I installed PrivateInternetAccess VPN on my machine using the instructions provided here.

Now when I open the network settings, the dialog appears for me, but every time I click to turn "on" any VPN connection, it immediately flips back to "off".

enter image description here

What could be going wrong here? What would be a good way to debug this?

FWIW I am running Ubuntu 16.04 LTS, GNOME.

viewing multicast mpeg ts streams in ubuntu 16.04 with either ffplay or vlc media player https://askubuntu.com/questions/858939/viewing-multicast-mpeg-ts-streams-in-ubuntu-16-04-with-either-ffplay-or-vlc-medi

I have been trying to view multicast streams as mentioned in the title above, but all efforts gone in vain. Initially i tried to view the streams by disabling ufw, assuming probably firewall might have been blocking the traffic, but this did not help my cause.

I have a cisco 3975 switch which is perfectly streaming out the multicast streams. I am able to receive and play out any available streams on windows system, but when i connect the ubuntu system on the same interface of the switch it fails to play.

Can somebody guide me in finding the way to simply receive and view the content through applications such as ffplay and vlc?

thanks

How to install MikroTik? https://askubuntu.com/questions/836958/how-to-install-mikrotik

I need to install MikroTik , but I can't do it using Windows on virtual machine, because my CPU has no virtualization support and don't let me to install this.

How I can do it using for example terminal ?

Desktop sharing to Mac from Ubuntu 16.04.1 https://askubuntu.com/questions/829979/desktop-sharing-to-mac-from-ubuntu-16-04-1

I see this post, but the setting mentioned there doesn't seem to exist in Ubuntu 16.04.1.

Did it get moved? Do I need to create it? Something else? Note that we wouldn't be having this conversation except our senior guys who work on Mac can't connect to help out our other guys on Ubuntu.

How to make sure what is causing slow boot time on Lubuntu? https://askubuntu.com/questions/816006/how-to-make-sure-what-is-causing-slow-boot-time-on-lubuntu

I'm not sure what counts slow or fast boot in the Linux world, but it seems like the Lubuntu machine that I have here (specs here), seems to be booting somewhat slow (around 50 seconds). My parents started complaining to me about slow boot and I thought I'll look into it.

The LXSession configuration wizard did not show anything that should slow the boot down. It showed the following services will start when computer is starting (computer is not in English, so I'm not sure if I'm translating correctly): power management, software updater, networking service, Screen Locker, user folder updates, AT-SPI D-Bus Bus.

Then I looked into dmesg, I suppose it's showing the boot time in the beginning of the line and saw some strange behaviours:

[   21.827368] audit: type=1400 audit(1471992144.548:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=1854 comm="apparmor_parser"
[   21.944457] audit: type=1400 audit(1471992144.668:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=1850 comm="apparmor_parser"
[   21.944478] audit: type=1400 audit(1471992144.668:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=1850 comm="apparmor_parser"
[   32.425176] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[   32.892255] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[   34.236909] e1000e: enp0s25 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
[   34.237022] e1000e 0000:00:19.0 enp0s25: 10/100 speed: disabling TSO
[   34.237060] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s25: link becomes ready
[   42.868183] ata1.00: configured for UDMA/100
[   42.868192] ata1: EH complete

So for some reason on the 21st second it just hangs and starts loading IPv6 service that I have nothing to do with. Could it be the reason behind slow boot? And if yes, how could I troubleshoot it?

I've been googling around for some time, but haven't really found good advice that would help me. The things I've tried haven't resolved the issue.

I'd be grateful if someone would help me investigate what's causing slow boot on this Lubuntu machine.

Thanks!

edit: A user called eridani suggested me to take a look in a tool called systemd-analyze, which may help me discover what slows down the boot time.
Here's the output of a command systemd-analyze plot > ~/Desktop/systemd.html: link to download (couldn't find a better way to share it).

Another command that was suggested in the Arch Linux blog was systemd-analyze critical-chain and here's the output of it:

~$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @38.425s
└─multi-user.target @38.425s
  └─teamviewerd.service @36.611s +1.812s (displayed in red color)
    └─network-online.target @36.598s
      └─NetworkManager-wait-online.service @24.297s +12.301s (displayed in red color)
        └─NetworkManager.service @19.493s +4.785s (displayed in red color)
          └─dbus.service @15.022s
            └─basic.target @14.901s
              └─paths.target @14.901s
                └─systemd-networkd-resolvconf-update.path @14.901s
                  └─sysinit.target @14.869s
                    └─apparmor.service @6.651s +8.167s (displayed in red color)
                      └─local-fs.target @6.646s
                        └─run-user-1000.mount @34.907s
                          └─local-fs-pre.target @6.646s
                            └─systemd-remount-fs.service @6.533s +100ms (displayed in red color)
                              └─system.slice @1.934s
                                └─-.slice @1.851s

NetworkManager and apparmor.service seem to take quite a bit to load. Could I tweak something so that these would load faster?

Then again, is 44 seconds a good boot-up time given my specs? Could I somehow get it down a bit, using some even more lightweight distro (then again, I don't want to lose that much usability too, given it's my parents' computer, current Lubuntu GUI is good enough, I may try Xubuntu too).

Thanks for the help.

edit2: Apparently the disable command did not actually disable the NetworkManager-wait-online.service, so I used the following commands:

systemctl disable NetworkManager-wait-online.service  
systemctl mask NetworkManager-wait-online.service

And got the system boot time from this: Startup finished in 5.647s (kernel) + 38.452s (userspace) = 44.100s to this: Startup finished in 5.487s (kernel) + 26.994s (userspace) = 32.481s. Though from a psychological perspective, it doesn't seem like, it's 12 seconds faster, but if the numbers say so, then I've got nothing to argue.

And now we have the apparmor.service left, which takes ~10 seconds to load. Here's the updated command of systemd-analyze critical-chain:

:~$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @26.958s
└─multi-user.target @26.958s
  └─ntp.service @26.590s +368ms (displayed in red)
    └─network-online.target @26.569s
      └─network.target @26.569s
        └─NetworkManager.service @23.537s +3.032s (displayed in red)
          └─dbus.service @16.973s
            └─basic.target @16.896s
              └─sockets.target @16.896s
                └─pcscd.socket @16.896s
                  └─sysinit.target @16.895s
                    └─apparmor.service @6.518s +10.348s (displayed in red)
                      └─local-fs.target @6.513s
                        └─local-fs-pre.target @6.456s
                          └─systemd-remount-fs.service @6.353s +88ms (displayed in red)
                            └─systemd-journald.socket @1.901s
                              └─-.mount @1.826s
                                └─system.slice @1.901s
                                  └─-.slice @1.826s

And the output of systemd-analyze blame | head:

:~$ systemd-analyze blame | head
         10.348s apparmor.service
          9.634s dev-sda1.device
          7.510s ModemManager.service
          7.449s grub-common.service
          6.908s networking.service
          6.898s apport.service
          6.879s irqbalance.service
          6.791s systemd-logind.service
          6.724s ondemand.service
          6.595s alsa-restore.service

Helpful user, eridani, asked for output of two commands, which might help me troubleshoot the slowness of apparmor.service and here they are:

~$ systemctl status apparmor
● apparmor.service - LSB: AppArmor initialization
   Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled)
   Active: active (exited) since P 2016-08-28 20:00:10 EEST; 31min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 785 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS)

    aug   28 19:59:59 dc7800 systemd[1]: Starting LSB: AppArmor initialization...
    aug   28 20:00:08 dc7800 apparmor[785]:  * Starting AppArmor profiles
    aug   28 20:00:09 dc7800 apparmor[785]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
    aug   28 20:00:09 dc7800 apparmor[785]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
    aug   28 20:00:10 dc7800 apparmor[785]:    ...done.
    aug   28 20:00:10 dc7800 systemd[1]: Started LSB: AppArmor initialization.

And another one:

:~$ journalctl |grep apparmor
aug   28 20:00:08 dc7800 apparmor[785]:  * Starting AppArmor profiles
aug   28 20:00:09 dc7800 audit[1849]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1849]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1849]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1849]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.772:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.772:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.772:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.772:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=1849 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1848]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=1848 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1848]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=1848 comm="apparmor_parser"
aug   28 20:00:09 dc7800 apparmor[785]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.852:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=1848 comm="apparmor_parser"
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.852:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=1848 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1852]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=1852 comm="apparmor_parser"
aug   28 20:00:09 dc7800 apparmor[785]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
aug   28 20:00:09 dc7800 kernel: audit: type=1400 audit(1472403609.920:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=1852 comm="apparmor_parser"
aug   28 20:00:09 dc7800 audit[1854]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=1854 comm="apparmor_parser"
aug   28 20:00:10 dc7800 kernel: audit: type=1400 audit(1472403609.996:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=1854 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer//sanitized_helper" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 audit[1850]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer//sanitized_helper" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 kernel: audit: type=1400 audit(1472403610.068:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 kernel: audit: type=1400 audit(1472403610.072:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=1850 comm="apparmor_parser"
aug   28 20:00:10 dc7800 apparmor[785]:    ...done.

I'm trying to Google too in the meantime, but I'd appreciate good thoughts from here too :) Thanks for all the help, especially eridani!

How to convert video along with audio in h264 ffmpeg? https://askubuntu.com/questions/803600/how-to-convert-video-along-with-audio-in-h264-ffmpeg

ffmpeg

ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-libmfx --enable-nonfree
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

I know to convert from one format to other format using the commands like,

ffmpeg -i M.avi -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast M.mp4

Now I m in need of doing conversions like M.avi to M.h264 and then from M.h264 to M.mp4

ffmpeg -i M.avi -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast M.h264

ffmpeg -i M.h264 -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast M.mp4

While doing this everything worked fine, but M.mp4 is playing without audio.

As per the link,

https://stackoverflow.com/questions/5725958/ffmpeg-conversion-skips-audio

I even tried with -acodec copy as

ffmpeg -i M.avi -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast -acodec copy M.h264

ffmpeg -i M.h264 -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast -acodec copy M.mp4

while using the command ffmpeg -i M.mp4 -c:v h264_qsv -look_ahead 0 -strict -2 -preset:v fast -acodec copy n.h264, the outcome is

ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-libmfx --enable-nonfree
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-01-31 09:44:22
  Duration: 00:03:28.38, start: 0.000000, bitrate: 2120 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1925 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      creation_time   : 2016-01-31 09:44:23
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
File 'n.h264' already exists. Overwrite ? [y/N] y
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
[h264 @ 0x2fd4940] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, h264, to 'n.h264':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf57.41.100
    Stream #0:0(und): Video: h264 (h264_qsv), nv12, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 24 tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.48.101 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
Press [q] to stop, [?] for help
frame= 5001 fps=284 q=-0.0 Lsize=   23221kB time=00:03:28.33 bitrate= 913.1kbits/s speed=11.8x    
video:23221kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

Still no audio. Can someone help me with this?

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

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.

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.

No boot option after installing Ubuntu 12.04 LTS on Acer Aspire 4736z with Live CD https://askubuntu.com/questions/154917/no-boot-option-after-installing-ubuntu-12-04-lts-on-acer-aspire-4736z-with-live

I am facing a problem. After installing Ubuntu 12.04 LTS using Live CD, at the reboot there is no boot option to choose the OS. I directly get logged into my Windows 7.

Before that i was having an issue with the 'nomodeset' if not mistaken .After ticking [x] on the nomodeset, i can install my Ubuntu, but got stucked again at choosing the partition option.

So i did 2 partitions for Ubuntu, 1 partition as ext3 for / and the other 1 for swap. Which enabled to proceed until the finished installation dialogue, and after that system wants to reboot .It takes some time and gets stuck at the screen doing nothing, doesn't reboot at all.

I did forced shutdown then rebooted again which directly logs me in windows 7 without boot option. In win7 the partitions for Ubuntu is gone.

I tried the boot-repair thing and it doesn't help .It just shows up the _ Blank Cursor (terminal thing i guess). I typed boot repair but still the same result.

I am using Acer Aspire 4736z.

Please somebody help me with this issue.

How to setup IPSec with Amazon EC2 https://askubuntu.com/questions/50128/how-to-setup-ipsec-with-amazon-ec2

How to setup an IPSec connection from my ubuntu laptop to Amazon EC2 instance? I tried setting it up using elastic IP and VPC with the following openswan configuration but it is not working.

conn host-to-host

    left=%defaultroute
    leftsubnet=EC2PRIVATEIP/32 # Local netmask
    leftid=ELASTICIP
    leftrsasigkey=
    connaddrfamily=ipv4
    right=1laptopip # Remote IP address
    rightid=laptopip
    rightrsasigkey=
    ike=aes128 # IKE algorithms (AES cipher)
    esp=aes128 # ESP algorithns (AES cipher)
    auto=add
    pfs=yes
    forceencaps=yes
    type=tunnel