Compile errors - clang https://askubuntu.com/questions/1565640/compile-errors-clang

I began to receive these compile errors for mango (and labwc):

ninja: Entering directory `build'
[48/48] Linking target mango
FAILED: mango 
clang  -o mango mango.p/meson-generated_xdg-shell-protocol.c.o mango.p/meson-generated_pointer-constraints-unstable-v1-protocol.c.o mango.p/meson-generated_cursor-shape-v1-protocol.c.o mango.p/meson-generated_tablet-v2-protocol.c.o mango.p/meson-generated_ext-image-copy-capture-v1-protocol.c.o mango.p/meson-generated_ext-image-capture-source-v1-protocol.c.o mango.p/meson-generated_ext-foreign-toplevel-list-v1-protocol.c.o mango.p/meson-generated_ext-workspace-v1-protocol.c.o mango.p/meson-generated_tearing-control-v1-protocol.c.o mango.p/meson-generated_wlr-foreign-toplevel-management-unstable-v1-protocol.c.o mango.p/meson-generated_dwl-ipc-unstable-v2-protocol.c.o mango.p/meson-generated_wlr-layer-shell-unstable-v1-protocol.c.o mango.p/meson-generated_wlr-output-power-management-unstable-v1-protocol.c.o mango.p/src_mango.c.o mango.p/src_common_util.c.o mango.p/src_ext-protocol_wlr_ext_workspace_v1.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -Wl,--start-group -lm /usr/lib/x86_64-linux-gnu/libxcb.so /usr/lib/x86_64-linux-gnu/libxcb-icccm.so /usr/local/lib/x86_64-linux-gnu/libscenefx-0.4.so /usr/lib/x86_64-linux-gnu/libwayland-server.so /usr/local/lib/x86_64-linux-gnu/libwlroots-0.19.so /usr/lib/x86_64-linux-gnu/libxkbcommon.so /usr/lib/x86_64-linux-gnu/libinput.so /usr/lib/x86_64-linux-gnu/libwayland-client.so /usr/lib/x86_64-linux-gnu/libpcre2-8.so -Wl,--end-group
/usr/bin/ld: mango.p/src_mango.c.o: in function `setup':
/home/vaskark/work/mango/build/../src/mango.c:5788:(.text+0x2e6ff): undefined reference to `wlr_drm_lease_v1_manager_create'
/usr/bin/ld: mango.p/src_mango.c.o: in function `createmon':
/home/vaskark/work/mango/build/../src/mango.c:3013:(.text+0x345e0): undefined reference to `wlr_drm_lease_v1_manager_offer_output'
/usr/bin/ld: mango.p/src_mango.c.o: in function `requestdrmlease':
/home/vaskark/work/mango/build/../src/mango.c:4747:(.text+0x3c9ed): undefined reference to `wlr_drm_lease_request_v1_grant'
/usr/bin/ld: /home/vaskark/work/mango/build/../src/mango.c:4751:(.text+0x3ca20): undefined reference to `wlr_drm_lease_request_v1_reject'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Not sure what's happened as I was able to compile successfully before. And my current installs of mango and labwc are giving me a "Failed to connect to DRM backend" error message.

Any help would be greatly appreciated.

Thanks.

Ubuntu 25.10

Can I use opencode models in openclaw without an API key? https://askubuntu.com/questions/1565638/can-i-use-opencode-models-in-openclaw-without-an-api-key
  1. I setup both opencode and openclaw on my Ubuntu

  2. I don't quite understand why my opencode works without an API key

  3. But it does, and I'm able to run opencode and use its free models

  4. Is there a way to get openclaw to be able to use the models without providing an API key too?

Problem with ae.archive.ubuntu.com : It is down https://askubuntu.com/questions/1565637/problem-with-ae-archive-ubuntu-com-it-is-down

I'm trying to update my package index and ae.archive.ubuntu.com at IP 217.198.190.55 is not reachable. How can I report this?

Ubuntu goes into suspend when keyboard, mouse and display disconnect https://askubuntu.com/questions/1565634/ubuntu-goes-into-suspend-when-keyboard-mouse-and-display-disconnect

My Ubuntu 25 platform goes into suspend when I use my Video, Keyboard and Mouse switch to connect to my Windows 11 pro machine, This prevents me from accessing my Ubuntu machine with ssh from my windows machine. Is there a setting or other means to force my Ubuntu to stay active when my keyboard and display switches from my Ubuntu to my Windows machine?

