System stopped charging battery after sys upgrade https://askubuntu.com/questions/1564022/system-stopped-charging-battery-after-sys-upgrade

Well my old laptop is a Dell Latitude E6510

Current OS is Linux 6.8.0-94-generic

Ubuntu 22.04.5 LTS

Yesterday Feb 14 there was a small system upgrade. And after the upgrade the laptop will not charge the battery.

The battery is only 2 months old. With the power supply plugged into the laptop the percentage of the battery state is unchanged (52%).

I tried the Dell tricks but nothing.

Has anyone seen this ?

Regards

Bill Beck

Block device and where is my “missing” disk space? [duplicate] https://askubuntu.com/questions/1564020/block-device-and-where-is-my-missing-disk-space

Ubuntu 24.04

I have this 256GB drive, that is divided into 3 partitions. Here is the lsblk results.


docker@lenovo:~$ lsblk -a
NAME                   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0                    7:0    0     4K  1 loop /snap/bare/5
loop1                    7:1    0  63.8M  1 loop /snap/core20/2682
loop2                    7:2    0  63.8M  1 loop /snap/core20/2686
loop3                    7:3    0    74M  1 loop /snap/core22/2292
loop4                    7:4    0 251.7M  1 loop /snap/firefox/7766
loop5                    7:5    0 531.4M  1 loop /snap/gnome-42-2204/247
loop6                    7:6    0  91.7M  1 loop /snap/gtk-common-themes/1535
loop7                    7:7    0  91.4M  1 loop /snap/lxd/36558
loop8                    7:8    0  91.4M  1 loop /snap/lxd/36918
loop9                    7:9    0  50.9M  1 loop /snap/snapd/25577
loop10                   7:10   0  48.1M  1 loop /snap/snapd/25935
loop11                   7:11   0 226.6M  1 loop /snap/thunderbird/959
loop12                   7:12   0     0B  0 loop 
nvme0n1                259:0    0 238.5G  0 disk 
├─nvme0n1p1            259:1    0     1G  0 part /boot/efi
├─nvme0n1p2            259:2    0     2G  0 part /boot
└─nvme0n1p3            259:3    0 235.4G  0 part 
  └─ubuntu--vg-ubuntu--lv
                       252:0    0   100G  0 lvm  /

The GUI Disk utility shows this 107GB “Block device” named ubuntu--vg-ubuntu--lv and mounted at Filesystem Root. What and where is this device coming from? Was it created when the OS was installed? From the lsblk command I can only assume this is from the nvme0n1p3 partition. Where is the (roughly) missing (235-100) 135GB?

For giggles, here’s the df output


docker@lenovo:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              1.6G  3.3M  1.6G   1% /run
efivarfs                           320K   74K  242K  24% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv   98G   98G     0 100% /
tmpfs                              7.8G     0  7.8G   0% /dev/shm
tmpfs                              5.0M  8.0K  5.0M   1% /run/lock
/dev/nvme0n1p2                     2.0G  205M  1.6G  12% /booth
/dev/nvme0n1p1                     1.1G  6.2M  1.1G   1% /boot/efi
tmpfs                              1.6G  108K  1.6G   1% /run/user/130
tmpfs                              1.6G  148K  1.6G   1% /run/user/1000
docker@lenovo:~$

no sound-"dummy"-Dell XPS 13 Snapdragon x-elite with Ubuntu 25-10ARM https://askubuntu.com/questions/1564016/no-sound-dummy-dell-xps-13-snapdragon-x-elite-with-ubuntu-25-10arm

Settings shows "dummy output." The windows partition on the XPS has sound.

Hardinfo2 says the audio is "null" and the vendor is "unknown"

I assume Canonical is working on this with Dell but hope that someone here has a workaround.

Deja Dup keeps askng for password https://askubuntu.com/questions/1564014/deja-dup-keeps-askng-for-password

Deja Dup (42.9) on stock Ubuntu 22.04.5 LTS. When I try to back up, Deja asks for the password, goes back (presumably) to backing up then asks for the password again. After doing some sleuthing online I've uninstalled Deja Dup and Duplicity. I renamed the backup destination on the external hard drive. I shut down the computer, let it sit a few minutes, then rebooted and installed Deja Dup. I renamed the backup location to match the HDD and renamed folder. I clicked 'start backup' and was prompted to create a new password. I did that and started backup. I get prompted for a password, I enter, the backup starts... and the same thing happens. It's an endless loop: Enter password, backup starts, prompted for password, enter it... rinse and repeat.

Ubuntu ScreenSaver [closed] https://askubuntu.com/questions/1564013/ubuntu-screensaver

I am new in X11 so is this code Ok?

Effect is just turn all screens black.

#include <X11/Xlib.h>
#include <stdlib.h>

int main() {
    Display *dpy = XOpenDisplay(NULL);
    if (!dpy) return 1;

    int scr = DefaultScreen(dpy);
    Window root = RootWindow(dpy, scr);

    // Optimization 1: Use a simple black background without complex attributes
    XSetWindowAttributes attr;
    attr.override_redirect = True;
    attr.background_pixel = BlackPixel(dpy, scr);
    // Optimization 2: Only listen for the first movement (PointerMotionHintMask)
    // or key presses to reduce event traffic.
    attr.event_mask = KeyPressMask | ButtonPressMask | PointerMotionMask;

    Window win = XCreateWindow(dpy, root, 0, 0, 
                               DisplayWidth(dpy, scr), DisplayHeight(dpy, scr),
                               0, CopyFromParent, InputOutput, CopyFromParent,
                               CWOverrideRedirect | CWBackPixel | CWEventMask, &attr);

    // Optimization 3: Faster invisible cursor creation
    Pixmap bm = XCreatePixmap(dpy, win, 1, 1, 1);
    XColor black = {0};
    Cursor inv = XCreatePixmapCursor(dpy, bm, bm, &black, &black, 0, 0);
    XDefineCursor(dpy, win, inv);

    XMapRaised(dpy, win);
    
    // Optimization 4: Grab both Keyboard AND Pointer
    // This ensures no other app steals the "focus" or mouse clicks
    XGrabKeyboard(dpy, win, False, GrabModeAsync, GrabModeAsync, CurrentTime);
    XGrabPointer(dpy, win, False, ButtonPressMask | PointerMotionMask, 
                 GrabModeAsync, GrabModeAsync, None, inv, CurrentTime);

    XEvent ev;
    while (1) {
        XNextEvent(dpy, &ev);
        // Any interaction exits
        if (ev.type == KeyPress || ev.type == MotionNotify || ev.type == ButtonPress) 
            break;
    }

    // Cleanup
    XFreeCursor(dpy, inv);
    XFreePixmap(dpy, bm);
    XCloseDisplay(dpy);
    return 0;
}
Is it necessary to remove the disk from virtual drive in Oracle VirtualBox Manager before restarting Ubuntu? https://askubuntu.com/questions/1564010/is-it-necessary-to-remove-the-disk-from-virtual-drive-in-oracle-virtualbox-manag

