Unable to format micro SD card after using Raspberry Pi OS "Expand filesystem" https://askubuntu.com/questions/1563059/unable-to-format-micro-sd-card-after-using-raspberry-pi-os-expand-filesystem

I'm having trouble formatting my 16GB micro SD card after using it with Raspberry Pi OS. I installed Raspberry Pi OS Lite on the micro SD card for Pi Zero 2 W. After installation I boot up Pi Zero 2 W with this card on abd used "Expand filesystem" option in raspi-config to use full 16GB. However, now I am trying to format the card because I want to resintall the OS, but it fails.

I have tried fdisk, parted, etc but no success. See below complete logs.

$ lsblk | grep -B 3 disk
loop27        7:27   0 226.3M  1 loop /snap/thunderbird/915
loop28        7:28   0 321.1M  1 loop /snap/vlc/3777
loop29        7:29   0 226.4M  1 loop /snap/thunderbird/919
sda           8:0    0   1.8T  0 disk 
└─sda1        8:1    0   1.8T  0 part /media/hdd
sdb           8:16   1  14.7G  0 disk 
├─sdb1        8:17   1   512M  0 part /media/pi/bootfs
└─sdb2        8:18   1  14.2G  0 part /media/pi/rootfs
nvme0n1     259:0    0 465.8G  0 disk 

$ sudo umount /dev/sdb1
$ sudo umount /dev/sdb2

$ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0290349 s, 36.1 MB/s

$ sudo fdisk /dev/sdb
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): o
Created a new DOS (MBR) disklabel with disk identifier 0x358597cd.
Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 
First sector (2048-30898175, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-30898175, default 30898175): 
Created a new partition 1 of type 'Linux' and of size 14.7 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

$ sudo mkfs.vfat -F 32 /dev/sdb1
mkfs.fat 4.2 (2021-01-31)

$ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.285302 s, 36.8 MB/s

$ sudo parted /dev/sdb mklabel msdos
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be
lost. Do you want to continue?
Yes/No? Yes                                                               
Information: You may need to update /etc/fstab.

$ sudo parted /dev/sdb mkpart primary fat32 0% 100%  
Warning: You requested a partition from 0.00B to 15.8GB (sectors 0..30898175).
The closest location we can manage is 512B to 8388kB (sectors 1..16383).
Is this still acceptable to you?
Yes/No? Yes                                                               
Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s
Ignore/Cancel? Ignore                                                     
Information: You may need to update /etc/fstab.

$ sudo mkfs.vfat -F 32 /dev/sdb1                     
mkfs.fat 4.2 (2021-01-31)

$ lsblk | grep -B 3 disk
loop27        7:27   0 226.3M  1 loop /snap/thunderbird/915
loop28        7:28   0 321.1M  1 loop /snap/vlc/3777
loop29        7:29   0 226.4M  1 loop /snap/thunderbird/919
sda           8:0    0   1.8T  0 disk 
└─sda1        8:1    0   1.8T  0 part /media/hdd
sdb           8:16   1  14.7G  0 disk 
├─sdb1        8:17   1   512M  0 part 
└─sdb2        8:18   1  14.2G  0 part 
nvme0n1     259:0    0 465.8G  0 disk 

All of the above commands are performed on Ubuntu 24.04.3 LTS with 6.14.0-37-generic kernel.

Creating venv with python 3.12 returns error with exit status 1 https://askubuntu.com/questions/1563058/creating-venv-with-python-3-12-returns-error-with-exit-status-1

I am on Ubuntu 22.04 and have installed python 3.12 via ppa following this thread. I need a >3.11 version to run some software so I intended to use the 3.12 version to create a venv. But when I try to create it I get the error:

python3.12 -m venv new_env_312
Error: Command '['/home/user/Softwares/soft312/new_env_312/bin/python3.12', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

I can try the same with python3.10 and it works fine

Why is this happening?

I use the USB Startup Disk Creator to Make a Ubuntu 25.10 Live Install Disk, and it Boots Fine, BIOS set UEFI mode. But the boot disk does not boot https://askubuntu.com/questions/1563057/i-use-the-usb-startup-disk-creator-to-make-a-ubuntu-25-10-live-install-disk-and

After going through the process of setting the computer's BIOS to UEFI, I use the USB Startup Disk Creator in Ubuntu to make a Ubuntu 25.10 Live install disk that boots fine.

I run a manual install with the standard EFI partition to out with 1GB FAT, and then I roughly split the rest of the disk into two partitions, one for the root / and the other for /home/, just leaving about 32GB at the end for swap. I proceed with just the basic options and the install completes fine. Indeed on another computer, I can even boot from this disk fine. The problem is that on the main computer, I get an Operating System Not Found error. I tried to select the startup disk from the initial BIOS menu, but that that has the same result that the operating system is not found. As an aside, I tested from the Live 25.10 boot whether the computer was booting into UEFI mode. Currently I am booted into Legacy mode, from How can I tell if my system was booted as EFI/UEFI or BIOS? where ls /sys/firmware/efi indicating that the file is not found. I tried the boot disk repair on the startup disk after operating system installation did not work, using a separate startup disk. There was the same problem that the Operating System is Not Found.

I am considering the following steps:

  1. Set the computer BIOS to Legacy mode.
  2. I have two versions of the Ubuntu Live Disks, one version 25.10 and the other version 24.04
  3. To start with, I think that I need to try the installation using the 25.10 version operating system with a Legacy erase install.
  4. If that does not boot, I need to use the startup disk fixer program to attempt to fix it and log it here.

The system details for the current Live Boot are as follows:

Basic System Details Advanced System Details

By the way, I cannot even get to the GRUB menu by pressing escape over and over at start. As stated before on another computer booting is perfect, so something seems difficulty with this particular machine and how to fix the BIOS or the operating system for it. But I am really at a loss as to what is causing this problem and how to fix it. I appreciate suggestions and support. Thank you and advance Ask Ubuntu Community!

Your input can't be opened: VLC is unable to open the MRL 'dvd:///dev/sr0'. Check the log for details https://askubuntu.com/questions/1563056/your-input-cant-be-opened-vlc-is-unable-to-open-the-mrl-dvd-dev-sr0-chec

I am trying to play a DVD using vlc, but I get the following error:

Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/sr0'. Check the log for details.