Ubuntu won’t boot – brief black screen then back to BIOS (ThinkPad P15 Gen 1) https://askubuntu.com/questions/1565632/ubuntu-won-t-boot-brief-black-screen-then-back-to-bios-thinkpad-p15-gen-1

I’m running into a weird issue with my ThinkPad P15 Gen 1. Whenever I try to boot into Ubuntu, I just get a black screen for like half a second, and then it kicks me straight back to the BIOS.

GRUB seems to be installed normally, efibootmgr looks fine, and the boot entry is still there in the BIOS as well. So I’m kinda stuck figuring out what’s actually going wrong here.

Has anyone seen something like this before or got an idea how to fix it? Would really appreciate any help 🙏

Annoying sticky keys issue on Ubuntu 24.04 and also 25.10 (after upgrading) https://askubuntu.com/questions/1565630/annoying-sticky-keys-issue-on-ubuntu-24-04-and-also-25-10-after-upgrading

It has been months now since I started facing these sticky keys issues! Even after upgrading to 25.10 I still see this pop-up stating sticky keys was enabled. I already followed many tutorials, disabled "everything" related with accessibility, but I keep on being haunted by this behavior I cannot get rid of.

I thought it was a problem with my KVM switch and attached (to the KVM) mouse and keyboard, but with everything disconnected and using only the notebook's mouse and keyboard the sticky keys keep on activating themselves. I also observe that when it is activated, when I click the mouse on any button\shortcut I have on my taskbar, it is shown me the right-click menu even if I click the shortcut\button with the left mouse button.