I'm currently doing a course on Cisco called Network Devices and Initial Configuration. In one of the labs, it's asking me to Install Linux in a Virtual Machine and Explore the GUI. I'm able to get to the page below without issues:

Installation complete

However, after following the instructions below, Ubuntu does not restart like it's supposed to:

Step 2: Install OS

Instead, it just freezes at this page:

Error

I'm using the latest version of VirtualBox, 7.6.2a and have Windows 11 as an OS. Please advise.

Ubuntu Server 24.04 - Kernel 6.17.0-14: Ethernet stopped working after 6 months https://askubuntu.com/questions/1564008/ubuntu-server-24-04-kernel-6-17-0-14-ethernet-stopped-working-after-6-months

it is my first post/ask here. I tried to search a lot as different approaches from everywhere but so far no luck :-( Here is my problem. I have a Mini PC called Beelink Mini S12 that I use as Media Server. I has Ubuntu Server 24.04.4 LTS with Kernel 6.17.0-14-generic on it. I did all setups like 6 months ago and after that never had to touch it again, it was 100% working well and stable until yesterday when I was not able to connect into it anymore. Today, after some investigation I found that it had lost the Ethernet connect and as I was using it connected into my router via cable I lost the access. Okay, so I re-enable the Wifi temporally to be able to work on it until I find and fix the issue with Ethernet but after try everything Im still no luck and not ethernet connection back :-(

Here is some prints from my setup/ethernt: Ubuntu/Kernel

My networks interfaces: interfaces

Network hardware Realtek RTL8111/8168/8211/8411: realtek

Driver updated to use r8168-dkms: driver

netplan that normally will have only the ethernet part and I will leave the wifi commented: netplan

I have no idea what is going as it was working before and I didnt update anything (at least not manually by myself)

Legacy Drivers for Ubuntu [closed] https://askubuntu.com/questions/1564007/legacy-drivers-for-ubuntu

So i am currently dual booting Zorin OS on a HDD. Everything is Fine but i cannot get to install drivers. I have a Nvidia Quadro 600 Which is a legacy driver. I tried doing these things :

sudo apt update and sudo apt install nvidia-390 but when i try that it outputs this:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package nvidia-390 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libnvidia-gl-470 libnvidia-gl-550-server:i386
  nvidia-kernel-source-550-server-open nvidia-kernel-source-550-server
  nvidia-headless-no-dkms-550-server-open nvidia-headless-no-dkms-550-server
  libnvidia-gl-550-server libnvidia-gl-535-server:i386 libnvidia-gl-535:i386
  libnvidia-gl-470-server:i386 libnvidia-gl-470:i386
  nvidia-kernel-source-535-server-open nvidia-kernel-source-535-server
  nvidia-kernel-source-535-open nvidia-kernel-source-535
  nvidia-kernel-source-470-server nvidia-kernel-source-470
  nvidia-headless-no-dkms-535-server-open nvidia-headless-no-dkms-535-server
  nvidia-headless-no-dkms-535-open nvidia-headless-no-dkms-535
  nvidia-headless-no-dkms-470-server nvidia-headless-no-dkms-470
  libnvidia-gl-535-server libnvidia-gl-535 libnvidia-gl-470-server
  nvidia-kernel-source-550-open nvidia-headless-no-dkms-550-open
  nvidia-headless-no-dkms-550 libnvidia-gl-550:i386 nvidia-kernel-source-550
  libnvidia-gl-550

E: Package 'nvidia-390' has no installation candidate

Currently its running on nouveau drivers which is also displaying errors on boot:

Failed to create ce channel -22 can you help me install the correct drivers ? because i am stuck on a 1280x720 resolution.

Here is some useful information :

sarimali@SarimComputer:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GF108GL [Quadro 600] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)

My Computer Specs :

12gb RAM

Core i3 2nd gen

Nvidia Quadro 600

GParted is corrupting my live USB Ubuntu 24.04/Windows 11 dual boot https://askubuntu.com/questions/1563995/gparted-is-corrupting-my-live-usb-ubuntu-24-04-windows-11-dual-boot

I am currently running a dual boot Ubuntu 24.04 and Windows 11 setup via a live USB 3.1 drive. This setup works fine and has no issues. I had asked earlier on the best way to clone/ back up my set up and got helpful answers on ways to do it.

The GParted copy and paste method, and a Clonezilla method that involved restoring GRUB. The GParted method resulted in my new clone of Ubuntu booting fine, but Windows 11 would give me a PC needs to be repaired error and would boot loop if I tried any repair options, even with a live installation of Windows 11.

Next I tried doing a part-part clone of each partition of Windows, followed by the Vfat partition to see if this would fix it, and had no luck. Later I tried a basic disk-disk clone via Clonezilla and now Windows and Ubuntu boot fine. This surprised me as the user from this post mentioned this didn't work for them and they had to jump through hoops as well as reconfigure grub each time they did it. I did make sure to boot into a live installation of Ubuntu and removed my HDD from my computer to use GParted.

How can I use GParted so that it does not ruin my dual boot USB?

I have followed the posted method very closely, and I do not believe this to be a result of misreading instructions. I'd prefer this method, so that I can back up a single partition as opposed to cloning my entire hard drive each time a major update gets released.

can not update my ubuntu https://askubuntu.com/questions/1563994/can-not-update-my-ubuntu

it complains

~$ sudo apt upgrade 
...
error: object file .git/objects/05/dfe78c511be036b324b5280f2deb64db6b95b9 is empty
error: object file .git/objects/05/dfe78c511be036b324b5280f2deb64db6b95b9 is empty
fatal: bad object HEAD
Extract templates from packages: 100%
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 802650 files and directories currently installed.)
Preparing to unpack .../base-files_1%3a2026.1.0_amd64.deb ...
dpkg-divert: error: 'diversion of /lib32 to /.lib32.usr-is-merged by base-files' clashes with 'diversion of /lib32 to /lib32.usr-is-merged by base-files'
dpkg: error processing archive /var/cache/apt/archives/base-files_1%3a2026.1.0_amd64.deb (--unpack):
 new base-files package pre-installation script subprocess returned error exit status 2