lshw shows this device as mounted:

      *-cdrom
            description: DVD-RAM writer
            product: DVDRAM GT80N
            vendor: hp
            physical id: 1
            bus info: scsi@1:0.0.0
            logical name: /dev/cdrom
            logical name: /dev/sr0
            logical name: /media/jcobban/LOIS_AND_CLARK_S1_D4
            version: RA05
            capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
            configuration: ansiversion=5 mount.fstype=udf mount.options=ro,
                           nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8, 
                           state=mounted status=ready
          *-medium
               physical id: 0
               logical name: /dev/cdrom
               logical name: /media/jcobban/LOIS_AND_CLARK_S1_D4
               configuration: mount.fstype=udf mount.options=ro,nosuid,nodev,             
                              relatime,uid=1000,gid=1000,iocharset=utf8 state=mounted

I cannot see any useful information in the log.

So why can VLC not open this volume? This sometimes works and sometimes does not.

I am using VLC to open this DVD rather than my Blu-Ray player because Amazon misled me when I purchased the DVD set in to thinking it came from California. But when the set arrived it was shipped from England where it, of course, has a region code which is not supported by players sold in North America.

shotwell memory issue https://askubuntu.com/questions/1563000/shotwell-memory-issue

I have 32gb ram, but shotwell locks system up when importing huge number of photos. Kubuntu eventually kills shotwell, so import doesn't finish. I can't figure out how to get around this issue. I tried using unsupported newer version of shotwell, but errors come up saying repo blocked.

I'm trying digikam. I like it, but a huge number of photos are missing, and I can't see how to import them.

Unable to access ssh server, (no route to host error) https://askubuntu.com/questions/1562674/unable-to-access-ssh-server-no-route-to-host-error

Unable to access ssh server, (no route to host error)

Using HP laptops, both installed with Lubuntu 24.04 LTS and on the same WiFi LAN

Client:

   PCManFM-Qt File Manager
   Go -> Connect to Server
   Type = SSH
   Host = Server IP address
   Port = 22 (default)
   Path = leave clear
   Log in as = Server user name

Server:

   sudo service ssh status
   enabled active and running

   sudo ufw allow OpenSSH

  • Uninstalled & reinstalled server.
  • Updated ufw rules (port number 54321) on both server and client.
  • Started from scratch using ("Connect two computers with SSH in a home LAN").
  • ssh-copy-id worked this time. (Number of key(s) added: 1)

Set passwordAuthentication no, disabled root login, set port number to 54321 in /etc/ssh/sshd_config

sudo systemctl restart ssh
 - Disabled the password based authentication, but File manager is still asking me for a password to log-in?



    name@name-hp255g1notebookpc:~$ sftp -P 54321 -vvvv name@192.168.1.153
    OpenSSH_9.6p1 Ubuntu-3ubuntu13.14, OpenSSL 3.0.13 30 Jan 2024
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *
    debug2: resolve_canonicalize: hostname 192.168.1.153 is address
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/name/.ssh/known_hosts'
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/name/.ssh/known_hosts2'
    debug3: channel_clear_timeouts: clearing
    debug3: ssh_connect_direct: entering
    debug1: Connecting to 192.168.1.153 [192.168.1.153] port 54321.
    debug3: set_sock_tos: set socket 3 IP_TOS 0x10
    debug1: connect to address 192.168.1.153 port 54321: No route to host
    ssh: connect to host 192.168.1.153 port 54321: No route to host
    Connection closed.  
    Connection closed


debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files