Another strange behavior is that when I boot my notebook, at the login screen the keyboard does not work at first (I can't type in the password!) and I need to restart the notebook and then, after this new restart the keyboard works. This behavior happens frequently, but also many times it works since the first boot. All these bad behavior patterns started after some update on Ubuntu 24.04. On previous versions of Ubuntu I used before (18.04, 22.04 ...) I never had this. Can you provide me some help on how to definitively get rid of this problem? Is it a bug? Is it something to do with my hardware?

No sound from snap Thunderbird on new Ubuntu installation https://askubuntu.com/questions/1565628/no-sound-from-snap-thunderbird-on-new-ubuntu-installation

I had to reinstall Ubuntu 24.04 LTS on my Dell Latitude 5510, and all is well except that Thunderbird does not play any sound. Prior to reinstall it worked well, and I was notified when a new mail arrived.

ALSA works well (verified by using aplay to play sound files), and all other GUI apps with sound are working.

I have tried to connect the Thunderbird snap to ALSA:

sudo snap connect thunderbird:alsa
[sudo] password for bernt:
error: snap "thunderbird" has no plug named "alsa"

So that was not the thing to do.

Anyone?

initramfs after every reboot https://askubuntu.com/questions/1565627/initramfs-after-every-reboot

I installed Ubuntu 24.04 on my old 2015 MacBook Pro to try and play around and learn Linux with it. On every reboot I get the stuck in intiramfs. I've used fsck /dev/sdax -y multiple times and keep getting stuck. When I do fsck it says everything is fixed, but then when I use exit to continue it writes a couple more lines. The last one starts with failed and then it boots. It moves on too quickly for me to read, so I don't know what's failing.

It runs fine when I'm using it right after booting, but as soon as I leave Firefox on and suspend and then come back, the whole thing freezes/crashes and I can't open any apps other than home and maybe the App Center. When this happens the system completely bogs down, but according to the System Monitor none of the CPU is being used. Is there anything I should do right after installation to smooth anything out?

Adding new panel then rebooting causes it to disappear and is unable to show again https://askubuntu.com/questions/1565624/adding-new-panel-then-rebooting-causes-it-to-disappear-and-is-unable-to-show-aga

Basically, I wanted to add a top bar, so I did it by going into edit mode and add panel at the top, I put a bunch some MacOS theme stuff that I liked and put it on the top bar. It worked the entire time as intended, but when rebooting, it just disappears and I have no idea why. The bottom default panel still works, even if I make changes to it, it still shows them every boot. But any other I make disappears.

STEPS TO REPRODUCE
1. Add a top panel, put a bunch of stuff on it.
2. Reboot or shutdown

OBSERVED RESULT
Top panel disappears

EXPECTED RESULT
Panel should remain after every boot as it was last left.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04 LTS
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

Matlab Graphics Error [closed] https://askubuntu.com/questions/1565621/matlab-graphics-error

I can't use basic plotting commands like plot in MATLAB on Kubuntu. It gives an error related to graphics even before the plot opens. Starting MATLAB with OpenGL didn't fix the issue. How can we resolve this?

I also try using gnu octave but it does not have table object support.

trying to automatically restart wifi https://askubuntu.com/questions/1565613/trying-to-automatically-restart-wifi

Ubuntu 24.04.4 LTS

To preface, I didn't have this issue with Ubuntu 22...Trying to automatically restart wifi for my jellyfin server. I can't remotely connect to jellyfin at all times, because at some point my wifi is possibly going to sleep (everything appears connected, can reach all websites, jellyfin works locally). So I initially disabled wifi power saving. Didn't stop the issue. Then I tried an auto script via cron, it runs every 10 minutes to check if there is a connection and if there isn't it restarts the network. Problem is everything appears connected, in fact is connected. So it doesn't go through restarting the network. Does anyone have a possible solution? Perhaps a way to restart the network every 4 hours regardless of a current connection.

Unable to open Cronopete https://askubuntu.com/questions/1565603/unable-to-open-cronopete

I have updated to Ubuntu 22.04 on my laptop. Previously I have used Cronopete for my backups. I have installed Cronopete in Ubuntu 22.04.

Cronopete does not open when I click on the icon in "Show Applications"

If I try to run Cronopete from the terminal I get the following error message:

$ tony@TONYZ-UBUNTU:\~$ cronopete
cronopete: symbol lookup error: cronopete: undefined symbol: g_once_init_enter_pointer
Why do I suddenly get "A privileged instruction was executed at address 004dd5b4" Wine error? https://askubuntu.com/questions/1565600/why-do-i-suddenly-get-a-privileged-instruction-was-executed-at-address-004dd5b4

I played the old original Command and Conquer game, There was an update and suddenly it would no longer start.

It stops with:

A privileged instruction was executed at address 004dd5b4    
Click on OK to terminate the application.

Kubuntu 22.04 LTS (Yes, I know we have to upgrade). And yes, I know OpenRA exists.

The error first appeared in Lutris, so I tried reinstall, new wine prefix, complete reinstall of game, try different wine versions in Lutris. Nothing worked. Then I moved over to PlayOnLinux, installed there and I had the same issue.

At first I thought it was a Lutris issue, but it seem this is system-wide. I am unsure what update would cause this, but it seems as if something is blocking Wine. The game worked just fine, then one day this error message appeared and it no longer worked.

System: Ryzen 7 2700, 16 GB RAM, Nvidia GTX 1650 4 GB; kernel 5.15.0-174-generic x86_64

Lutris log - original error:

Started initial process 30014 from taskset -c 0-0 /home/user/.local/share/lutris/runners/wine/wine-staging-11.2-x86_64/bin/wine /media/user/biggames1/CnC/drive_c/WESTWOOD/CNC95/C&C95.EXE DXVK_FRAME_RATE 60  
Start monitoring process.  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
Monitored process exited.  
Initial process has exited (return code: 256)  
Exit with return code 256"  
\-Lutris log    
  
new prefix in Lutris and fresh install:  
Started initial process 52570 from /home/user/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /media/user/biggames1/cncz/drive_c/WESTWOOD/CNC95/C&C95.EXE  
Start monitoring process.  
esync: up and running.  
wine: RLIMIT_NICE is \<= 20, unable to use setpriority safely  
Monitored process exited.  
Initial process has exited (return code: 38400)  
Exit with return code 38400
Why do all my programs spam app icons when installed? https://askubuntu.com/questions/1565590/why-do-all-my-programs-spam-app-icons-when-installed

I'm not sure how to phrase this. Every time I download an app or program, no matter if it's from Steam, App Center, Flathub, or anywhere else, I get either one icon of it on my app screen, or I get 1-2 pages full of it.

or i get 1-2 pages full of it

I thought maybe I pressed a button to mess it up, but I just downloaded something new, and the same thing happened again.

Before you ask, no, I didn't download most of these programs from different sources. only a few apps were downloaded from different sources, and those aren't the ones I'm confused about. For example, all of my Steam games have several respective icons.

all of my steam games have several respective icons

...and you can't download a game from Steam twice. Most things I download are Steam games, so this is the bigger issue.

I only have one semi-normal page. It's getting out of control.

i only have one semi-normal page.

Edit: this doesn't happen on my desktop screen, it only happens on my app screen. Here's my desktop screen, for clarity: enter image description here

There also isn't a way for me to delete the icons by right-clicking them.

enter image description here

Package apt-clone. Restoring packages https://askubuntu.com/questions/1565539/package-apt-clone-restoring-packages

I'm experimenting trouble trying to restore packages with apt-clone. I used the common commands with no success.

sudo apt install apt-clone
sudo apt-clone clone [name of the file]
sudo apt-clone restore [name of the file]

My Ubuntu server failed and I have to restore those packages that worked once.

There's and optional option: --with dpkg-repack to restore dpkg packages apart from the ones cloned with apt.

How do i optimize the swap usage? https://askubuntu.com/questions/1562819/how-do-i-optimize-the-swap-usage

I am running a "fairly" old laptop ,idea pad 310, 12Gb of ram, and i put a 12Gb swap, can i make it use swap more or more efficiently? Its only uses like 1Gb

How to get modifier keys such as ctrl, alt, tab and so on in an on-screen-keyboard in Wayland? https://askubuntu.com/questions/1555182/how-to-get-modifier-keys-such-as-ctrl-alt-tab-and-so-on-in-an-on-screen-keyboa

The onboard on-screen-keyboard offers a lot of buttons.

onboard

Unfortunately, it does not work on Wayland, and Ubuntu and Kubuntu are going to deprecate x11.

The default on-screen-keyboard in wayland does not have too many buttons enter image description here

The on-screen-keyboard in Ubuntu is not as feature-rich as onboard. For example, it does not come with tab or control buttons, which are often necessary to operate in a terminal on a tablet device running GNU/Linux.

How to either

  1. Run Onboard in Wayland?
  2. Add the additional keys (ctrl, tab and so on) to the existing Wayland keyboard?
LibTiff5 removed after Ubuntu 24.04 installation, how to install again? https://askubuntu.com/questions/1540324/libtiff5-removed-after-ubuntu-24-04-installation-how-to-install-again

I use an animation software (Mine-Imator lol) which has a hard dependency on a package going under the name of "LibTiff5". Now I know what that is, the problem is that it wants LibTiff5 specifically. But as of Ubuntu 24.04 (or 23 not sure) LT5 was dropped in favor of LibTiff6, and remains on 22.04 (Jammy Jellyfish). LT6 of course isn't supported by it because the software hasn't been updated in 2 years at the time of writing. Neither is LT5-dev. My question is, is there a good non-painful way to install the old LT5 on Ubuntu 24.04?

......../Mine-imator: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
What is this RED PROHIBITED ICON showing everywhere on my system? https://askubuntu.com/questions/1516813/what-is-this-red-prohibited-icon-showing-everywhere-on-my-system

I'm currently running Ubuntu 22.04.4 LTS and recently there has been a red prohibited icon showing everywhere on my system.

I updated the system not long ago, but the issue started some weeks after the update so I am not sure they are related.

This red circle appears on the top bar menu, built-in apps, and manually installed ones. I believe it's an icon issue but I'm not sure

Any suggestions on what may be causing it?

This image shows that the red circle appears in different parts of the system.

enter image description here

fresh install 22.04 lts deja dup restore "no backup files found" https://askubuntu.com/questions/1482528/fresh-install-22-04-lts-deja-dup-restore-no-backup-files-found

i have a confirmed backup of my old laptop image.

deja dup does recognise the backup hard-drive and folder on fresh install of 22.04 LTS on new laptop..

enter image description here

but the deja dup on new install says 'no backup found'...

no backups found

i have read that the default location for deja dup may have to be set to the location of the backup (where the backup is that i want to restore).. but there seems to not be alot of information on this situation i find myself in.

if anyone has a clear and clean method, much appreciated

11[14761.537078] blk_update_request: I/0 error, dev sdh sector 0 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 0 [duplicate] https://askubuntu.com/questions/1459204/1114761-537078-blk-update-request-i-0-error-dev-sdh-sector-0-op-0x0-read
[14761.537078] blk_update_request: I/0 error, dev sdh sector 0 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 0
MTISERVER login: 11[14761.537078] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.537117] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.549732] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.549847] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.549943] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.549972] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550019] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550046] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550089] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550118] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550155] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550181] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550217] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550242] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550266] Dev sdh: unable to read RDB block 0
[14761.550290] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550315] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550345] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550370] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550407] blk_update_request: I/O error, dev sdh, sector 24 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550432] Buffer I/O error on dev sdh, logical block 3, async page read
22-04 : Howto install python-gtk2 and python-glade-2 for fslint https://askubuntu.com/questions/1405544/22-04-howto-install-python-gtk2-and-python-glade-2-for-fslint