motd-news.service is a disabled or a static unit not running, not starting it.
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_1%3a2026.1.0_amd64.deb
error: object file .git/objects/05/dfe78c511be036b324b5280f2deb64db6b95b9 is empty
error: object file .git/objects/05/dfe78c511be036b324b5280f2deb64db6b95b9 is empty
fatal: bad object HEAD
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why does my sound keep stopping? https://askubuntu.com/questions/1563992/why-does-my-sound-keep-stopping

Every single time I open up Ubuntu, the same thing happens. No sound. If I reboot, I get sound for a while then silence. I've installed 24.04 only a day ago and this just keeps happening. Also if I open settings, I get a little bit of sound before more silence. (on a EZ book S7 Hi) Edit: If I put a headphone jack in, even when there's no headphones attached, sound plays.

re-install of the operating system but do not format and just 'overwrite' https://askubuntu.com/questions/1563988/re-install-of-the-operating-system-but-do-not-format-and-just-overwrite

Trying to use this:

A third option is to do a re-install of the operating system but do not format and just 'overwrite' your existing installation. Boot to the install media and go through the install process as usual.When you get to the partitioner to allocate drive space, depending on the version you are installing check the box marked 'Manually select partitions' or 'Something else' and click forward. Use the SAME user name and password as the existing account when setting up again. Find your existing installation and you must UNCHECK all the 'format' boxes and mount the partitions in the same place they are now. As long as no 'format' boxes are checked, no data will be lost in your home folder and the system files will be overwritten with the originals. You should then complete all system updates again.

but I get to here using Ubuntu 24.04.3 Desktop AMD64 iso on bootable USB:

Manual Partition

and can go no further using these instructions... my Ubuntu location to re-install to is sda5, which I can mount at /, but it won't let me uncheck the format box - so probably the wrong mount point to do this - other options are:

/boot

/home

/tmp

but are not where it needs to be re-installed to.

Reading on below, it appears format is forced due to Ubuntu not fixing their installer glitch and instead resorting to this inconvenience...

Well, except for the ‘nautilus, and nautilus type window pop-up corruption”, my Ubuntu Desktop 24.04.3LTS AMD64 system runs perfect - can still manipulate files via terminal and bypass nautilus, just click on the download link in my email (which just defaults to my Downloads folder, instead of save as which tries to pop-up the nautilus type window that crashes)… and the more complex work can be done using my Windows 10 laptop that works really great :-P

Why, when I am only updating Zen Browser with KDE Discover on Kubuntu does it never asks for my password https://askubuntu.com/questions/1563986/why-when-i-am-only-updating-zen-browser-with-kde-discover-on-kubuntu-does-it-ne

Why, when I am only updating Zen Browser with KDE Discover on Kubuntu does it never asks for my password. Everything else seems to require a password and I am concerned I have done something wrong.

Thanks.

WSL2 /dev/console, /dev/ttyN, /dev/vcsN and /dev/hvc0 https://askubuntu.com/questions/1563747/wsl2-dev-console-dev-ttyn-dev-vcsn-and-dev-hvc0

In WSL2, writing to /dev/console goes nowhere apparent. What happens to things written there? This question is generally to clarify the role of virtual consoles in WSL2 and hvc0.

A 2010 post with no responses asks

I would like to get some information regrading the hvc0 terminal. A search on the web hasn't came with useful stuff.

And it is thinly discussed in any StackExchange questions; one of the only is https://unix.stackexchange.com/questions/10857/what-is-hvc0-appearing-in-who-list

In Ubuntu running on Virtualbox,

virtualbox$ cat /proc/consoles
tty0                 -WU (EC  p  )    4:3
virtualbox$ echo hello | sudo dd of=/dev/console status=none
hello                                                                                                                                           virtualbox$ echo hello | sudo dd of=/dev/tty0 status=none
hello
virtualbox$ tty
/dev/tty3
virtualbox$ fgconsole
3
virtualbox$ cat /sys/class/tty/tty0/active
tty3                                                                                                                                               virtualbox$ echo hello | dd of=/dev/tty3 status=none
hello
virtualbox$ sudo cat /dev/vcs3 > out

The above session typescript is made with the last command in it.

In WSL2, writing to /dev/console goes nowhere apparent. If the answer is to run strace, like

echo hello | sudo strace dd of=/dev/console

where is the "interesting" part of the output, which is a bunch of UTF stuff, mmap, fstat, open and close.

There is no /dev/tty0 or /dev/vcs0, but instead /dev/hvc0.

wsl$ cat /proc/consoles
hvc0                 -W- (EC p  )  229:0

In WSL, despite not being able to access virtual consoles like in usual Linux, we can write and read to them:

wsl$ echo hello | sudo dd of=/dev/tty1 status=none
wsl$ sudo cat /dev/vcs1

Ubuntu 24.04.3 LTS laptop tty1                                                                                                                                  laptop login: hello

The following seems to mean that tty1 is "populated" with a login screen (by systemd getty?), that is we can see the login by reading /dev/vcs1 but we see nothing reading /dev/vcs2.

wsl$ cat /sys/class/tty/tty0/active
tty1
wsl$ fgconsole
Couldn't get a file descriptor referring to the console.

However we can indeed write to /dev/tty2 and then read from /dev/vcs2:

wsl$ echo hello | sudo dd of=/dev/tty2 status=none
wsl$ sudo cat /dev/vcs2
hello

System information:

ubuntu@laptop:~$ hostnamectl
 Static hostname: laptop
       Icon name: computer-container
         Chassis: container ☐
      Machine ID: 3e5d7ad626ee482690fcca3b0fad5f21
         Boot ID: 56ebc70391a74ea19d637eb32e3007bf
  Virtualization: wsl
Operating System: Ubuntu 24.04.3 LTS
          Kernel: Linux 6.6.87.2-microsoft-standard-WSL2
    Architecture: x86-64
No sound after fresh Ubuntu 24.04 installation on Acer Spin laptop https://askubuntu.com/questions/1562956/no-sound-after-fresh-ubuntu-24-04-installation-on-acer-spin-laptop

After a fresh installation of Ubuntu 24.04 on an Acer Spin laptop no sound is produced from either speakers or headphones. In the settings -> sound -> output, the bar moves when the test button is pressed. The output device - “Ice Lake-LP Smart Sound Technology Audio Controller” – can choose between Speakers or Headphones.