/etc/ssh/ssh_config.d/*.conf on both client & server are empty

Ubuntu cyberghost openvpn: Authentication required https://askubuntu.com/questions/1562428/ubuntu-cyberghost-openvpn-authentication-required

Ubuntu 24 here.

I am using the vanilla Ubuntu's network settings with the opvn file provided by CyberGhost. Upon turning on the VPN in the settings, I got prompted Authentication required with no idea what password it asks for. Is it my ubuntu password? the VPN password? None worked.

I can't upgrade to Ubuntu 24.04 https://askubuntu.com/questions/1518621/i-cant-upgrade-to-ubuntu-24-04

I can't upgrade to Ubuntu 24.04 so far since it was launched many weeks ago.

It starts fine. Then it asks for enabling third-party sources. Then it fails at the second step (setting new software channels).

It shows me a tab of errors, then it cancels the whole process.

enter image description here

enter image description here

Once I click OK on the error the whole process gets canceled automatically.

After trying to upgrade then failed, I tried to reboot.

This what it shows which I think it's the reason. It's the shim signature. I don't want to download an ISO and do full formatting. I only want to upgrade.

error: prohibited by secure boot policy.
error: bad shim signature.
error: you need to load the kernel first.

Press any key to continue...

  Failed to boot both default and fallback entries.

Press any key to continue..._
Text expander, that works with Ubuntu 24.04? https://askubuntu.com/questions/1513858/text-expander-that-works-with-ubuntu-24-04

I'm looking for a text expander, that works with Ubuntu 24.04.

Espanso doesn't work unfortunately.

Does anyone have a suggestion? I would appreciate any kind of help!

Kernel panic - not syncing; error loading shared libraries: lib.so.6; unable to find persistent home medium https://askubuntu.com/questions/1503444/kernel-panic-not-syncing-error-loading-shared-libraries-lib-so-6-unable-to

I have been trying to find posts with the same issue as mine, but I had no luck yet, hence I'm posting.

I have Ubuntu 20.04 (ubuntu-20.04.1-desktop-amd64.iso) installed on 64GB USB drive with help of a Rufus persistent live USB. I've been using it for a long time.

Yesterday the screen turned blank. I plugged in the power, but it didn't help and then it shut down. All attempts to reboot lead me to the following boot messages.

[    2.683048] psmouse serio1: synaptics: TouchPad model: 1, fw: 10.92, id: 0x1e2a1, caps: 0xf014a3/0x940300/0x12e800/0x500000, board id: 3471, fw id: 3972349
[    2.685678] psmouse serio1: synaptics: serio: Synaptics pass-through port at isa0060/serio1/input0
[    2.748867] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input7
[    3.445260] psmouse serio2: trackpoint: Elan TrackPoint firmware: 0x11, buttons: 3/3
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done.
Begin: Running /scripts/nfs-premount ... done.
[    3.758519] input: TPPS/2 Elan TrackPoint as /devices/platform/i8042/serio1/serio2/input/input8
[    4.086398] scsi 0:0:0:0: Direct-Access     Samsung Flash Drive FIT  1100 PQ: 0 ANSI: 6
[    4.089902] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.090851] sd 0:0:0:0: [sda] 125313283 512-byte logical blocks: (64.2 GB/59.8 GiB)
[    4.094484] sd 0:0:0:0: [sda] Write Protect is off
[    4.096279] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.131614]  sda: sda1 sda2 sda3 sda4
[    4.136003] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/casper-premount ... done.
done.
stdin: Invalid argument
[    5.154509] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    5.208737] loop0: detected capacity change from 0 to 4323184
[    5.273279] overlayfs: "xino" feature enabled using 32 upper inode bits.
stdin: Invalid argument
stdin: Invalid argument
Warning: Unable to find the persistent home medium
stdin: Invalid argument
stdin: Invalid argument
Warning: Impossible to include the casper-sn Snapshot
stdin: Invalid argument
[    5.971324] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    5.974902] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.012565] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.014182] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.177567] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.179158] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.206105] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.207937] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.234687] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
[    6.236217] overlayfs: invalid origin (x86_64-linux-gnu/libc.so.6, ftype=8000, origin ftype=4000).
done.
Begin: Running /scripts/nfs-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
/sbin/init: error while loading shared libraries: libc.so.6: cannot open shared object file: Input/output error
[    6.694304] kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    6.695796] CPU: 0 PID: 1 Comm: init Not tainted 5.11.0-16-generic #17-Ubuntu
[    6.696625] Hardware name: LENOVO 20UES2KW0Y/20UES2KW0Y, BIOS R1BET67W(1.36 ) 10/19/2021
[    6.696625] Call Trace:
[    6.696625]  show_stack+0x52/0x58
[    6.696625]  dump_stack+0x70/0x8b
[    6.696625]  panic+0x101/0x2e3
[    6.696625]  do_exit.cold+0xb0/0xb0
[    6.696625]  do_group_exit+0x3b/0xb0
[    6.696625]  __x64_sys_exit_group+0x18/0x20
[    6.696625]  do_syscall_64+0x38/0x90
[    6.696625]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    6.696625] RIP: 0033:0x7f1bbcab4b51
[    6.696625] Code: 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa be e7 00 00 00 ba 3c 00 00 00 eb 0d 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 89 05 87 16 01 00 eb dd 0f 1f 44 00
[    6.696625] RSP: 002b:00007ffdieb41d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[    6.696625] RAX: ffffffffffffffda RBX: 00007f1bbc731f60 RCX: 00007f1bbcab4b51
[    6.696625] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
[    6.696625] RBP: 00007ffdieb428c0 R08: 0000000000000080 R09: 0000000000000000
[    6.696625] R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f1bbcabdcb0
[    6.696625] R13: 00007f1bbc731f4f R14: 0000000000000000 R15: 00007f1bbcac6220
[    6.696625] Kernel Offset: 0x2a000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    6.696625] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---

Grub screen doesn't have any recovery / advance options as recommended in other posts. I am able to plug this drive in an Ubuntu 18.04 live USB and see the folder structure as shown in the Ubuntu and writable screenshots.

Ubuntu

writable

I don't know if it's a kernel issue or if some other file is corrupt/stuck which is preventing it from booting up.

Update: I followed steps recommended by mcendu. I made some progress. libc.so.6 error is not showing up anymore. Here's the latest boo messages after replacing libc.so.6 of persistent 21.04 from the live USB 21.04.

[    4.595708] sda: sda1 sda2 sda3 sda4
[    4.598036] sd 0:0:0:0: [sda] Attached SCSI removable disk
stdin: Invalid argument
[    5.971132] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    6.009178] loop0: detected capacity change from 0 to 4323184
[    6.079952] overlayfs: "xino" feature enabled using 32 upper inode bits.
stdin: Invalid argument
stdin: Invalid argument
Warning: Unable to find the persistent home medium
stdin: Invalid argument
stdin: Invalid argument
Warning: Impossible to include the casper-sn Snapshot
stdin: Invalid argument
stdin: Invalid argument
Warning: Impossible to include the home-sn Snapshot
done.
Begin: Creating debconf-communicate fifo mechanism ... done.
Begin: Running /scripts/casper-bottom ... Begin: Moving mount points... ... done.
/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: pthread_getspecific, version GLIBC_2.2.5
Begin: Configuring fstab... ... done.
Begin: Setting up swap... ... done.
Begin: Setting up locales... ... done.
Begin: Setting up automatic login... ... done.
Begin: Disabling systemd's GPT auto generator... ... done.
Begin: Setting hostname... ... done.
Begin: Setting up console keyboard... ... done.
Begin: Applying desktop settings... ... glib-compile-schemas: symbol lookup error: /lib/x86_64-linux-gnu/libselinux.so.1: undefined symbol: dlopen, version GLIBC_2.2.5
done.
Begin: Regenerating SSL certificate... ... /bin/bash: symbol lookup error: /bin/bash: undefined symbol: dlopen, version GLIBC_2.2.5
done.
Begin: Loading preseed file... ... Begin: Adding live session user... ... Begin: Setting up init... ... ln: /root/usr/sbin/anacron: File exists
done.
ln: /root/lib/systemd/system/cdrom.mount: File exists
Begin: Configuring accessibility options... ... done.
Begin: Disabling update-notifier... ... done.
Begin: Configuring power management... ... done.
Begin: Enabling detection of crashes... ... done.
Begin: Disabling unnecessary KDE services... ... done.
Begin: Fixing language selector... ... done.
Begin: Disabling trackerd... ... done.
Begin: Adding APT-CDROM source... ... done.
Begin: Running /scripts/nfs-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
/sbin/init: symbol lookup error: /lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: pthread_getspecific, version GLIBC_2.2.5
[    7.807914] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    7.809390] CPU: 8 PID: 1 COMM: init Not tainted 5.11.0-16-generic #17-Ubuntu
[    7.809390] Hardware name: LENOVO 20UES2KWOY/20UES2KWOY, BIOS R1BET67W(1.36 ) 10/19/2021
[    7.809390] Call Trace:
[    7.809390]  show_stack+0x52/0x58
[    7.809390]  dump_stack+0x70/0x8b
[    7.816936]  panic+0x101/0x2e3
[    7.816936]  do_exit.cold+0xb0/0xb0
[    7.816936]  do_group_exit+0x3b/0xb0
[    7.816936]  __x64_sys_exit_group+0x18/0x20
[    7.816936]  do_syscall_64+0x38/0x90
[    7.824935]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    7.824935] RIP: 0033:0x7f8a93d99b51
[    7.824935] Code: 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa be e7 00 00 00 ba 3c 00 00 00 eb 0d 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 89 05 87 16 01 00 eb dd 0f 1f
[    7.824935] RSP: 002b:00007ffe4e288418 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[    7.824935] RAX: ffffffffffffffda RBX: 000000006204ad92 RCX: 00007f8a93d99b51
[    7.824935] RDX: 000000000000003c RSI: 0000000000000e7 RDI: 000000000000007f
[    7.832936] RBP: 00007ffe4e2889f0 R08: 0000000000000000 R09: 0000000000000000
[    7.832936] R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f8a93d9fd94
[    7.832936] R13: 00007f8a9312d4ab R14: 00007ffe4e2889c0 R15: 00007ffe4e2889d0
[    7.832936] Kernel Offset: 0x1c000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    7.832936] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---
Error on boot from install disk - UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY [duplicate] https://askubuntu.com/questions/1493254/error-on-boot-from-install-disk-unexpected-inconsistency-run-fsck-manually

I'm getting the following error when I boot my PC from a USB that I burned with latest Ubuntu ISO image. I tried burning the USB twice using Etcher and Rufus just in case that process failed for some reason.

[  0.091367] x86/cpu: SGX disabled by BIOS  
/dev/nvme0n1p5: The filesystem size (according to the superblock) is 10240000 blocks  
The physical size of the device is 10239513 blocks  
Either the superblock or the partition table is likely to be corrupt!  

/dev/nvme0n1p5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/nvme0n1p5 requires a manual fsck

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) [  2.756204] sd 6:0:0:0: [sda] No Caching mode page found
[  2.756263] sd 6:0:0:0: [sda] Assuming drive cache: write through
_

I'm installing ubuntu-22.04.3-desktop-amd64 .
I did a checksum verification and my ISO file is valid.

I installed Ubuntu 23.04 on my Asus Tuf Gaming A15 laptop (2023), the keyboard does not work https://askubuntu.com/questions/1479721/i-installed-ubuntu-23-04-on-my-asus-tuf-gaming-a15-laptop-2023-the-keyboard-d

I installed Ubuntu 23.04 on my Asus Tuf Gaming A15 laptop (2023), the keyboard does not work, the drivers are all installed, checked through the command, everything is updated, all packages are updated, tried reinstalling does not help, installed using the on-screen keyboard


Nothing helped, the problem is that ubuntu perceives the laptop as a tablet, and it is probably necessary to write a patch for the Linux kernel, to define new chip sets of keyboards, or what else can be done?

Stuck at boot messages screen after reboot https://askubuntu.com/questions/1440911/stuck-at-boot-messages-screen-after-reboot

I recently installed Ubuntu 22.04. It was working fine until a user tried to install ARM compiler and debugger drivers. The computer then started acting weird so it rebooted. Now the computer doesn't get past the boot messages. Every line is "OK" except for "Failed to start D-Bus System Message Bus" line. Then it always leaves off at "unattended-upgrades.service".

I'm not sure where to start with troubleshooting this. I don't have much experience with Linux.

[  OK  ] Started System Logging Service.
[  OK  ] Finished Record successful boot for GRUB.
[  OK  ] Started D-Bus System Message Bus.
Starting GRUB failed boot detection...
[  OK  ] Finished Secure Boot updates for DB and DBX.
[FAILED] Failed to start D-Bus System Message Bus.
See 'systemctl status dbus.service' for details.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Finished Remove Stale Online ext4 Metadata Check
[  OK  ] Started Snap Daemon.
Starting Wait until snapd is fully seeded...
[  OK  ] Finished Detect the available GPUs and deal wit
openvpn.service
systemd-user-sessions.service
snapd.seeded.service
alsa-restore.service
kerneloops.service
cups.service
cups-browsed.service
connectwisecontrol-5919e06ef2bd9b9c.service
unattended-upgrades.service
Updated node to 16.16.0, says 12.22.9 when I 'nodejs --version' https://askubuntu.com/questions/1422916/updated-node-to-16-16-0-says-12-22-9-when-i-nodejs-version

I'm trying to update nodejs in a fresh installation of Ubuntu 22.04 in a VM.

When I run this:

nodejs --version

It outputs:

v12.22.9

I've seen in many places that to update Node to the latest version you execute these commands:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

When I do it it appears to work and states:

copying: node/16.16.0

However, when I nodejs --version again it still says v12.22.9

What am I doing wrong?

All I've found online tells me to do the above.

How can I update nodejs and have it update to the latest version?

left and right ctrl key behaviour https://askubuntu.com/questions/1380885/left-and-right-ctrl-key-behaviour

In certain applications trying to use ctrl-c to copy using the left ctrl key doesn't work but using the right ctrl key works as expected.

I'm on Ubuntu 21.10 but this has been happening in previous versions. My laptop is a Gigabyte Aorus 7 using the built in keyboard using US keyboard layout for the language setting.

I do not have this mapped as a custom shortcut anywhere.

For example, in Nemo or Nautilus I often want to copy the name of the file, or rename it from text I've copied from elsewhere. So, I press F2 on the file in order to then copy the text (or paste text to rename it).

This works fine with the right ctrl-c / ctrl-v combination.

With the left as soon as I hit the ctrl key it goes out of edit mode. It's like I've hit the escape key.

BUT in LibreOffice it works fine, just as expected. Both left and right ctrl-c / ctrl-v work fine.

Another application I use is a commercial tool called EdrawMax. This is a Visio like application for flow charting. It also has odd behaviour if I'm trying to copy items in it using left ctrl-c but works fine with right ctrl-c.

What gives?

Can't merge unallocated partition to the Ubuntu partition (/dev/sda6) [duplicate] https://askubuntu.com/questions/1361853/cant-merge-unallocated-partition-to-the-ubuntu-partition-dev-sda6

I can't seem to resize or expand my Ubuntu partition (/dev/sda6) using GParted, no matter whats

Here is a screenshot of my GParted.

enter image description here

I used to have Windows 10 installed on /dev/sda which, after installing Ubuntu, I have now deleted from the dual boot.

I know a lot of other similar answers exist, but none of them have been able to resolve my situation. Booting from a live Ubuntu USB doesn't seem to work either.

Boot to Ubuntu 18.04, Recovery mode is not working https://askubuntu.com/questions/1324579/boot-to-ubuntu-18-04-recovery-mode-is-not-working

I am not able to boot into my Ubuntu today because the computer was powered off during update. Now I am trying to use recovery mode, but then I cannot access the recovery mode menu. After I choose the Advanced Option -> Ubuntu, with Linux....(recovery mode), my screen is stuck.

[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Found device WDC_WDS100T2B0B-00YS70 1.
Activating swap /dev/disk/by-uuid/4103d7fa-7934-4dfd-820c-0adbedc2a483...
[  OK  ] Found device WDC_WDS100T2B0B-00YS70 3.
Starting File System Check on /dev/disk/by-uuid/5af8fd70-3120-4cbd-a5d3...
[  OK  ] Activated swap /dev/disk/by-uuid/4103d7fa-7934-4dfd-820c-0adbedc2a483.
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Reached target Swap.
[    4.098364] pcieport 0000:00:1c.2: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[    4.099062] pcieport 0000:00:1c.2:   device [8086:a292] error status/mask=00000001/00002000
[    4.099422] pcieport 0000:00:1c.2:    [ 0] Receiver Error            (First)
[  OK  ] Started File System Check on /dev/disk/by-uuid/5af8fd70-3120-4cbd-a5d3...
Mounting /home...
[  OK  ] Mounted /home.
[  OK  ] Found device TOSHIBA_DT01ACA100 ESP.
Starting File System Check on /dev/disk/by-uuid/0293-8227...
[  OK  ] Started File System Check on /dev/disk/by-uuid/0293-8227.
Mounting /boot/efi...
_
Issue while booting into Ubuntu 18.04 https://askubuntu.com/questions/1299970/issue-while-booting-into-ubuntu-18-04

Recently my laptop automatically shutdown all of a sudden, and did a disk check while shutting down showing a lot of error messages. Then I had to force shutdown.

Since then while booting every time either normally or in Recovery mode, the screen freezes and then shows an error message like "no such device" and "you need to load the kernel first".

error: failure reading sector 0x74706da0 from 'hd0'.
error: failure reading sector 0x74706d00 from 'hd0'.
error: failure reading sector 0x0 from 'hd0'.
error: failure reading sector 0x74706da0 from 'hd0'.
error: failure reading sector 0x74706d00 from 'hd0'.
error: failure reading sector 0x0 from 'hd0'.
error: no such device: 7a9a6509-2b4f-4c2c-83ab-c37c7fde9b65.
Loading Linux 5.3.0-40-generic ...
error: failure reading sector 0x101000 from 'hd0'.
Loading initial ramdisk ...
error: you need to load the kernel first.

Press any key to continue...
_

Specs:

   OS: Ubuntu 18.04
   Processor: Intel Core i5 8th gen
   Storage: 1TB HDD
   RAM: 4GB + 8GB (extra added)

Any methods to safely repair the issue without any data loss are highly appreciated.

Ubuntu VM fails to boot and blocks at "installing open-vm-tools" https://askubuntu.com/questions/1279506/ubuntu-vm-fails-to-boot-and-blocks-at-installing-open-vm-tools

I have created a VM with Ubuntu 20.04.1 on VMware Workstation 12.5. When starting the VM it gets blocked at installing open-vm-tools I have the network connected and I can open a Fedora VM which is working fine. btw I have also some fails about cpufreq related to the cores.

Here are the errors:

[    2.024143] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 0 (
-19)
[    2.024422] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 1 (
-19)
[    2.024674] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 2 (
-19)
[    2.024804] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 3 (
-19)
[    2.024858] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 4 (
-19)
[    2.025033] cpufreq: cpufreq_online: Failed to initialize policy for cpu: 5 (
-19)
[    2.431042] piix4_smbus 0000:00:07.3: SMBus Host Controller not enabled!
[    2.981923] sd 32:0:0:0: [sda] Assuming drive cache: write through
/dev/sda5: recovering journal
/dev/sda5: clean, 164314/5210112 files, 4815347/20839680 blocks
[    5.855024] rc.local[887]: Installing open-vm-tools
_
Issues implementing EFI Grub in USB install of Lubuntu to allow usage with both Legacy and UEFI boot configurations https://askubuntu.com/questions/1253652/issues-implementing-efi-grub-in-usb-install-of-lubuntu-to-allow-usage-with-both

https://askubuntu.com/a/1253617/1098871 is the link to the process I followed.

At step 42 I get this error message:

The following NEW packages will be installed:
efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
0 upgraded, 4 newly installed, 2 to remove and 153 not upgraded.
Need to get 1245 kB of archives.
After this operation, 11.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) focal/main amd64 efibootmgr amd64 17-1
Get:2 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) focal/main amd64 grub-efi-amd64-bin am
Get:3 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) focal/main amd64 grub-efi-amd64
Get:4 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) focal-updates/main amd64 grub-efi-amd6
Fetched 1245 kB in 35s (35.9 kB/s)
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device
(Reading database ... 228356 files and directories currently installed.)
Removing grub-pc (2.04-1ubuntu26) ...
Removing grub-gfxpayload-lists (0.7) ...
Selecting previously unselected package efibootmgr.
(Reading database ... 228334 files and directories currently installed.)
Preparing to unpack .../efibootmgr_17-1_amd64.deb ...
Unpacking efibootmgr (17-1) ...
Selecting previously unselected package grub-efi-amd64-bin.
Preparing to unpack .../grub-efi-amd64-bin_2.04-1ubuntu26_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.04-1ubuntu26) ...
Selecting previously unselected package grub-efi-amd64.
Preparing to unpack .../grub-efi-amd64_2.04-1ubuntu26_amd64.deb ...
Unpacking grub-efi-amd64 (2.04-1ubuntu26) ...
Selecting previously unselected package grub-efi-amd64-signed.
Preparing to unpack .../grub-efi-amd64-signed_1.142.1+2.04-1ubuntu26_amd64.de
Unpacking grub-efi-amd64-signed (1.142.1+2.04-1ubuntu26) ...
Setting up efibootmgr (17-1) ...
Setting up grub-efi-amd64-bin (2.04-1ubuntu26) ...
Setting up grub-efi-amd64 (2.04-1ubuntu26) ...
Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-26-generic
Found initrd image: /boot/initrd.img-5.4.0-26-generic
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.
Adding boot menu entry for UEFI Firmware Settings ...
done
Setting up grub-efi-amd64-signed (1.142.1+2.04-1ubuntu26) ...
Processing triggers for man-db (2.9.1-1) ...
root@lubuntu:/# grub-install --efi-directory=/boot/efi --target=x86_64-efi --
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.
root@lubuntu:/#
You need to load the kernel first - shows error in GRUB Mode https://askubuntu.com/questions/1148794/you-need-to-load-the-kernel-first-shows-error-in-grub-mode

Check out the screenshot. I initiated:

enter image description here

grub> initrd (hd0,msdos1)//vmlinuz root=/dev/vda1
error: file '/vmlinuz' not found.
grub> initrd (hd0,msdos1)/initrd.img
error: you need to to load the kernel first.
grub> _

and it occurs a warning message to load the kernel first.

I don't know how to load the kernel. I can't find it.

Also linux (hd0,msdos1)/vmlinuz root=dev/vda1 shows the file is missing, but the file is already there in the root directory.

Kernel panic after upgrade to 19.04 with kernel 5.0 [closed] https://askubuntu.com/questions/1139217/kernel-panic-after-upgrade-to-19-04-with-kernel-5-0

After upgrading from 18.10 to 19.04 (Kubuntu) I get a kernel panic when booting with the recent 5.0.0 kernel. Booting the previous 4.18.0 kernel works without problems, however I cannot figure out the reason for these kernel panics.

Kernel panic (short):

BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) exit
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
/init: line 359: can't open /root/dev/console: no such file
[  258.059347] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[  258.059624] CPU: 0 PID: 1 Comm: init Not tainted 5.0.0-13-generic #14-Ubuntu
[  258.059877] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7345/MS-7345, BIOS V1.3 07/23/2007
[  258.060194] Call Trace:
[  258.060288]  dump_stack+0x63/0x8a
[  258.060410]  panic+0x101/0x2a7
[  258.060521]  do_exit.cold.24+0x26/0x75
[  258.060656]  do_group_exit+0x43/0xb0
[  258.060785]  __x64_sys_exit_group+0x18/0x20
[  258.060937]  do_syscall_64+0x5a/0x110
[  258.061069]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  258.061251] RIP: 0033:0x7f0baf1cd926
[  258.061383] Code: Bad RIP value.
[  258.061499] RSP: 002b:00007ffefe77d578 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
[  258.061771] RAX: ffffffffffffffda RBX: 000055f8fbf11704 RCX: 00007f0baf1cd926
[  258.062026] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001
[  258.062281] RBP: 00007ffefe77d9e8 R08: 00000000000000e7 R09: ffffffffffffff80
[  258.062537] R10: 00007f0baf24d5a0 R11: 0000000000000202 R12: 0000000000000003
[  258.062792] R13: 00007ffefe77d9e0 R14: 0000000000000000 R15: 0000000000000000
[  258.063054] Kernel Offset: 0x24800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[  258.063440] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
_

Kernel panic (long):

[ 1972.659076] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 1972.659353] CPU: 1 PID: 1 Comm: init Not tainted 5.0.0-13-generic #14-Ubuntu
[ 1972.659606] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7345/MS-7345, BIOS V1.3 07/23/2007
[ 1972.659923] Call Trace:
[ 1972.660018]  dump_stack+0x63/0x8a
[ 1972.660139]  panic+0x101/0x2a7
[ 1972.660250]  do_exit.cold.24+0x26/0x75
[ 1972.660385]  do_group_exit+0x43/0xb0
[ 1972.660511]  __x64_sys_exit_group+0x18/0x20
[ 1972.660666]  do_syscall_64+0x5a/0x110
[ 1972.660798]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1972.660980] RIP: 0033:0x7fa7884ff926
[ 1972.661112] Code: Bad RIP value.
[ 1972.669304] RSP: 002b:00007fff34b15ae0 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
[ 1972.677865] RAX: ffffffffffffffda RBX: 000055d71867e784 RCX: 00007fa7884ff926
[ 1972.686438] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001
[ 1972.694978] RBP: 00007fff34b15f58 R08: 00000000000000e7 R09: ffffffffffffff80
[ 1972.703523] R10: 00007fa78857f5a0 R11: 0000000000000202 R12: 0000000000000003
[ 1972.712148] R13: 00007fff34b15f50 R14: 0000000000000000 R15: 0000000000000000
[ 1972.720767] Kernel Offset: 0x31600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1972.729007] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
[ 1972.738087] WARNING: CPU: 1 PID: 1 at kernel/sched/core.c:1181 set_task_cpu+0x169/0x170
[ 1972.748558] Modules linked in: btrfs xor zstd_compress raid6_pq libcrc32c hid_cherry hid_generic gpio_ich uas pata_marvell usbhid hid ahci libahci usb_storage r8169 i2c_i801 pata_acpi lpc_ich realtek psmnouse floppy
[ 1972.759005] CPU: 1 PID: 1 Comm: init Not tainted 5.0.0-13-generic #14-Ubuntu
[ 1972.769568] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7345/MS-7345, BIOS V1.3 07/23/2007
[ 1972.780427] RIP: 0010:set_task_cpu+0x169/0x170
[ 1972.791356] Code: e0 37 62 b3 0f 85 fe ff ff ff f7 43 60 fd ff ff ff 0f 84 eb fe ff ff 0f 0b e9 e4 fe ff ff 0f 0b 8b 64 08 00 00 04 e9 30 ff ff ff <0f> 0b e9 e2 fe ff ff 66 66 66 66 66 90 55 48 89 e5 41 56 49 89 f6 41
[ 1972.803233] RSP: 0018:ffff918ce7a83df0 EFLAGS: 00010006
[ 1972.815085] RAX: 0000000000000200 RBX: ffff918ce6614700 RCX: ffff918ce661d700
[ 1972.827166] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff918ce6614700
[ 1972.839301] RBP: ffff918ce7a83e10 R08: 0000000000000001 R09: ffff918ce7a9a6b8
[ 1972.851515] R10: ffff918ce7a9a670 R11: ffff918ce7a83ee0 R12: 0000000000000000
[ 1972.863850] R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
[ 1972.876300] FS:  0000000000000000(0000) GS:ffff918ce7a80000(0000) knlGS:0000000000000000
[ 1972.888937] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1972.901667] CR2: 00007fa7004ff8fc CR3: 0000000005b6e000 CR4: 00000000000006e0
[ 1972.914610] Call Trace:
[ 1972.927564]  <IRQ>
[ 1972.940551]  try_to_wake_up+0x172/0x4b0
[ 1972.953636]  ? __next_timer_interrupt+0xd0/0xd0
[ 1972.966842]  wake_up_process+0x15/0x20
[ 1972.980086]  process_timeout+0x12/0x20
[ 1972.993339]  call_timer_fn+0x30/0x130
[ 1973.006611]  run_timer_softirq+0x3ea/0x420
[ 1973.019995]  ? ktime_get+0x3c/0xa0
[ 1973.033448]  ? lapic_next_event+0x20/0x30
[ 1973.046994]  ? clockevents_program_event+0x93/0xf0
[ 1973.060675]  __do_softirq+0xdc/0x2f3
[ 1973.074386]  irq_exit+0xc0/0xd0
[ 1973.088085]  smp_apic_timer_interrupt+0x79/0x140
[ 1973.101773]  apic_timer_interrupt+0xf/0x20
[ 1973.115399]  </IRQ>
[ 1973.128807] RIP: 0010:panic+0x25c/0x2a7
[ 1973.142189] Code: 83 c3 64 eb 0d 3d 5f e2 ab 01 00 74 05 e8 70 0b 02 00 48 c7 c6 e0 51 15 b4 48 c7 c0 a0 67 8d b3 e8 20 96 06 00 fb 66 66 90 66 66 90 31 db e8 3f fe 0d 00 4c 39 eb 7c 1d 41 83 f4 01 40 8b 05
[ 1973.156150] RSP: 0018:ffff918ce7a83f10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
[ 1973.170059] RAX: 0000000000000000 RBX: ffff918ce65fd400 RCX: ffffffffb3c67fe8
[ 1973.184075] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000046
[ 1973.198169] RBP: ffff918ce7a83f70 R08: 0000000000000003 R09: 000000000000033c
[ 1973.212300] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[ 1973.226468] R13: 0000000000000000 R14: ffff918ce65fd400 R15: ffff918ce66147a8
[ 1973.240565]  do_exit.cold.24+0x26/0x75
[ 1973.254559]  do_group_exit+0x43/0xb0
[ 1973.268451]  __x64_sys_exit_group+0x18/0x20
[ 1973.282279]  do_syscall_64+0x5a/0x110
[ 1973.296001]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1973.309705] RIP: 0033:0x7fa7884ff926
[ 1973.323308] Code: Bad RIP value.
[ 1973.336808] RSP: 002b:00007fff34b15ae0 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
[ 1973.350490] RAX: ffffffffffffffda RBX: 000055d71867e784 RCX: 00007fa7884ff926
[ 1973.364172] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001
[ 1973.377823] RBP: 00007fff34b15f58 R08: 00000000000000e7 R09: ffffffffffffff80
[ 1973.391440] R10: 00007fa78857f5a0 R11: 0000000000000202 R12: 0000000000000003
[ 1973.405085] R13: 00007fff34b15f50 R14: 0000000000000000 R15: 0000000000000000
[ 1973.418478] ---[ end trace 451c51635e2e3ce8 ]---
_

The former contains the screen I "normally" get, the latter contains a screen I only got once. Can somebody advise in which direction I can further investigate?

HOW TO FIX drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout ? ON MY RYZEN 5 2400G APU https://askubuntu.com/questions/1121921/how-to-fix-drmamdgpu-job-timedout-amdgpu-error-ring-gfx-timeout-on-my-ry

My PC freezes randomly without any workload. only ALTSyS REISUB works. I installed fresh ubuntu 18.04.2 on my system and this is the only OS installed in my pc. I dont have any other Graphics Card And It only uses the GPU integrated with the Ryzen5 2400G APU. In the log I find this:

14:13:28 kernel: **[drm:amdgpu_job_timedout [amdgpu]] *ERROR*** ring gfx timeout, last signaled seq=8349, last emitted seq=8351
14:13:18 kernel: amdgpu 0000:06:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00000000
14:07:31 pulseaudio: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
14:07:18 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
14:07:11 wpa_supplicant: bgscan simple: Failed to enable signal strength monitoring
14:07:08 NetworkManager: <error> [1551343028.4130] wifi-wext: (wlx503eaa693cdb): error setting powersave 1
14:07:06 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
14:07:06 wpa_supplicant: dbus: Failed to construct signal
14:06:49 kernel: kfd kfd: kgd2kfd_probe failed
14:06:49 kernel: AMD-Vi: Unable to write to IOMMU perf counter.
14:06:49 kernel: ***ACPI BIOS Error (bug)***: Failure creating [\_SB.SMIB], AE_ALREADY_EXISTS (20180531/dsfield-594)

What is "ACPI BIOS Error (bug)"?, and what is amdgpu_job_timedout [amdgpu]] ERROR ring gfx timeout** How can I solve the problem? What information you need to properly understand the problem? Log image url

VIDEOIO ERROR:V4L: Can't open camera by index 0 https://askubuntu.com/questions/1110766/videoio-errorv4l-cant-open-camera-by-index-0

On a Intel NUC, I have loaded Ubuntu 16.04. I have disabled the desktop module by making changes to /etc/default/grub. The machine boots in text mode. I have a python program that uses Opencv (Opencv4.0.0 is currently installed) and imutils library and a webcam. I have created bash script named runBot.sh that runs the python program. The bash script contains the following:

#!/bin/bash
python3 /home/mycomp/rfd/liveCamObject.py

When I run it in the terminal window using

sh runBot.sh

it runs without a problem. However I am trying to run the program on reboot, hence I have set a cron job which is as follows:

@reboot /home/mycomp/runBot.sh

Both the sh file and the .py file has sudo rwx rights.

When I reboot the machine, on boot I get the following error:

error: no video mode activated

and after few seconds it boots normally and waits for login and password. The bash script at reboot gets triggered but throws the error:

VIDEOIO ERROR:V4L: can't open camera by index 0.

Since the runBot.sh runs from terminal and not with crontab, I tried changing the ownership from mycomp:mycomp to root:mycomp, it didn't help. I read that providing

sudo modprobe bcm2835-v4l2

and I tried various combinations v4_l_2, V4_L_2, etc...I always got an error

FATAL: Module `bcm2835-v4l2` not found in directory `/lib/modules/4.15.0-43-generic`

How do I enable the video camera on boot?

How to dual boot with win 10 on Motherboard with UEFI https://askubuntu.com/questions/1029097/how-to-dual-boot-with-win-10-on-motherboard-with-uefi

I am kind of new to Linux.
I just built a desktop using ASUS Prime Z370-A motherboard with 256GB NVME hard drive, and installed windows 10 Pro (Demo version, as I have not entered the key for it). I allocated 30GB for linux, and installed Ubuntu 18.04 LTS on it (with No swap space since I have 16 GB DDR).

While installing Ubuntu, I opted for 'Something else' and selected the 30GB free space as my root, and formatted it ext4. Left the 'Device for booth loader installation' option as is.

My issue is, every time I have to boot into Ubuntu, I have to go to UEFI BIOS 'boot Priority'. I was hoping to see a grub loader giving me an option to select windows or Ubuntu.

Looks like BIOS - UEFI is getting in the way for me, or Grub is not used here ?
Thanks and regards

Can't get correct permissions for /var/www/html/ https://askubuntu.com/questions/781403/cant-get-correct-permissions-for-var-www-html

I've read several threads here talking about this issue and tried all the solutions provided, none of them are working.

Whenever I try composer install I get a bunch of errors saying cannot install

[RuntimeException]                                                 
  /var/www/html/app/vendor does not exist and could not be created. 

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  - Installing vlucas/phpdotenv (v2.2.0)
    Downloading: Failed       
    Downloading: Failed       
    Downloading: Failed       
    Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/9caf304153dc2288e4970caec6f1f3b3bc205412" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source

This is what I've tried so far:

sudo chmod -R g+rwX /var/www/html
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www
sudo chgrp www-data /var/www/html
sudo chmod 775 /var/www/html
sudo chmod g+s /var/www/html
sudo useradd -G www-data george
useradd: user 'george' already exists
sudo chown george /var/www/html/
sudo chown george /var/www/html/app/
sudo chmod g+s /var/www/html/app
sudo chmod 775 /var/www/html/app
Ubuntu Server 14.04.4 LTS "Failed to recover vector for irq 44" https://askubuntu.com/questions/741816/ubuntu-server-14-04-4-lts-failed-to-recover-vector-for-irq-44

I just installed Ubuntu Server 14.04.4 LTS on a circa 2009 Dell R900 server. When it boots up and is merely sitting at the prompt awaiting login credentials, I get this message:

Failed to recover vector for irq 44

It occurs around 60 seconds after either a restart or cold boot, and my cursory internet searches don't return anything.

Ubuntu 14.04.4 LTS ******** tty1

******** login: [   54.904381] Failed to recover vector for irq 44

Password:
Last login: Thu Mar  3 16:57:52 CST 2016 on tty1
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-27-generic x86_64)

* Documentation:  [https://help.ubuntu.com/](https://help.ubuntu.com/)

System information as of Thu Mar  3 17:05:23 CST 2016

System load:  1.58               Memory usage: 0%   Processes:       367
Usage of /home: unknown          Swap usage:   0%   Users logged in: 0

=> There is 1 zombie process.

Graph this data and manage this system at:
[https://landscape.canonical.com/](https://landscape.canonical.com/)

00 packages can be updated.
00 updates are security updates.

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                24
On-line CPU(s) list:   0-23
Thread(s) per core:    1
Core(s) per socket:    6
Socket(s):             4
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 29
Stepping:              1
CPU MHz:               2659.635
BogoMIPS:              5319.81
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              3072K
L3 cache:              16384K
NUMA node0 CPU(s):     0-23
X11vnc service is running but client can't find server https://askubuntu.com/questions/685761/x11vnc-service-is-running-but-client-cant-find-server

I want to set up a headless server and connect to it from a laptop (Windows). It is running Kubuntu 15.04 and I installed X11vnc by this description:

VNC/Servers - Have x11vnc start automatically via systemd in any environment (Vivid+)

After a reboot the service is enabled and active (I think?), but I can not connect from the laptop using UltraVNC.

Only when I run

x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/$USER/.vnc/passwd -rfbport 5900 -shared

in a terminal I can connect to the server with UltraVNC.

I don´t want to issue this command everytime I want to the server. I want to be able to connect to server after a reboot without doing anything at the server.

Any ideas what goes wrong?

Safely move (and extend) Ubuntu partition https://askubuntu.com/questions/642931/safely-move-and-extend-ubuntu-partition

I know this question has probably been asked before, but I am having trouble finding an answer specific to my problem and I really don't want to ruin my machine and have to reinstall both operating systems.

Basically:

  1. Windows 7 was installed.

  2. I installed Ubuntu with only 30GB of space.

  3. I am running out of space on Ubuntu so I want to extend the partition.

  4. I shrank the Windows partition using GParted on a live USB drive.

Now I have an unallocated partition that I would like to use to extend Ubuntu. The unallocated partition comes before the Ubuntu partition.

Is it safe to do so?

Note: I know I must use GParted through a live USB and all my data is already backed up.

GParted screenshot:

screenshot of partitions

Can't Unmount dev/sda3 (boot device) https://askubuntu.com/questions/385776/cant-unmount-dev-sda3-boot-device

Please help a frustrated user.

I currently run only ubuntu 12.04: I cant seem to umount. I think the umount folder is lost. Tried all possible measures to no avail. Is there a way to force umount. I've been stuck with this umount issues for days now. I've already applied these but no luck: sudo umount /dev/sda3 I have equally tried umounting using gparted as well as utility :(