I need python-gtk2 and python-glade-2 for an old app, but when I run dpkg -i I get this (translated), stating I miss python ???

sudo dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb python-glade2_2.24.0-5.1ubuntu2_amd64.deb 
Selecting packet python-gtk2 previously deselected.
(reading database... 364958 files et directories already installed.)
Preparation to unpacking python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ...
Unpacking python-gtk2 (2.24.0-5.1ubuntu2) ...
Selecting packet python-glade2 previously deselected.
Preparation to unpacking python-glade2_2.24.0-5.1ubuntu2_amd64.deb ...
Unpacking python-glade2 (2.24.0-5.1ubuntu2) ...
dpkg: dependencies problems prevent configuration of python-gtk2 :
 python-gtk2 depends on python (<< 2.8) ; although :
  Packet python is not installed.
 python-gtk2 depend on python (>= 2.7) ; although :
  Package python is not installed.
 python-gtk2 depend on python:any (>= 2.6.6-7~) ; although :
  Package python is not installed.

dpkg: error when processing python-gtk2 package (--install) :
 dependencies problems - left unconfigured
dpkg: dependencies problems prevent configuration of python-glade2 :
 python-glade2 depends on python (<< 2.8) ; although :
  Package python is not installed.
 python-glade2 depends on python (>= 2.7) ; although :
  Package python is not installed.
 python-glade2 depends on python-gtk2 (= 2.24.0-5.1ubuntu2) ; although :
 Package python-gtk2 is not yet configured.