I installed pavucontrol. Pavucontrol shows both speakers and headphones: The bar in Volume Control moves when when I “Test Speakers”, but there is no sound. It is not muted in this setting.

Under Windows, speakers and headphones worked fine. What can I do to get the speakers and headphones working in Ubuntu?

NVIDIA RTX 3050 display issues on Ubuntu 24.04.3 LTS in Acer Aspire 7 https://askubuntu.com/questions/1560612/nvidia-rtx-3050-display-issues-on-ubuntu-24-04-3-lts-in-acer-aspire-7

I am using a laptop equipped with an NVIDIA GeForce RTX 3050 GPU, running Ubuntu 24.04.3 LTS. Recently, I have been experiencing several display issues: the screen frequently flickers, sometimes turns off by itself, and overall the graphics performance feels unstable.

Here are my system details for reference: my device is a laptop with NVIDIA GeForce RTX 3050, Ubuntu version is 24.04.3 LTS, and the NVIDIA driver version installed is 570.195.03.

I have already tried common troubleshooting steps, such as switching between different prime-select modes (Intel, NVIDIA, and on-demand) and disabling Wayland, but the problems persists. I suspect that the issues may be related to GPU driver compatibility with this Ubuntu version or to power management settings on the laptop.

Could you please advise on the most stable configuration or recommend any workaround that can prevent the screen flickering and unexpected shutdowns?

MediaTek MT7902 WiFi not working on Ubuntu 24.04 https://askubuntu.com/questions/1536725/mediatek-mt7902-wifi-not-working-on-ubuntu-24-04

I’m having trouble getting my MediaTek MT7902 WiFi card to work on Ubuntu 24.04 the last version of Ubuntu with kernel 6.8.0-51. The card works fine on Windows, but on Ubuntu, no networks are detected.

Details:

  1. The card shows up in lspci:

00:02.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7902]

  1. ip link output:

2: enx022376651f09: <BROADCAST,MULTICAST,UP> mtu 65536 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000

  1. Firmware (linux-firmware) is up to date.

  2. I loaded the mt76 driver (modprobe mt76), but it doesn’t seem to work.

  3. dmesg gives:

read kernel buffer failed: Operation not permitted

What I’ve tried:

  • Updated linux-firmware.
  • Loaded the mt76 module.
  • Restarted NetworkManager.
  • Unblocked WiFi using rfkill unblock all.

Question:

How can I get this WiFi card to work on Ubuntu? Do I need a specific driver, firmware, or kernel version?

Thanks for your help!

Trying to add i386 architecture to install Wine on 22.04 https://askubuntu.com/questions/1422760/trying-to-add-i386-architecture-to-install-wine-on-22-04

I'm trying to install wine, but when it says I need wine32, I can't install it either with similar messages as trying to install i386 dependencies.

I read a post (Cannot install wine32 in Jammy (22.04)) where he narrowed it down to libsystemd0

from dpkg-architecture -l:

DEB_BUILD_ARCH=amd64
DEB_BUILD_ARCH_ABI=base
DEB_BUILD_ARCH_BITS=64
DEB_BUILD_ARCH_CPU=amd64
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_ARCH_LIBC=gnu
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_GNU_CPU=x86_64
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=x86_64-linux-gnu
DEB_BUILD_MULTIARCH=x86_64-linux-gnu
DEB_HOST_ARCH=amd64
DEB_HOST_ARCH_ABI=base
DEB_HOST_ARCH_BITS=64
DEB_HOST_ARCH_CPU=amd64
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_ARCH_LIBC=gnu
DEB_HOST_ARCH_OS=linux
DEB_HOST_GNU_CPU=x86_64
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=x86_64-linux-gnu
DEB_HOST_MULTIARCH=x86_64-linux-gnu
DEB_TARGET_ARCH=amd64
DEB_TARGET_ARCH_ABI=base
DEB_TARGET_ARCH_BITS=64
DEB_TARGET_ARCH_CPU=amd64
DEB_TARGET_ARCH_ENDIAN=little
DEB_TARGET_ARCH_LIBC=gnu
DEB_TARGET_ARCH_OS=linux
DEB_TARGET_GNU_CPU=x86_64
DEB_TARGET_GNU_SYSTEM=linux-gnu
DEB_TARGET_GNU_TYPE=x86_64-linux-gnu
DEB_TARGET_MULTIARCH=x86_64-linux-gnu

I've added the architecture: dpkg --add-architecture i386

It shows up here: dpkg --print-foreign-architectures i386

but I can't install it:

apt-cache policy libsystemd0:{amd64,i386}
libsystemd0:
  Installed: 249.11-0ubuntu3.4
  Candidate: 249.11-0ubuntu3.4
  Version table:
 *** 249.11-0ubuntu3.4 100
        100 /var/lib/dpkg/status
     249.11-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libsystemd0:i386:
  Installed: (none)
  Candidate: 249.11-0ubuntu3
  Version table:
     249.11-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages
apt install libsystemd0:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: adduser but it is not going to be installed
       Depends: gpgv or
                gpgv2 but it is not going to be installed or
                gpgv1 but it is not going to be installed
       Depends: libapt-pkg6.0 (>= 2.4.6) but it is not going to be installed
       Depends: libc6 (>= 2.34) but it is not installable
       Depends: libgcc-s1 (>= 3.3.1) but it is not going to be installed
       Depends: libgnutls30 (>= 3.7.0) but it is not going to be installed
       Depends: libseccomp2 (>= 2.4.2) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not going to be installed
       Depends: libsystemd0 but it is not installable
       Recommends: ca-certificates but it is not going to be installed

Edit: for the record, following the instructions here: https://www.linuxcapable.com/how-to-install-winehq-on-ubuntu-22-04-lts/

sudo apt install software-properties-common apt-transport-https wget -y
wget -O- https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg
echo deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main | sudo tee /etc/apt/sources.list.d/winehq.list

All of those commands complete without errors. Then

root@michalk-desktop:~# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://dl.winehq.org/wine-builds/ubuntu jammy InRelease [8,041 B]                                                     
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                            
Get:4 http://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages [35.1 kB]                                  
Get:5 http://dl.winehq.org/wine-builds/ubuntu jammy/main all Packages [928 B]                                                                                   
Get:6 http://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages [34.9 kB]                                                                                
Hit:7 https://download.virtualbox.org/virtualbox/debian jammy InRelease                                                                        
Hit:8 https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy InRelease                                    
Hit:9 https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy InRelease
Fetched 79.0 kB in 2s (35.1 kB/s)                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@michalk-desktop:~# sudo apt install winehq-stable --install-recommends  -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package winehq-stable