dpkg: error when processing python-glade2 package (--install) :
 dependencies problems - left unconfigured
Errors were encountered when running :
 python-gtk2
 python-glade2

Although :

sudo apt list python2.7 --installed
Listing... Done
python2.7/jammy,now 2.7.18-13ubuntu1 amd64  [installed]

Please tell me what is wrong there. I did it OK some days ago on a debian11 and I just had to run

sudo apt -f install

to fix the problem. Instead, when I apt -f install here, ubuntu wants to remove the 2 packages instead of fixing the installation.

Thanks for tips. I know this is really not standard thing to do.

How change the font size in Ubuntu Server 20.04 LTS https://askubuntu.com/questions/1402246/how-change-the-font-size-in-ubuntu-server-20-04-lts

What I'm trying to do is increase the font size, not change the resolution. I still want my resolution to be 4k, but I want a bigger font size. Is this possible? This is the terminal, there is no GUI installed.

Edit: the answer was: sudo vi /etc/default/console-setup FONTFACE="Terminus" FONTSIZE="16x32" sudo update-initramfs -u sudo reboot

It would be nice also to change the console resolution but I don't know how in Ubuntu Server 20.04 LTS

Upgrade to Ubuntu 19.10 led me to Firmware Bug TSC_DEADLINE + ACPI BIOS Error https://askubuntu.com/questions/1189892/upgrade-to-ubuntu-19-10-led-me-to-firmware-bug-tsc-deadline-acpi-bios-error

After a reboot during the update to Ubuntu 19.04 to 19.10, I arrived at a boot error following the GRUB boot loader. My machine is an HP Pavilion Gaming Notebook. I use it dual boot with Windows 10. The error messages begin with:

[0.0393321] [Firmware Bug] TSC_DEADLINE disabled due to Errata: please update microcode to version 0xb2 (or later)

There is also a kernel panic message:

[    0.039321] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please 
update microcode to version: 0xb2 (or later)
[    0.386679] ACPI BIOS Error (bug): _SB.PCI0.RP07.PXSX._DSW: Insufficient 
arguments - ASL declared 1, ACPI requires 3 (20190703/nsarguments-152)
[    0.387554] ACPI BIOS Error (bug): _SB.PCI0.RP09.PXSX._DSW: Insufficient 
arguments - ASL declared 1, ACPI requires 3 (20190703/nsarguments-152)
[    0.430590] platform MSFT0101:00: failed to claim resource 1: [mem 0xfed40000-0xfed40fff]
[    0.430596] acpi MSFT0101:00: platform device creation failed: -16
[    0.844241] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.844263] CPU: 7 PID: 1 Comm: swapper/0 Not tainted 5.3.0-23-generic #25-Ubuntu
[    0.844280] Hardware name: HP HP Pavilion Gaming Notebook/818E, BIOS F.82 08/18/2016
[    0.844296] Call Trace:
[    0.844306]  dump_stack+0x63/0x8a
[    0.844315]  panic+0x101/0x2d7
[    0.844325]  mount_block_root+0x23f/0x2e8
[    0.844335]  mount_root+0x38/0x3a
[    0.844344]  prepare_namespace+0x13f/0x194
[    0.844354]  kernel_init_freeable+0x231/0x255
[    0.844366]  ? rest_init+0xb0/0xb0
[    0.844376]  kernel_init+0xe/0x100
[    0.844385]  ret_from_fork+0x35/0x40
[    0.844440] Kernel Offset: 0xe200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.844466] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
_

Can anyone help me return Ubuntu to a working state?

How to loop with case esac in shell scripting? https://askubuntu.com/questions/1131468/how-to-loop-with-case-esac-in-shell-scripting

I'd like to write a script where if a user enters a path which contains his/her $HOME directory, it would raise an error and the script will run until user enters a valid path in which the loop will break.

Apparently it gives a syntax error if I have continue or break commands. What do I do wrong here? Thanks, Jen.

#!/bin/bash

function project1_install_dir_path() {   

    boolian_2=true; 
    while true; do

    if [ "$boolian_2" = true ] ; then

       read -p "Enter FULL folder path where you want to install colsim1:" fullpath

       echo "you have enterd "$fullpath". Please press 'y' to confirm and 'n' to enter again"

       case "$fullpath" in

       "$HOME"*) echo "Error: The path cannot be in your HOME" ;; continue      
       */home*) echo "Error: The path cannot contain 'home' in the path" ;; continue
       *) echo "you have entered a valid path" ;; break

       esac
       done    
   fi    
}

function main() {

project1_install_dir_path    
}

Terminal Output

jen@ss23:/bash_file.sh 
-bash: /project/bash_file.sh: line 62: syntax error near unexpected token `newline'
-bash: /project/bash_file.sh: line 62: ` "$HOME"*) echo "Error: The path cannot be in your HOME" ;; continue  
VirtualBox startup error for Lubuntu - kernel panic not syncing https://askubuntu.com/questions/1120392/virtualbox-startup-error-for-lubuntu-kernel-panic-not-syncing

I am trying to boot up Lubuntu on virtualbox to obtain OpenFOAM software as indicated @ Using OpenFOAM in VirtualBox .

I'm using Ubuntu 16.04. I receive this kernel panic error message on startup.