So, trying staging:

root@michalk-desktop:~# sudo apt install winehq-staging --install-recommends  -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-staging : Depends: wine-staging (= 7.14~jammy-1)
E: Unable to correct problems, you have held broken packages.

root@michalk-desktop:~# sudo apt install wine-staging --install-recommends  -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libapt-pkg6.0 (>= 2.4.6) but it is not going to be installed
       Depends: libsystemd0 but it is not installable
 bsdutils : PreDepends: libsystemd0 but it is not installable
 init : PreDepends: systemd-sysv
 libasound2:i386 : Depends: libc6:i386 (>= 2.34) but it is not installable
 libasound2-plugins:i386 : Depends: libc6:i386 (>= 2.34) but it is not installable
                           Depends: libjack-jackd2-0:i386 (>= 1.9.10+20150825) but it is not installable or
                                    libjack-0.125:i386
                           Depends: libpulse0:i386 (>= 0.99.1-1~) but it is not installable

and so forth.

Edit:

sudo apt install --reinstall libsystemd0=249.11-0ubuntu3
...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 init : PreDepends: systemd-sysv
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This machine is a fresh install, about one week old. The only 20.04 remnants is my home directory. I don't pin packages, or rarely install packages with dpkg -i to prevent dependency hell. I don't think I have broken packages, I think this is what it thinks is an "impossible situation". It may be easier for me to do a reinstall of the OS.

Edit: more information.

dpkg -l | egrep -v '^ii|rc'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
+++-==========================================-=============================================-============-================================================================================
grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list:deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib
/etc/apt/sources.list:# deb cdrom:[Ubuntu 22.04 LTS _Jammy Jellyfish_ - Release amd64 (20220419)]/ jammy main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy universe
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
/etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
/etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security main restricted
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security universe
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security multiverse
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
/etc/apt/sources.list:# (e.g. netinst, live or single CD). The matching "deb cdrom"
/etc/apt/sources.list.d/savoury1-ubuntu-ffmpeg4-jammy.list:deb https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-ffmpeg4-jammy.list:# deb-src https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-chromium-jammy.list:deb https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-chromium-jammy.list:# deb-src https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-chromium-jammy.list.save:deb https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-chromium-jammy.list.save:# deb-src https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu/ jammy main
/etc/apt/sources.list.d/owncloud.list:deb https://download.owncloud.com/desktop/ownCloud/stable/2.10/linux/Ubuntu_22.04/ /
/etc/apt/sources.list.d/savoury1-ubuntu-ffmpeg4-jammy.list.save:deb https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/ jammy main
/etc/apt/sources.list.d/savoury1-ubuntu-ffmpeg4-jammy.list.save:# deb-src https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/ jammy main

Edit: more info root@michalk-desktop:~# apt-show-versions | fgrep avail root@michalk-desktop:~# apt-show-versions doesn't have anything with "avail"

installing libpng12.so on ubuntu 22.04 https://askubuntu.com/questions/1409363/installing-libpng12-so-on-ubuntu-22-04

I tried to follow the various instructions for installing libpng12.so which eventually led me to do the use the following command after downloading the deb file:

sudo gdebi  libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

But, unfortunately, the installation of the deb leads to the errors below:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done

PNG library - runtime
 libpng is a library implementing an interface for reading and writing
 PNG (Portable Network Graphics) format files.
 .
 This package contains the runtime library files needed to run software
 using libpng.
Do you want to install the software package? [y/N]:y
/usr/bin/gdebi:113: FutureWarning: Possible nested set at position 1
  c = findall("[[(](\S+)/\S+[])]", msg)[0].lower()
(Reading database ... 373964 files and directories currently installed.)
Preparing to unpack libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--install):
 unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Errors were encountered while processing:
 libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

Does anyone know why I get these errors? Thanks a lot.

Ubuntu starts in emergency mode every time I turn on my PC https://askubuntu.com/questions/1403275/ubuntu-starts-in-emergency-mode-every-time-i-turn-on-my-pc

Every time I start Ubuntu 21.10 it goes into emergency mode. I have already tried to do in fsck.ext4 -y /dev/sdb3 and nothing keeps entering that mode that bothers me.

Linux: clean, 1363248/28057600 files, 68026124/112212224 blocks   
You are in emergency mode. After logging in, type "journalctl -xb" to view  
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"  
to boot into default mode.  
Press Enter for maintenance.  
(or press Control-D to continue.)  
Ubuntu 20.04 PXE boot fails - "Unable find a live file system on the network" https://askubuntu.com/questions/1390834/ubuntu-20-04-pxe-boot-fails-unable-find-a-live-file-system-on-the-network

When attempting to boot Ubuntu 20.04 via PXE, I'm getting the error Unable to find a live file system on the network.

I use the NFS method:

menu label ^Install ubuntu
kernel /images/ubuntu20-04/casper/vmlinuz 
append initrd=/images/ubuntu20-04/casper/initrd nfsroot=192.168.2.1:/nfs_share/ubuntu ro netboot=nfs boot=casper ip=dhcp ---

Screenshot

How can I fix this?

Trouble getting chromium-browser to run successfully on Ubuntu v20.04 https://askubuntu.com/questions/1248634/trouble-getting-chromium-browser-to-run-successfully-on-ubuntu-v20-04

I had initially created a couple of directories in /home, which got filled with the content of previously successful work dirs. Consequently, enabling me to try/test/adapt one, and continue on; moving quickly... I settled on one, left the softlink coupled to the chosen dir, and since have installed all manners of working application/drivers/etc from the "Ux Repository" via Synaptic, to date; including Firefox & Chrome.

Today, I found it necessary to install another valued browser (Chromium), only to end up with error message result indicated below. One can also note that every other install was able to set up, and leave it's config stuff in it's ~/.config dir. Thus, I find it frustrating to note that there does not exist a ~/.config/[cC]hromium[-browser] directory there, as well?

Moreover, Chromium also should not need fail in such a manner, as the dir that it claims to have trouble creating, already exists, and is usable? So, is there an existing modification/code addition that I might be able to apply, to enable proper execution with this described setup; other than creating a "odoncaoaB" user, and su'ing to it in order to make use of Chromium every time hereafter? Cheers odoncaoa