[   22.835415]  [<c13a4ea0>] ? __wrmsr_on_cpu+0x40/0x40
[   22.835706]  [<c13a4ea0>] ? __wrmsr_on_cpu+0x40/0x40
[   22.835876]  [<c10e89df>] smp_call_function_single+0x6f/0x100
[   22.836060]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.836220]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.836438]  [<c13a526d>] rdmsrl_safe_on_cpu+0x4d/0x80
[   22.836603]  [<c1b261db>] pt_init+0x48/0x259
[   22.836750]  [<c100211a>] do_one_initcall+0xaa/0x200
[   22.836905]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.837073]  [<c1b18cf6>] ? kernel_init_freeable+0x126/0x1d9
[   22.837246]  [<c1b18d16>] kernel_init_freeable+0x146/0x1d9
[   22.837416]  [<c1757700>] kernel_init+0x10/0xe0
[   22.837562]  [<c1092ed1>] ? schedule_tail+0x11/0x50
[   22.837720]  [<c17658c1>] ret_from_kernel_thread+0x21/0x30
[   22.837883]  [<c17576f0>] ? rest_init+0x70/0x70
[   22.838071] Code: Bad EIP value.
[   22.838401] EIP: [<febdb8b3>] 0xfebdb8b3 SS:ESP 0068:f6cbbe5c
[   22.839193] ---[ end trace 1b06e6cf98ad2464 ]---
[   22.842657] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00
00000b
[   22.842657]
[   22.843212] ---[ end Kernel panic - not syncing: Attempted to kill init! exit
code=0x0000000b
[   22.843212]
_
Issues after update 16.04 - 18.04 LTS https://askubuntu.com/questions/1095422/issues-after-update-16-04-18-04-lts

I recently tried upgrading my HP Z420 workstation from Ubuntu 16.04 to 18.04. While updating, Ubuntu froze at the instance shown.

[user@hostname]:~$ sudo apt-get update; sudo update-manager -d
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Hit:2 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial InRelease
Hit:3 http://lu.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://lu.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:7 http://lu.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:10 https://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease
Hit:11 https://download.sublimetext.com apt/dev/ InRelease
Fetched 107 kB in 0s (151 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
Checking for a new Ubuntu release
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import WebKit2 as WebKit
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.
MarkInstall libc6 [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=1
MarkInstall locales [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
Installing libc-bin as Depends of locales
MarkInstall libc-bin [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done

(bionic:7134): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu Bold 13.1982421875'

(bionic:7134): Pango-WARNING **: font_face status is: file not found

(bionic:7134): Pango-WARNING **: scaled_font status is: file not found

(bionic:7134): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='Ubuntu Bold 13.1982421875', text='Upgrading Ubuntu to version 18.04'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/libgvc6-plugins-gtk.0.crash'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/fontconfig.0.crash'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/fontconfig.0.crash'

I then rebooted after which I consistently got a kernel panic, as shown.

[    0.787089] Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0)
[    0.787149] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.15.0-39-generic #42-U
buntu
[    0.787201] Hardware name: Hewlett-Packard HP Z420 Workstation/1589, BIOS J61
v02.55 02/07/2013
[    0.787257] Call Trace:
[    0.787303]  dump_stack+0x63/0x8b
[    0.787352]  panic+0xe4/0x244
[    0.787398]  mount_block_root+0x1f6/0x2da
[    0.787442]  ? set_debug_rodata+0x17/0x17
[    0.787486]  mount_root+0x38/0x3a
[    0.787527]  prepare_namespace+0x139/0x18e
[    0.787571]  kernel_init_freeable+0x224/0x251
[    0.787625]  ? rest_init+0xb0/0xb0
[    0.787668]  kernel_init+0xe/0x110
[    0.787722]  ret_from_fork+0x35/0x40
[    0.787798] Kernel Offset: 0x21800000 from 0xffffffff81000000 (relocation 
range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.787860] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0)
_

I then booted from a live CD and ran bootrepair, with output shown info

This solved the Kernel Panic. However, now I only get a blank screen (same color as in Grub2).

When I enter Grub and select an earlier kernel, Ubuntu 18.04 loads but I only get a command line login, not a GUI. At the command I tried re-running apt-get update but this also gave errors relating to metadata, see

[user@hostname]:~$ sudo apt-get update
[sudo] password for [user]:
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://lu.archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://lu.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:6 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:7 http://lu.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metada
ta [204 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 M
etadata [9,416 B]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 I
cons [16.3 kB]
Fetched 109 kB in 1s (111 kB/s)
AppStream system cache was updated, but problems were found: Metadata files have
errors: /var/cache/app-info/xmls/fwupd.xml
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test
-w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-ca
che > /dev/null; fi'
E: Sub-process returned an error code
[user@hostname]:~$ _

I am at a total loss how to get things up and running again.

According to janmyszkier's answer I checked the HDD for errors using the Disks utility (extended self-test) and, reassuringly, no issues were found.

I tried using a live CD and chroot method in a virtual console to try and redo the upgrade, but the errors remain. Specifically, Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory), could not load /boot/System.map-4.4.0-121-generic: No such file or directory, could not open directory /lib/modules/4.4.0-121-generic: No such file or directory, and /usr/share/initramfs-tools/hooks/plymouth failed with return 1. See below:

$sudo mount /dev/sda6 /mnt
$sudo mount --bind /dev /mnt/dev
$sudo mount --bind /proc /mnt/proc
$sudo mount --bind /sys /mnt/sys
$sudo chroot /mnt
$apt update
........
$apt upgrade
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be REMOVED:
  linux-image-extra-4.4.0-121-generic
The following NEW packages will be installed:
  bubblewrap
The following packages have been kept back:
  libhmsbeagle1v5 phyml
The following packages will be upgraded:
  apache2-bin bolt desktop-file-utils firefox-locale-en ghostscript
  ghostscript-x gir1.2-gnomedesktop-3.0 gir1.2-javascriptcoregtk-4.0
  gir1.2-packagekitglib-1.0 gir1.2-totem-1.0 gir1.2-webkit2-4.0 git git-man
  gnome-desktop3-data gnome-initial-setup grub-common grub-pc grub-pc-bin
  grub2-common gstreamer1.0-packagekit libapache2-mod-perl2
  libgnome-desktop-3-17 libgs9 libgs9-common libgvc6-plugins-gtk
  libjavascriptcoregtk-4.0-18 libldap-2.4-2 libldap-common
  libpackagekit-glib2-18 libsmbclient libssh-4 libtotem0
  libunity-settings-daemon1 libwbclient0 libwebkit2gtk-4.0-37
  libwebkit2gtk-4.0-37-gtk2 openjdk-8-jre openjdk-8-jre-headless packagekit
  packagekit-tools python-samba python3-distupgrade python3-update-manager
  samba-common samba-common-bin samba-libs smbclient totem totem-common
  totem-plugins ubuntu-keyring ubuntu-release-upgrader-core
  ubuntu-release-upgrader-gtk unity-settings-daemon update-manager
  update-manager-core update-notifier update-notifier-common
58 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
387 not fully installed or removed.
Need to get 0 B/83.9 MB of archives.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 1326337 files and directories currently installed.)
Removing linux-image-extra-4.4.0-121-generic (4.4.0-121.145) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-121-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Error! Your kernel headers for kernel 4.4.0-121-generic cannot be found.
Please install the linux-headers-4.4.0-121-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic
WARNING: missing /lib/modules/4.4.0-121-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-121-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-121-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-121-generic (--remove):
 installed linux-image-extra-4.4.0-121-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-121-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
possible to mark all mail as read using one line terminal? https://askubuntu.com/questions/994498/possible-to-mark-all-mail-as-read-using-one-line-terminal

I am not trying to remove all the mails.

I googled for mark all mail as read, actually got posts saying how to delete them instead.

I found out using echo p | mail will output first of unread then mark it read, but if I do this, I have to loop through them.

I figured for all read mails, they will be appended to a file named mbox

What I am trying to do is...I want to create a bash file which is then used for crontab that let's say, at the end of each month, change the name of mbox into month-year in this way I can keep track and organize the mails BUT in order to have the mails appended into mbox is reading the mails one by one first.

Am I thinking this in a wrong direction? Or can someone give me some advices?

Thanks in advance for any help

EDIT: I am just using sudo apt install mailutils for my ubuntu server

Blank page when trying to reach phpmyadmin https://askubuntu.com/questions/761847/blank-page-when-trying-to-reach-phpmyadmin

I try to setup phpmyadmin to use mysql on my Ubuntu 16.04 machine. But when I go on "localhost/phpmyadmin" I only see a blank page. I've tried some things like to include the conf, but it didnt change anything (How to solve the phpmyadmin not found issue after upgrading php and apache?).

My goal is to use owncloud. So I created a user root and a user owncloud with the passwords. I specified the the user root as the phpmyadmin user with the pasword and

sudo dpkg-reconfigure phpmyadmin

went well. But phpmyadmin doen't load. What am I doing wrong?

SOLUTION Some packets were missing for php 7:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext
sudo service apache2 restart
Always boot to gui https://askubuntu.com/questions/336653/always-boot-to-gui

I've got an old that sits and does some of the grunt work in the house. I've recently got it running 12.04 from 10.x, and everything seems to be working brilliantly.

Unfortunately though, it only seems to boot to the GUI when a screen is attached, and drops to TUI when there isn't. Since I mostly log into it via RDP, I'd rather it booted to GUI regardless of whether it has it's own screen plugged in or not.

Is there a setting I can change somewhere to disable TUI boot?