/home/odoncaoa 2020-06-09 13:49
odoncaoa@tufFX705du[27]$ **chromium-browser**
2020/06/09 13:50:33.298865 cmd_run.go:563: WARNING: XAUTHORITY environment value is not a clean path: "/home/odoncaoaB/.Xauthority"
cannot create user data directory: /home/odoncaoa/snap/chromium/1182: Not a directory

/home/odoncaoa 2020-06-09 14:06
odoncaoa@tufFX705du[41]$ **cd ..; ll**
total 20
drwxr-xr-x  5 root     root     4096 Apr 12 14:48 .
drwxr-xr-x 19 root     root     4096 Feb 28 22:01 ..
lrwxrwxrwx  1 root     root        9 Mar  5 14:47 odoncaoa -> odoncaoaB
drwxr-xr-x 17 odoncaoa users    4096 Mar  5 14:46 odoncaoa_
drwxr-xr-x 39 odoncaoa odoncaoa 4096 Jun  9 13:12 odoncaoaB
drwxrwxr-x  2 u0_a239  u0_a239  4096 Apr 12 14:48 u0_a239

/home/odoncaoa 2020-06-09 15:21
odoncaoa@tufFX705du[41]$ **l .config**
 ./                  deluge/                google-chrome/   mpv/               user-dirs.dirs
 ../                 enchant/               gtk-2.0/         nemo/              user-dirs.locale
 atril/              epiphany/              gtk-3.0/         obs-studio/        vlc/
 autostart/          filemanager-actions/   ibus/            pcmanfm/           xfce4/
 celluloid/          FreeFileSync/          libfm/           pulse/             yelp/
 cinnamon-layout/    gedit/                 libreoffice/     QtProject.conf
 cinnamon-session/   GIMP/                  lxterminal/      rtorrent/
'Code Industry'/     gmpc/                  menus/           streamtuner2/
 dconf/              goa-1.0/               mimeapps.list    update-notifier/

/home/odoncaoa 2020-06-09 14:02
odoncaoa@tufFX705du[36]$ **grep odoncaoa /etc/passwd**
odoncaoa:x:1000:100:Douglas Randall:/home/odoncaoa:/bin/bash

home/odoncaoaB 2020-06-09 16:08
odoncaoa@tufFX705du[49]$ **grep users /etc/group**
users:x:100:odoncaoa

/home/odoncaoa 2020-06-09 14:25
odoncaoa@tufFX705du[49]$ **which chromium-browser**
/usr/bin/chromium-browser

/home/odoncaoa 2020-06-09 14:26
odoncaoa@tufFX705du[50]$ **file /usr/bin/chromium-browser**
/usr/bin/chromium-browser: POSIX shell script, ASCII text executable

/home/odoncaoa 2020-06-09 14:05
odoncaoa@tufFX705du[39]$ **set | grep 'odoncaoa'**
HOME=/home/odoncaoa
XAUTHORITY=/home/odoncaoa/.Xauthority

home/odoncaoaB 2020-06-09 16:24
odoncaoa@tufFX705du[52]$ **cat .Xauthority | od -c**
0000000 001  \0  \0  \n   t   u   f   F   X   7   0   5   d   u  \0 001
0000020   0  \0 022   M   I   T   -   M   A   G   I   C   -   C   O   O
0000040   K   I   E   -   1  \0 020 326 257 220 035 035 277   e 016  \a
0000060 275 336   / 221 321 035   8
0000067

/home/odoncaoa 2020-06-09 13:52
odoncaoa@tufFX705du[40]$ **find $HOME/snap -print**
/home/odoncaoa/snap
/home/odoncaoa/snap/gnome-system-monitor
/home/odoncaoa/snap/gnome-system-monitor/current
/home/odoncaoa/snap/gnome-system-monitor/common
/home/odoncaoa/snap/gnome-system-monitor/127
/home/odoncaoa/snap/chromium
/home/odoncaoa/snap/chromium/current
/home/odoncaoa/snap/chromium/common
/home/odoncaoa/snap/chromium/1182
/home/odoncaoa/snap/chromium/1165

/home/odoncaoa 2020-06-09 15:20
odoncaoa@tufFX705du[39]$ **ll snap/ch***
total 20
drwxr-xr-x 5 odoncaoa odoncaoa 4096 Jun  9 12:57 .
drwxr-xr-x 4 odoncaoa odoncaoa 4096 Mar 20 13:31 ..
drwxr-xr-x 2 odoncaoa odoncaoa 4096 Mar 20 13:31 1165
drwxr-xr-x 2 odoncaoa odoncaoa 4096 Mar 20 13:31 1182
drwxr-xr-x 2 odoncaoa odoncaoa 4096 Mar 20 13:31 common
lrwxrwxrwx 1 odoncaoa users       4 Jun  9 12:57 current -> 1182

/home 2020-06-09 14:08
odoncaoa@tufFX705du[41]$ **set | grep 'XDG_RUNTIME_DIR'**
XDG_RUNTIME_DIR=/run/user/1000

/home 2020-06-09 14:16
odoncaoa@tufFX705du[44]$ **ll /run/user**
total 0
drwxr-xr-x  3 root     root    60 Jun  9 13:12 .
drwxr-xr-x 35 root     root  1000 Jun  9 13:19 ..
drwx------ 11 odoncaoa users  360 Jun  9 13:19 1000

/home/odoncaoaB 2020-06-09 16:24
odoncaoa@tufFX705du[53]$ **l /run/user/1000**
./    dbus-1/  gvfs/          keyring/            .portals-unavailable         speech-dispatcher/
../   dconf/   ICEauthority   pcmanfm-socket--0=  pulse/                       systemd/
bus=  gnupg/   inaccessible/  pk-debconf-socket=  snapd-session-agent.socket=  update-notifier.pid

/home 2020-06-09 14:16
odoncaoa@tufFX705du[46]$ **ll /run/user/1000**
total 4
drwx------ 11 odoncaoa users 360 Jun  9 13:19 .
drwxr-xr-x  3 root     root   60 Jun  9 13:12 ..
srw-rw-rw-  1 odoncaoa users   0 Jun  9 13:12 bus
drwx------  3 odoncaoa users  60 Jun  9 13:12 dbus-1
drwx------  2 odoncaoa users  60 Jun  9 13:12 dconf
drwx------  2 odoncaoa users 140 Jun  9 13:12 gnupg
dr-x------  2 odoncaoa users   0 Jun  9 13:12 gvfs
-rw-------  1 odoncaoa users 334 Jun  9 13:12 ICEauthority
d---------  3 odoncaoa users 160 Jun  9 13:12 inaccessible
drwx------  2 odoncaoa users 100 Jun  9 13:12 keyring
srwxr-xr-x  1 odoncaoa users   0 Jun  9 13:12 pcmanfm-socket--0
srw-rw-rw-  1 odoncaoa users   0 Jun  9 13:12 pk-debconf-socket
-rw-r--r--  1 odoncaoa users   0 Jun  9 13:19 .portals-unavailable
drwx------  2 odoncaoa users  80 Jun  9 13:12 pulse
srw-rw-rw-  1 odoncaoa users   0 Jun  9 13:12 snapd-session-agent.socket
drwx------  4 odoncaoa users 100 Jun  9 13:12 speech-dispatcher
drwxr-xr-x  4 odoncaoa users 120 Jun  9 13:12 systemd
-rw-------  1 odoncaoa users   0 Jun  9 13:13 update-notifier.pid

/home/odoncaoa 2020-06-09 15:16
odoncaoa@tufFX705du[35]$ **ll Desktop/chr* /usr/share/applications/chromium-browser.desktop**
-rwxr--r-- 1 odoncaoa users    12478 Jun  9 15:14 Desktop/chromium-browser.desktop
-rwxr-xr-x 1 odoncaoa odoncaoa 12933 Mar  5 18:52 Desktop/chromium_chromium.desktop
-rw-r--r-- 1 root     root     12478 Oct 22  2019 /usr/share/applications/chromium-browser.desktop


/home/odoncaoaB 2020-06-09 16:53
odoncaoa@tufFX705du[57]$ **cd /snap**

/snap 2020-06-09 16:53
odoncaoa@tufFX705du[58]$ **l**
./  ../  bin/  chromium/  core18/  gtk-common-themes/  README  snapd/

/snap 2020-06-09 16:53
odoncaoa@tufFX705du[59]$ **ll**
total 32
drwxr-xr-x  7 root root 4096 Mar  5 18:53 .
drwxr-xr-x 19 root root 4096 Feb 28 22:01 ..
drwxr-xr-x  2 root root 4096 Jun  8 09:57 bin
drwxr-xr-x  4 root root 4096 Jun  8 09:57 chromium
drwxr-xr-x  4 root root 4096 Apr 30 12:33 core18
drwxr-xr-x  4 root root 4096 Apr 21 15:05 gtk-common-themes
-r--r--r--  1 root root  548 Mar  5 13:46 README
drwxr-xr-x  4 root root 4096 Jun  3 14:11 snapd

/snap 2020-06-09 16:53
odoncaoa@tufFX705du[60]$ **l bin**
./  ../  chromium@  chromium.chromedriver@

/snap 2020-06-09 16:54
odoncaoa@tufFX705du[61]$ **l s*d**
./  ../  7264/  7777/  current@

What does mean DORMANT mode in ip link show wlan0? https://askubuntu.com/questions/1194048/what-does-mean-dormant-mode-in-ip-link-show-wlan0

As the title above, does anyone know what DORMANT mean in this output command ?

$ ip link show wlan0

3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 00:c0:ca:a8:6c:84 brd ff:ff:ff:ff:ff:ff

The network works fine with this mode as well.

Increase size of encrypted swap https://askubuntu.com/questions/1193618/increase-size-of-encrypted-swap

Ubuntu 18.04 is by default creating a random encrypted swap during each boot using dm-crypt/Swap encryption. For me, this is creating a 1gb swap but I cannot find where to increase the size of the swap it creates on each boot. How can we increase the swap size allocated during each boot? I do not want to switch to a static swapfile. There is no /swapfile or partition.

This appears to be a new feature where the swap is dynamically created each time the system boots. How can I increase it?

from /etc/crypttab:

nvme0n1p3_crypt UUID=1e092df8-5c37-4409-8ac8-361402244f69 none luks,discard
cryptswap1 UUID=aba1b825-a77b-4384-a40f-fdc6fdaaced0 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64

from /etc/fstab:

/dev/mapper/cryptswap1 none swap sw 0 0
# swapon -s
Filename                Type        Size    Used    Priority
/dev/dm-3                               partition   1003004 601088  -2

htop

gparted does not show any swap partition. This is the only drive.

gparted

In an answer here, it is suggested to do:

sudo swapoff -a  
sudo cryptsetup resize cryptswap1 --size (in sectors)  
sudo mkswap /dev/cryptswap1  
sudo swapon -a  

So I run: cryptsetup resize cryptswap1 --size 7812500. This results in the error: Device /dev/mapper/mint--vg-swap_1 is too small.

So I try: cryptsetup resize /dev/mapper/mint--vg-swap_1 --size 7812500

This does not produce an error but parted --list; fdisk -l shows no change:

Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cryptswap1: 979.5 MiB, 1027080192 bytes, 2006016 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

and trying to again run cryptsetup resize cryptswap1 --size 7812500 produces Device /dev/mapper/mint--vg-swap_1 is too small.

I have also tried: resize2fs /dev/mapper/mint--vg-swap_1 -s 4G which produced:

resize2fs 1.44.1 (24-Mar-2018)
resize2fs: Device or resource busy while trying to open /dev/mapper/mint--vg-swap_1
Couldn't find valid filesystem superblock.
# lsblk
NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                   7:0    0  54.6M  1 loop  /snap/core18/1279
loop1                   7:1    0  89.1M  1 loop  /snap/core/8213
loop2                   7:2    0  89.1M  1 loop  /snap/core/8268
loop3                   7:3    0 497.4M  1 loop  /snap/wickrme/246
loop4                   7:4    0 497.2M  1 loop  /snap/wickrme/247
loop5                   7:5    0  54.6M  1 loop  /snap/core18/1288
nvme0n1               259:0    0 465.8G  0 disk  
├─nvme0n1p1           259:1    0   512M  0 part  /boot/efi
├─nvme0n1p2           259:2    0   732M  0 part  /boot
└─nvme0n1p3           259:3    0 464.6G  0 part  
  └─nvme0n1p3_crypt   253:0    0 464.6G  0 crypt 
    ├─mint--vg-root   253:1    0 463.6G  0 lvm   /
    └─mint--vg-swap_1 253:2    0   980M  0 lvm   
      └─cryptswap1    253:3    0 979.5M  0 crypt [SWAP]
How to get OpenCL working with AMD GPU on Ubuntu 18.04 https://askubuntu.com/questions/1029274/how-to-get-opencl-working-with-amd-gpu-on-ubuntu-18-04

I have tried several attempts but without success. AMDGPU-PRO 17.40, 17.50, ROCm, Oibaf PPA, Kernel 4.16 and something more, but nothing makes OpenCL working with the AMD card and clinfo never gives right results.

Can I only wait the next AMDGPU-PRO driver compatible with Ubuntu 18.04 or could I do something different?

3 fingers swipe change workspace in Ubuntu 14.04 https://askubuntu.com/questions/650711/3-fingers-swipe-change-workspace-in-ubuntu-14-04

I just bought an Dell XPS 13 and for my work I have a Macbook.

I want to use the touchpad for changing workspaces. I have found some questions but all the answers provided does not work on Ubuntu 14.04.

Is there someone that got the 3 finger swipe working for switching workspaces?

Ubuntu 14.04 doesn't detect second monitor https://askubuntu.com/questions/630218/ubuntu-14-04-doesnt-detect-second-monitor

I have a problem with Ubuntu 14.04. Suddenly, my second monitor isn't detected on Ubuntu. It worked fine before. When i try using Windows 7, it is detected. I'm using HP Pavilion G4 1212tx AMD ATI Radeon.

Why isn't it detected? Is there a problem with my VGA card?

How To fix a PPTP VPN client connection (Ubuntu on VirtualBox) https://askubuntu.com/questions/586643/how-to-fix-a-pptp-vpn-client-connection-ubuntu-on-virtualbox

I have just installed Ubuntu 14.04 on VirtualBox and I'm trying to set up a VPN client. I have configured it with the same settings I use on a Mac and I am able to connect from that without any problem.

When I click on the VPN connections I see the following message pop up after a short delay:

The VPN connection failed.

I've searched around for a solution without any luck. I'm not experienced in these matters at all. I've provided the log in the hope that it helps.

TIA.

Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> Starting VPN service 'pptp'...
Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 3629
Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> VPN service 'pptp' appeared; activating connections
Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> VPN plugin state changed: init (1)
Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> VPN plugin state changed: starting (3)
Feb 17 20:31:05 ubuntu NetworkManager[856]: <info> VPN connection 'Bioxydyn' (Connect) reply received.
Feb 17 20:31:05 ubuntu pppd[3633]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Feb 17 20:31:05 ubuntu pppd[3633]: pppd 2.4.5 started by root, uid 0
Feb 17 20:31:05 ubuntu pppd[3633]: Using interface ppp0
Feb 17 20:31:05 ubuntu pppd[3633]: Connect: ppp0 <--> /dev/pts/0
Feb 17 20:31:05 ubuntu pptp[3636]: nm-pptp-service-3629 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Feb 17 20:31:05 ubuntu NetworkManager[856]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Feb 17 20:31:05 ubuntu NetworkManager[856]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Feb 17 20:31:05 ubuntu NetworkManager[856]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Feb 17 20:31:05 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Feb 17 20:31:05 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Feb 17 20:31:05 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Feb 17 20:31:06 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Feb 17 20:31:06 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Feb 17 20:31:06 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 10009).
Feb 17 20:31:36 ubuntu pppd[3633]: LCP: timeout sending Config-Requests
Feb 17 20:31:36 ubuntu pppd[3633]: Connection terminated.
Feb 17 20:31:36 ubuntu NetworkManager[856]: <warn> VPN plugin failed: 1
Feb 17 20:31:36 ubuntu avahi-daemon[661]: Withdrawing workstation service for ppp0.
Feb 17 20:31:36 ubuntu NetworkManager[856]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Feb 17 20:31:36 ubuntu pppd[3633]: Modem hangup
Feb 17 20:31:36 ubuntu pptp[3636]: nm-pptp-service-3629 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Feb 17 20:31:36 ubuntu pptp[3636]: nm-pptp-service-3629 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Feb 17 20:31:36 ubuntu pppd[3633]: Exit.
Feb 17 20:31:36 ubuntu pptp[3653]: nm-pptp-service-3629 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Feb 17 20:31:36 ubuntu NetworkManager[856]: <warn> VPN plugin failed: 1
Feb 17 20:31:36 ubuntu NetworkManager[856]: <info> VPN plugin state changed: stopped (6)
Feb 17 20:31:36 ubuntu NetworkManager[856]: <info> VPN plugin state change reason: 0
Feb 17 20:31:36 ubuntu NetworkManager[856]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Feb 17 20:31:36 ubuntu pptp[3653]: nm-pptp-service-3629 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Feb 17 20:31:36 ubuntu pptp[3653]: nm-pptp-service-3629 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Feb 17 20:31:36 ubuntu NetworkManager[856]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Feb 17 20:31:41 ubuntu NetworkManager[856]: <info> VPN service 'pptp' disappeared
How do I format or partition a read-only USB drive? https://askubuntu.com/questions/182849/how-do-i-format-or-partition-a-read-only-usb-drive

Whenever I try formatting my Sandisk Cruzer Glide 16GB, I get this error message on Gparted.

GParted 0.11.0 --enable-libparted-dmraid

Libparted 2.3

Create Primary Partition #1 (ntfs, 14.42 GiB) on /dev/sdc  00:00:00    ( ERROR )

create empty partition  00:00:00    ( ERROR )
libparted messages    ( INFO )

Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Can't write to /dev/sdc, because it is opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.

========================================

How do I disable / delete the read only filesystem? Is my USB corrupted?

How to Edit PDFs? https://askubuntu.com/questions/162037/how-to-edit-pdfs

I typically have two needs:

Scenario A. Change a single PDF page.

In this case I have a PDF but not the original source file used to create the PDF. I don't want to try to recreate the document from scratch. I'd like to open the PDF and change a few things. A good example of this scenario: I was responsible for planning a big event at a campground site, I had a PDF of the site. I wanted to start with that document, highlight some parts, add some labels, remove some parts that weren't relevant.

or

Scenario B. Combine PDFs or extract page(s) from a PDF

This scenario usually arises because I want a single PDF deliverable that is made up of parts that are best created in different programs. In this case I have the source files for all the documents but they don't play well enough together to easily create a single PDF deliverable. For part of it, I may want to use Libre Office Writer. For another page I may want to use Gimp. Still another page I may use Libre Office Calc. I could use Writer as the master document and embed images or the Calc object into that, but for ultimate control, you can't beat separate PDF documents that are then combined.

What are the best tools / processes for editing PDFs in Ubuntu?