Skip to content

Instantly share code, notes, and snippets.

@naagaraa
Last active April 10, 2024 07:12
Show Gist options
  • Save naagaraa/fe2ffe7eb1549a907e227eea535df192 to your computer and use it in GitHub Desktop.
Save naagaraa/fe2ffe7eb1549a907e227eea535df192 to your computer and use it in GitHub Desktop.
Journey My Ubuntu

UBUNTU

  • 22.06 Jammy JellyFish

this daily my problem use linux ubuntu, this solution for thats

problem 0

i don't know how to remove or clean uninstall program at linux hahaha but now i know that's

this example for platpak

flatpak uninstall --unused
sudo apt-get remove --autoremove flatpak
sudo apt-get purge flatpak

if have another

sudo apt-get remove --autoremove <appsname>
sudo apt-get purge <appsname>

Problem 1

error message :

"Error mounting /dev/sda3 at media/nagara/Data :wring fs type, bad option, bad superblock on /dev/sdb3, missing codepage or helper program, or other error"

and

"Error mounting /dev/nvme0n1p2 at /media/nagara/labs :wrong fs type bad option, bad superblock on /dev/nvme0n1p2, missing codepage or helper program, or other error"

i new at user ubuntu desktop after using windows 8 year hahaha, ubuntu is better cool fo development, os try solution googling, and gpt but not solve, and i found this, just mount manual use terminal. btw i used dual boot, cause at my case some software only can run at windows, like watchguard vpn ssl, and watchguard system manager wkwk.

first check lsblk for check my dish is available

lsblk

focus at message "mounting /dev/sda3 at media/nagara/", just try re mount second mount

in my case first create folder

sudo mkdir /media/nagara/data
sudo mkdir /media/nagara/development

and mount

sudo mount /dev/sdb2 /media/nagara/data
sudo mount /dev/sdb3 /media/nagara/development

boom my problem it solve

and i found another solve

sudo apt-get install ntfs-3g
sudo ntfs /dev/sdb2

and it solve my problem

problem 2

"after download file pdf, or save to pdf chrome and mozilla is crash can't close with alt + f4 or click button close, i need close manual from super , and close."

the solution i found from #bug #1970148

sudo apt install xdg-desktop-portal-gnome

after that chrome > setiing > disable hardware acceralation and after that reboot or restart

problem 3

"apt-key deprecation warning when updating system"

now change all from

curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add -

to this

curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/spotify.gpg

and then

sudo apt update

problem 3

E: Could not get lock /var/lib/apt/lists/lock. It is held by process 3828 (packagekitd) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to lock directory /var/lib/apt/lists/

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
sudo dpkg --configure -a
sudo apt clean
sudo apt autoremove

problem 4

multiple version programming language

install ppa ondre and swicth usin this command

sudo update-alternatives --config php

install python and then run this commnad

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
sudo update-alternatives --config python

problem 5

problem could start or error nginx "ailed to start Nginx."

sudo mkdir /var/log/nginx
sudo touch /var/log/nginx/error.log
sudo systemctl start nginx

problem could start or error mysql "failed to start MySQL Community Server."

sudo mkdir /var/log/mysql
sudo touch /var/log/mysql/error.log
sudo chown -R mysql: /var/log/mysql
sudo systemctl start mysql

problem 6

setting waydroid ubuntu

multi windows mode true

waydroid prop set persist.waydroid.multi_windows true
sudo systemctl restart waydroid-container

multi windows mode false

waydroid prop set persist.waydroid.multi_windows true
sudo systemctl restart waydroid-container

problem 7

adding or how to run emulator avd without open android studio

  1. open path android
cd $HOME/Android/Sdk
  1. check list dir
ls 

the output will be

total 64
drwxrwxr-x 15 nagara nagara 4096 Apr  4 19:56 .
drwxrwxr-x  3 nagara nagara 4096 Apr  4 17:49 ..
drwxrwxr-x  4 nagara nagara 4096 Apr  4 19:57 build-tools
drwxrwxr-x  3 nagara nagara 4096 Apr  4 18:11 cmdline-tools
drwxrwxr-x  2 nagara nagara 4096 Apr  8 09:27 .downloadIntermediates
drwxrwxr-x  8 nagara nagara 4096 Apr  4 17:57 emulator
-rw-rw-r--  1 nagara nagara   16 Apr  8 10:22 .knownPackages
drwxrwxr-x  2 nagara nagara 4096 Apr  4 18:11 licenses
drwxrwxr-x  3 nagara nagara 4096 Apr  4 17:49 patcher
drwxrwxr-x  5 nagara nagara 4096 Apr  4 19:32 platforms
drwxrwxr-x  3 nagara nagara 4096 Apr  4 17:51 platform-tools
drwxrwxr-x 37 nagara nagara 4096 Apr  8 10:22 skins
drwxrwxr-x  3 nagara nagara 4096 Apr  4 19:32 sources
drwxrwxr-x  3 nagara nagara 4096 Apr  8 09:16 system-images
drwxrwxr-x  2 nagara nagara 4096 Apr  8 09:28 .temp
drwxrwxr-x  6 nagara nagara 4096 Apr  4 19:56 tools

and then to show full path

pwd

the output will be like this

/home/nagara/Android

and then open directory emulator and after that for can run from terminal apps

cd emulator
sudo ln -s /home/nagara/Android/emulator/emulator /usr/bin/

and you can run

emulator --help

for help cheatset

emulator -list-avds
emulator -avd Pixel_2_API_27

problem 8

install winehq

sudo apt install --install-recommends wine-staging-amd64

problem 9

solution 1

'http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.'

sudo apt-key list

and see the message before

'Emulators:/Wine'

sudo apt-key list | grep wine

see the message and find end 8 character before about wine

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
uid           [ unknown] WineHQ packages <wine-devel@winehq.org>

like this

pub   rsa3072 2018-12-10 [SC]
      D43F 6401 4536 9C51 D786  DDEA 76F1 A20F F987 672F
uid           [ unknown] WineHQ packages <wine-devel@winehq.org>

after that open new tabs

sudo apt-key export F987672F | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/winehq.gpg

solution 2

sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d

problem 10

'cannot install winehq at ubuntu 22.04 lts'

step 0 don't forgot for change ubuntu software updates at gui, change to or checked

  • security and recommnends updates

step 1

> dpkg --print-foreign-architectures
i386
> wget -nc https://dl.winehq.org/wine-builds/winehq.key
--2023-04-26 23:38:10--  https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 199.232.46.217
Connecting to dl.winehq.org (dl.winehq.org)|199.232.46.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3,1K) [application/pgp-keys]
Saving to: ‘winehq.key’

winehq.key          100%[===================>]   3,14K  --.-KB/s    in 0s      

2023-04-26 23:38:11 (7,15 MB/s) - ‘winehq.key’ saved [3220/3220]
> sudo apt-key add winehq.key
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
> sudo apt install --install-recommends winehq-stable
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-stable : Depends: wine-stable (= 8.0.1~jammy-1)
E: Unable to correct problems, you have held broken packages.
> sudo apt install libgd3=2.3.0-2ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavif13 libgav1-0 libyuv0
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libgd-tools
The following packages will be REMOVED:
  php-gd php8.1-gd php8.2-gd
The following packages will be DOWNGRADED:
  libgd3
0 upgraded, 0 newly installed, 1 downgraded, 3 to remove and 10 not upgraded.
Need to get 129 kB of archives.
After this operation, 306 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu jammy/main amd64 libgd3 amd64 2.3.0-2ubuntu2 [129 kB]
Fetched 129 kB in 5s (27,5 kB/s) 
(Reading database ... 337349 files and directories currently installed.)
Removing php-gd (2:8.2+93+ubuntu22.04.1+deb.sury.org+2) ...
Removing php8.1-gd (8.1.18-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-gd (8.2.5-1+ubuntu22.04.1+deb.sury.org+1) ...
dpkg: warning: downgrading libgd3:amd64 from 2.3.3-9+ubuntu22.04.1+deb.sury.org+
1 to 2.3.0-2ubuntu2
(Reading database ... 337328 files and directories currently installed.)
Preparing to unpack .../libgd3_2.3.0-2ubuntu2_amd64.deb ...
Unpacking libgd3:amd64 (2.3.0-2ubuntu2) over (2.3.3-9+ubuntu22.04.1+deb.sury.org
+1) ...
Setting up libgd3:amd64 (2.3.0-2ubuntu2) ...
Processing triggers for php8.1-fpm (8.1.18-1+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
> sudo apt install --install-recommends wine-stable-i386: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:
 libgphoto2-6:i386 : Depends: libgd3:i386 (>= 2.1.0~alpha~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

step 2

LC_ALL=C apt list --installed | grep 'installed,local'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

chat-gpt/now 0.12.0 amd64 [installed,local]
libobasis7.5-base/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-calc/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-core/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-draw/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-en-us/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-beanshell-script-provider/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-javascript-script-provider/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-mediawiki-publisher/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-nlpsolver/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-pdf-import/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-extension-report-builder/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-firebird/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-gnome-integration/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-graphicfilter/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-images/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-impress/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-kde-integration/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-librelogo/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-libreofficekit-data/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-math/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-ogltrans/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-onlineupdate/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-ooofonts/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-ooolinguistic/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-postgresql-sdbc/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-python-script-provider/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-pyuno/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-writer/now 7.5.1.2-2 amd64 [installed,local]
libobasis7.5-xsltfilter/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-base/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-calc/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-debian-menus/now 7.5.1-2 all [installed,local]
libreoffice7.5-dict-en/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-dict-es/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-dict-fr/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-draw/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-en-us/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-impress/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-math/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-ure/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5-writer/now 7.5.1.2-2 amd64 [installed,local]
libreoffice7.5/now 7.5.1.2-2 amd64 [installed,local]
nala/now 0.11.1~bpo22.04.1 all [installed,local]
python3-socksio/now 1.0.0-2~bpo22.04.1 all [installed,local]
virtualbox-7.0/now 7.0.6-155176~Ubuntu~jammy amd64 [installed,local]
> sudo apt install libgd3=2.3.0-2ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgd3 is already the newest version (2.3.0-2ubuntu2).
The following packages were automatically installed and are no longer required:
  libavif13 libgav1-0 libyuv0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
> sudo apt install --install-recommends wine-stable-i386: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:
 libgphoto2-6:i386 : Depends: libgd3:i386 (>= 2.1.0~alpha~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

step 3

apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.yarnpkg.com/debian stable/main all Packages
     release o=yarn,a=stable,n=stable,l=yarn-stable,c=main,b=all
     origin dl.yarnpkg.com
 500 https://dl.yarnpkg.com/debian stable/main i386 Packages
     release o=yarn,a=stable,n=stable,l=yarn-stable,c=main,b=i386
     origin dl.yarnpkg.com
 500 https://dl.yarnpkg.com/debian stable/main amd64 Packages
     release o=yarn,a=stable,n=stable,l=yarn-stable,c=main,b=amd64
     origin dl.yarnpkg.com
 500 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-yannubuntu-boot-repair,a=jammy,n=jammy,l=Boot-Repair,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-yannubuntu-boot-repair,a=jammy,n=jammy,l=Boot-Repair,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04 ./ Packages
     release o=obs://build.opensuse.org/Emulators:Wine:Debian/xUbuntu_22.04,n=xUbuntu_22.04,l=Emulators:Wine:Debian,c=
     origin download.opensuse.org
 500 https://repo.waydro.id jammy/main all Packages
     release o=mrcyjanek,n=jammy,l=mrcyjanek,c=main,b=all
     origin repo.waydro.id
 500 http://packages.microsoft.com/repos/code stable/main armhf Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=armhf
     origin packages.microsoft.com
 500 http://packages.microsoft.com/repos/code stable/main arm64 Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=arm64
     origin packages.microsoft.com
 500 http://packages.microsoft.com/repos/code stable/main amd64 Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=amd64
     origin packages.microsoft.com
 500 https://deb.termius.com squeeze/main amd64 Packages
     release o=. squeeze,a=squeeze,n=squeeze,l=. squeeze,c=main,b=amd64
     origin deb.termius.com
 500 https://ppa.launchpadcontent.net/teejee2008/timeshift/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-teejee2008-timeshift,a=jammy,n=jammy,l=Timeshift,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/remmina-ppa-team/remmina-next/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-remmina-ppa-team-remmina-next,a=jammy,n=jammy,l=remmina-next,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/remmina-ppa-team/remmina-next/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-remmina-ppa-team-remmina-next,a=jammy,n=jammy,l=remmina-next,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-ondrej-php,a=jammy,n=jammy,l=***** The main PPA for supported PHP versions with many PECL extensions *****,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-ondrej-php,a=jammy,n=jammy,l=***** The main PPA for supported PHP versions with many PECL extensions *****,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-obsproject-obs-studio,a=jammy,n=jammy,l=OBS Studio,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://apt.fury.io/notion-repackaged  Packages
     release c=
     origin apt.fury.io
 500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main all Packages
     release o=microsoft-ubuntu-jammy-prod jammy,a=jammy,n=jammy,l=microsoft-ubuntu-jammy-prod jammy,c=main,b=all
     origin packages.microsoft.com
 500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages
     release o=microsoft-ubuntu-jammy-prod jammy,a=jammy,n=jammy,l=microsoft-ubuntu-jammy-prod jammy,c=main,b=armhf
     origin packages.microsoft.com
 500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages
     release o=microsoft-ubuntu-jammy-prod jammy,a=jammy,n=jammy,l=microsoft-ubuntu-jammy-prod jammy,c=main,b=arm64
     origin packages.microsoft.com
 500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages
     release o=microsoft-ubuntu-jammy-prod jammy,a=jammy,n=jammy,l=microsoft-ubuntu-jammy-prod jammy,c=main,b=amd64
     origin packages.microsoft.com
 500 https://packages.microsoft.com/repos/edge stable/main amd64 Packages
     release o=edge stable,a=stable,n=stable,l=edge stable,c=main,b=amd64
     origin packages.microsoft.com
 500 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 https://ppa.launchpadcontent.net/elementary-os/stable/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-elementary-os-stable,a=jammy,n=jammy,l=elementary Stable,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/elementary-os/stable/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-elementary-os-stable,a=jammy,n=jammy,l=elementary Stable,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
     release o=Docker,a=jammy,l=Docker CE,c=stable,b=amd64
     origin download.docker.com
 500 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-deadsnakes,a=jammy,n=jammy,l=New Python Versions,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-deadsnakes,a=jammy,n=jammy,l=New Python Versions,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
     release o=Docker,a=focal,l=Docker CE,c=stable,b=amd64
     origin download.docker.com
 500 https://ppa.launchpadcontent.net/apt-fast/stable/ubuntu jammy/main i386 Packages
     release v=22.04,o=LP-PPA-apt-fast-stable,a=jammy,n=jammy,l=apt-fast stable PPA,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/apt-fast/stable/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-apt-fast-stable,a=jammy,n=jammy,l=apt-fast stable PPA,c=main,b=amd64
     origin ppa.launchpadcontent.net
 500 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=amd64
     origin security.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=universe,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=main,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=main,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=i386
     origin id.archive.ubuntu.com
 500 http://id.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=amd64
     origin id.archive.ubuntu.com
Pinned packages:

step 4

apt policy wine
wine:
  Installed: 6.0.3~repack-1
  Candidate: 6.0.3~repack-1
  Version table:
 *** 6.0.3~repack-1 500
        500 http://id.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status
> sudo apt remove wine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavif13 libgav1-0 libyuv0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  wine
0 upgraded, 0 newly installed, 1 to remove and 11 not upgraded.
After this operation, 200 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 337328 files and directories currently installed.)
Removing wine (6.0.3~repack-1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
> apt policy wine
wine:
  Installed: (none)
  Candidate: 6.0.3~repack-1
  Version table:
     6.0.3~repack-1 500
        500 http://id.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
> sudo apt install --install-recommends winehq-stable
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-stable : Depends: wine-stable (= 8.0.1~jammy-1)
E: Unable to correct problems, you have held broken packages.

step 5

apt policy winehq-stable
winehq-stable:
  Installed: (none)
  Candidate: 8.0.1~jammy-1
  Version table:
     8.0.1~jammy-1 500
        500 http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04 ./ Packages
> sudo apt install libgd3=2.3.0-2ubuntu2 libgd3:i386=2.3.0-2ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgd3 is already the newest version (2.3.0-2ubuntu2).
The following packages were automatically installed and are no longer required:
  libavif13 libgav1-0 libyuv0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libbrotli1:i386 libbsd0:i386 libdeflate0:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libjbig0:i386
  libjpeg-turbo8:i386 libjpeg8:i386 liblzma5:i386 libmd0:i386 libpng16-16:i386 libtiff5:i386 libuuid1:i386
  libwebp7:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxpm4:i386 libzstd1:i386 zlib1g:i386
Suggested packages:
  libgd-tools:i386
The following NEW packages will be installed:
  libbrotli1:i386 libbsd0:i386 libdeflate0:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libgd3:i386
  libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblzma5:i386 libmd0:i386 libpng16-16:i386 libtiff5:i386
  libuuid1:i386 libwebp7:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxpm4:i386 libzstd1:i386
  zlib1g:i386
0 upgraded, 23 newly installed, 0 to remove and 10 not upgraded.
Need to get 3.327 kB of archives.
After this operation, 8.942 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu jammy/main i386 liblzma5 i386 5.2.5-2ubuntu1 [105 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libuuid1 i386 2.37.2-4ubuntu3 [25,8 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libzstd1 i386 1.4.8+dfsg-3build1 [317 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 zlib1g i386 1:1.2.11.dfsg-2ubuntu9.2 [60,7 kB]
Get:5 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libmd0 i386 1.0.4-1build1 [23,8 kB]
Get:6 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libbsd0 i386 0.11.5-1 [48,3 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 libexpat1 i386 2.4.7-1ubuntu0.2 [92,4 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libpng16-16 i386 1.6.37-3build5 [196 kB]
Get:9 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libxau6 i386 1:1.0.9-1build5 [7.924 B]
Get:10 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libxdmcp6 i386 1:1.1.3-0ubuntu5 [11,4 kB]
Get:11 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libxcb1 i386 1.14-3ubuntu3 [55,4 kB]
Get:12 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libx11-6 i386 2:1.7.5-1 [692 kB]
Get:13 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libbrotli1 i386 1.0.9-2build6 [321 kB]                    
Get:14 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libdeflate0 i386 1.10-2 [62,8 kB]                         
Get:15 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 libfreetype6 i386 2.11.1+dfsg-1ubuntu0.1 [403 kB] 
Get:16 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libfontconfig1 i386 2.13.1-4.2ubuntu5 [140 kB]            
Get:17 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libjpeg-turbo8 i386 2.1.2-0ubuntu1 [143 kB]               
Get:18 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libjpeg8 i386 8c-2ubuntu10 [2.264 B]                      
Get:19 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 libjbig0 i386 2.1-3.1ubuntu0.22.04.1 [29,8 kB]    
Get:20 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libwebp7 i386 1.2.2-2 [216 kB]                            
Get:21 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 libtiff5 i386 4.3.0-6ubuntu0.4 [197 kB]           
Get:22 http://id.archive.ubuntu.com/ubuntu jammy-updates/main i386 libxpm4 i386 1:3.5.12-1ubuntu0.22.04.1 [38,6 kB]  
Get:23 http://id.archive.ubuntu.com/ubuntu jammy/main i386 libgd3 i386 2.3.0-2ubuntu2 [137 kB]                       
Fetched 3.327 kB in 36s (93,4 kB/s)                                                                                  
Selecting previously unselected package liblzma5:i386.
(Reading database ... 337284 files and directories currently installed.)
Preparing to unpack .../00-liblzma5_5.2.5-2ubuntu1_i386.deb ...
Unpacking liblzma5:i386 (5.2.5-2ubuntu1) ...
Selecting previously unselected package libuuid1:i386.
Preparing to unpack .../01-libuuid1_2.37.2-4ubuntu3_i386.deb ...
Unpacking libuuid1:i386 (2.37.2-4ubuntu3) ...
Selecting previously unselected package libzstd1:i386.
Preparing to unpack .../02-libzstd1_1.4.8+dfsg-3build1_i386.deb ...
Unpacking libzstd1:i386 (1.4.8+dfsg-3build1) ...
Selecting previously unselected package zlib1g:i386.
Preparing to unpack .../03-zlib1g_1%3a1.2.11.dfsg-2ubuntu9.2_i386.deb ...
Unpacking zlib1g:i386 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libmd0:i386.
Preparing to unpack .../04-libmd0_1.0.4-1build1_i386.deb ...
Unpacking libmd0:i386 (1.0.4-1build1) ...
Selecting previously unselected package libbsd0:i386.
Preparing to unpack .../05-libbsd0_0.11.5-1_i386.deb ...
Unpacking libbsd0:i386 (0.11.5-1) ...
Selecting previously unselected package libexpat1:i386.
Preparing to unpack .../06-libexpat1_2.4.7-1ubuntu0.2_i386.deb ...
Unpacking libexpat1:i386 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package libpng16-16:i386.
Preparing to unpack .../07-libpng16-16_1.6.37-3build5_i386.deb ...
Unpacking libpng16-16:i386 (1.6.37-3build5) ...
Selecting previously unselected package libxau6:i386.
Preparing to unpack .../08-libxau6_1%3a1.0.9-1build5_i386.deb ...
Unpacking libxau6:i386 (1:1.0.9-1build5) ...
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack .../09-libxdmcp6_1%3a1.1.3-0ubuntu5_i386.deb ...
Unpacking libxdmcp6:i386 (1:1.1.3-0ubuntu5) ...
Selecting previously unselected package libxcb1:i386.
Preparing to unpack .../10-libxcb1_1.14-3ubuntu3_i386.deb ...
Unpacking libxcb1:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libx11-6:i386.
Preparing to unpack .../11-libx11-6_2%3a1.7.5-1_i386.deb ...
Unpacking libx11-6:i386 (2:1.7.5-1) ...
Selecting previously unselected package libbrotli1:i386.
Preparing to unpack .../12-libbrotli1_1.0.9-2build6_i386.deb ...
Unpacking libbrotli1:i386 (1.0.9-2build6) ...
Selecting previously unselected package libdeflate0:i386.
Preparing to unpack .../13-libdeflate0_1.10-2_i386.deb ...
Unpacking libdeflate0:i386 (1.10-2) ...
Selecting previously unselected package libfreetype6:i386.
Preparing to unpack .../14-libfreetype6_2.11.1+dfsg-1ubuntu0.1_i386.deb ...
Unpacking libfreetype6:i386 (2.11.1+dfsg-1ubuntu0.1) ...
Selecting previously unselected package libfontconfig1:i386.
Preparing to unpack .../15-libfontconfig1_2.13.1-4.2ubuntu5_i386.deb ...
Unpacking libfontconfig1:i386 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libjpeg-turbo8:i386.
Preparing to unpack .../16-libjpeg-turbo8_2.1.2-0ubuntu1_i386.deb ...
Unpacking libjpeg-turbo8:i386 (2.1.2-0ubuntu1) ...
Selecting previously unselected package libjpeg8:i386.
Preparing to unpack .../17-libjpeg8_8c-2ubuntu10_i386.deb ...
Unpacking libjpeg8:i386 (8c-2ubuntu10) ...
Selecting previously unselected package libjbig0:i386.
Preparing to unpack .../18-libjbig0_2.1-3.1ubuntu0.22.04.1_i386.deb ...
Unpacking libjbig0:i386 (2.1-3.1ubuntu0.22.04.1) ...
Selecting previously unselected package libwebp7:i386.
Preparing to unpack .../19-libwebp7_1.2.2-2_i386.deb ...
Unpacking libwebp7:i386 (1.2.2-2) ...
Selecting previously unselected package libtiff5:i386.
Preparing to unpack .../20-libtiff5_4.3.0-6ubuntu0.4_i386.deb ...
Unpacking libtiff5:i386 (4.3.0-6ubuntu0.4) ...
Selecting previously unselected package libxpm4:i386.
Preparing to unpack .../21-libxpm4_1%3a3.5.12-1ubuntu0.22.04.1_i386.deb ...
Unpacking libxpm4:i386 (1:3.5.12-1ubuntu0.22.04.1) ...
Selecting previously unselected package libgd3:i386.
Preparing to unpack .../22-libgd3_2.3.0-2ubuntu2_i386.deb ...
Unpacking libgd3:i386 (2.3.0-2ubuntu2) ...
Setting up libexpat1:i386 (2.4.7-1ubuntu0.2) ...
Setting up libzstd1:i386 (1.4.8+dfsg-3build1) ...
Setting up libxau6:i386 (1:1.0.9-1build5) ...
Setting up liblzma5:i386 (5.2.5-2ubuntu1) ...
Setting up libbrotli1:i386 (1.0.9-2build6) ...
Setting up libdeflate0:i386 (1.10-2) ...
Setting up zlib1g:i386 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libjbig0:i386 (2.1-3.1ubuntu0.22.04.1) ...
Setting up libpng16-16:i386 (1.6.37-3build5) ...
Setting up libuuid1:i386 (2.37.2-4ubuntu3) ...
Setting up libjpeg-turbo8:i386 (2.1.2-0ubuntu1) ...
Setting up libwebp7:i386 (1.2.2-2) ...
Setting up libmd0:i386 (1.0.4-1build1) ...
Setting up libbsd0:i386 (0.11.5-1) ...
Setting up libjpeg8:i386 (8c-2ubuntu10) ...
Setting up libxdmcp6:i386 (1:1.1.3-0ubuntu5) ...
Setting up libxcb1:i386 (1.14-3ubuntu3) ...
Setting up libfreetype6:i386 (2.11.1+dfsg-1ubuntu0.1) ...
Setting up libx11-6:i386 (2:1.7.5-1) ...
Setting up libtiff5:i386 (4.3.0-6ubuntu0.4) ...
Setting up libfontconfig1:i386 (2.13.1-4.2ubuntu5) ...
Setting up libxpm4:i386 (1:3.5.12-1ubuntu0.22.04.1) ...
Setting up libgd3:i386 (2.3.0-2ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for doc-base (0.11.1) ...

step 6

sudo apt install winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavif13 libgav1-0 libyuv0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gstreamer1.0-plugins-base:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386
  libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libblkid1:i386
  libbz2-1.0:i386 libcairo2:i386 libcap2:i386 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386
  libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdb5.3:i386 libdbus-1-3:i386 libdecor-0-0:i386
  libdecor-0-plugin-1-cairo:i386 libdrm2:i386 libdw1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libffi8:i386
  libflac8:i386 libfribidi0:i386 libgbm1:i386 libgcrypt20:i386 libgdbm-compat4:i386 libgdbm6:i386 libglapi-mesa:i386
  libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgmp10:i386 libgnutls30:i386 libgpg-error0:i386
  libgphoto2-6:i386 libgphoto2-port12:i386 libgpm2:i386 libgraphite2-3:i386 libgsm1:i386
  libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu70:i386
  libieee1284-3:i386 libjack-jackd2-0:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386
  liblz4-1:i386 libmount1:i386 libncurses6:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386 libnss3:i386
  libodbc1:i386 libodbc2:i386 libodbccr2:i386 libogg0:i386 libopengl0:i386 libopenjp2-7:i386 libopus0:i386
  liborc-0.4-0:i386 libosmesa6:i386 libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386
  libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libpcre2-8-0:i386 libpcre3:i386 libperl5.34:i386
  libpixman-1-0:i386 libpoppler-glib8:i386 libpoppler118:i386 libpsl5:i386 libpulse0:i386 librtmp1:i386
  libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386
  libsdl2-2.0-0:i386 libselinux1:i386 libsensors5:i386 libsndfile1:i386 libsnmp40:i386 libsqlite3-0:i386
  libssh-4:i386 libstdc++6:i386 libsystemd0:i386 libtasn1-6:i386 libthai0:i386 libtheora0:i386 libtinfo6:i386
  libudev1:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386
  libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386
  libwayland-server0:i386 libwrap0:i386 libx11-xcb1:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcomposite1:i386
  libxcursor1:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxml2:i386
  libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1:i386 wine-stable
  wine-stable-amd64 wine-stable-i386:i386
Suggested packages:
  gvfs:i386 rng-tools:i386 gdbm-l10n:i386 gphoto2:i386 gpm:i386 libvisual-0.4-plugins:i386 gstreamer1.0-tools:i386
  jackd2:i386 cryptsetup-bin:i386 odbc-postgresql:i386 tdsodbc:i386 opus-tools:i386 hplip:i386
  libsasl2-modules-gssapi-mit:i386 | libsasl2-modules-gssapi-heimdal:i386 libsasl2-modules-ldap:i386
  libsasl2-modules-otp:i386 libsasl2-modules-sql:i386 lm-sensors:i386 opencl-icd:i386
Recommended packages:
  sane-airscan:i386
The following NEW packages will be installed:
  gstreamer1.0-plugins-base:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386
  libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libblkid1:i386
  libbz2-1.0:i386 libcairo2:i386 libcap2:i386 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386
  libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdb5.3:i386 libdbus-1-3:i386 libdecor-0-0:i386
  libdecor-0-plugin-1-cairo:i386 libdrm2:i386 libdw1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libffi8:i386
  libflac8:i386 libfribidi0:i386 libgbm1:i386 libgcrypt20:i386 libgdbm-compat4:i386 libgdbm6:i386 libglapi-mesa:i386
  libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgmp10:i386 libgnutls30:i386 libgpg-error0:i386
  libgphoto2-6:i386 libgphoto2-port12:i386 libgpm2:i386 libgraphite2-3:i386 libgsm1:i386
  libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu70:i386
  libieee1284-3:i386 libjack-jackd2-0:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386
  liblz4-1:i386 libmount1:i386 libncurses6:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386 libnss3:i386
  libodbc1:i386 libodbc2:i386 libodbccr2:i386 libogg0:i386 libopengl0:i386 libopenjp2-7:i386 libopus0:i386
  liborc-0.4-0:i386 libosmesa6:i386 libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386
  libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libpcre2-8-0:i386 libpcre3:i386 libperl5.34:i386
  libpixman-1-0:i386 libpoppler-glib8:i386 libpoppler118:i386 libpsl5:i386 libpulse0:i386 librtmp1:i386
  libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386
  libsdl2-2.0-0:i386 libselinux1:i386 libsensors5:i386 libsndfile1:i386 libsnmp40:i386 libsqlite3-0:i386
  libssh-4:i386 libstdc++6:i386 libsystemd0:i386 libtasn1-6:i386 libthai0:i386 libtheora0:i386 libtinfo6:i386
  libudev1:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386
  libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386
  libwayland-server0:i386 libwrap0:i386 libx11-xcb1:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcomposite1:i386
  libxcursor1:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxml2:i386
  libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1:i386 wine-stable
  wine-stable-amd64 wine-stable-i386:i386 winehq-stable
0 upgraded, 141 newly installed, 0 to remove and 12 not upgraded.
Need to get 264 MB/290 MB of archives.
After this operation, 1.673 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

finally solve

wine --version
wine-8.0.1
> wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

problem 11

in some case i want remove manual wine shorcut apps

"As the other answer says, the menu items are in ~/.local/share/applications/. (By the way, in Kubuntu, the equivalent of alacarte to edit the start menu is: right-click the 'K' Kickoff Application Launcher icon in the panel, and choose Edit Applications...)

But for completeness here are some other places where Wine also seems to add program info for WINDOWSPROGNAME:

~/.config/menus/applications-merged/wine-Programs-WINDOWSPROGNAME.menu references various .desktop entries, I think to create a Wine submenu. ~/Desktop/WINDOWSPROGNAME.desktop give the program an icon on your desktop. ~/.local/share/desktop-directories/wine-WINDOWSPROGNAME.directory gives the program a folder on your desktop. ~/.wine/drive_c/users/YOUR_USERNAME/Start Menu/Programs is Wine's internal simulation of the Windows start menu.

"

problem 12

some case i try install pipx but not update in zsh shell and can't call

export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/bin"

problem 13

how to register apps .desktop in ubuntu ?

this location 'registered as a desktop app for this user in ~/.local/share/applications/'

just copy the file .desktop to the path and see like that's

-rwx--x--x  1 nagara nagara  1918 Mei  2 16:48 start-tor-browser.desktop

Note: If this command fails to run, you probably need to make the file executable. From within this directory run: chmod +x start-tor-browser.desktop

problem 13

i cant' connect to the internet at some wifi

cd /etc/netplan
ls
01-netcfg.yaml  01-network-manager-all.yaml
sudo nano 01-netcfg.yaml

and edit from this

network:
  ethernets:
    enp0s3:
      dhcp4: false
      dhcp6: false
  # add configuration for bridge interface
  bridges:
    br0:
      interfaces: [enp0s3]
      dhcp4: false
      addresses: [192.168.1.162/24]
      macaddress: 08:00:27:4b:1d:45
      routes:
        - to: default
          via: 192.168.1.1
          metric: 100
      nameservers:
        addresses: [4.2.2.2]
      parameters:
        stp: false
      dhcp6: false
  version: 2

to this

network:
  ethernets:
    enp0s3:
      dhcp4: true
      dhcp6: false
  # add configuration for bridge interface
  bridges:
    br0:
      interfaces: [enp0s3]
      dhcp4: true
      addresses: [192.168.1.162/24]
      macaddress: 08:00:27:4b:1d:45
      routes:
        - to: default
          via: 192.168.1.1
          metric: 100
      nameservers:
        addresses: [4.2.2.2]
      parameters:
        stp: false
      dhcp6: false
  version: 2

after thats

sudo netplan generate
sudo netplan apply
ip a
sudo nano /etc/resolv.conf

from this

nameserver 127.0.0.53
options edns0 trust-ad
search .

to this

nameserver 127.0.0.53
nameserver 8.8.8.8
nameserver 8.8.4.4
options edns0 trust-ad
search .

and then

sudo service NetworkManager restart
sudo dhclient wlp3s0

problem 14

add alias to zsh example

eval $(thefuck --alias)

problem 15

update limit php nginx

cd /etc/php5/fpm
sudo nano php.ini

and find this text and change the value

  • upload_max_filesize
  • post_max_size

problem 16

nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-05-30 16:35:09 WIB; 3min 51s ago
       Docs: man:nginx(8)
    Process: 1626623 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1626624 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 31ms

Mei 30 16:35:07 nagara nginx[1626624]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
Mei 30 16:35:07 nagara nginx[1626624]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
Mei 30 16:35:08 nagara nginx[1626624]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
Mei 30 16:35:08 nagara nginx[1626624]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
Mei 30 16:35:08 nagara nginx[1626624]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
Mei 30 16:35:08 nagara nginx[1626624]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
Mei 30 16:35:09 nagara nginx[1626624]: nginx: [emerg] still could not bind()

lol wkwk getting error again

sudo /etc/init.d/apache2 stop
sudo service apache2 stop
sudo systemctl stop apache2
sudo service nginx start

problem 16

i lost my dock haha after try install material shell and unistall that, how to fix this for solution

First, install the Extensions tool (gnome-shell-extension-prefs), load it up and disable the "Ubuntu Dock" extension if it is not already disabled.
Reset the configuration settings of Ubuntu Dock to the factory defaults with the following terminal command: dconf reset -f /org/gnome/shell/extensions/dash-to-dock/
(Likely not needed, but to make sure: log out then back in)
Reenable Ubuntu Dock in the "Extensions" tool. If you do not see Ubuntu Dock in the tool, try restarting first.
This will reset your personal dock configurations. An issue with the current configuration is most likely causing the problems. Ubuntu Dock is derived from the Dash to Dock extension, and shares the same configuration settings.

If problems persist, then there may be an issue at the system level. Then attempt a reinstall of the dock:

Remove with the command sudo apt purge gnome-shell-extension-ubuntu-dock. This will likely also remove the ubuntu-desktop metapackage. Likely not needed, but you could reboot now to be sure.
Reinstall ubuntu-desktop: sudo apt install ubuntu-desktop. This will pull Ubuntu Dock back in
If the event ubuntu-dock does not appear in the desktop environment, restart the system.

and my button mini, and this for solution

gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:"

problem x

bluetooth service is on, but bluetooth gui is off but not working

https://askubuntu.com/questions/1403934/patch-file-not-found-ar3k-athrbt-0x31010000-dfu/1404004#1404004

Download linux-firmware_1.201.tar.xz from http://archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.201.tar.xz (you can visit https://packages.ubuntu.com/impish/linux-firmware for more details).
Extract linux-firmware_1.201.tar.xz and copy the ar3k folder into /lib/firmware.
Restart your computer.

sudo cp -r ar3k /lib/firmware
sudo reboot

here what i do

lspci -knn | grep Net -A3; lsusb; dmesg | grep -i blue
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
	Subsystem: Lite-On Communications Inc Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [11ad:08a6]
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 005: ID 04f2:b571 Chicony Electronics Co., Ltd HD WebCam
Bus 001 Device 004: ID 04ca:3015 Lite-On Technology Corp. Qualcomm Atheros QCA9377 Bluetooth
Bus 001 Device 003: ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader
Bus 001 Device 002: ID 248a:8514 Maxxter Wireless Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg: read kernel buffer failed: Operation not permitted
> sudo dmesg |grep -i bluetooth
[   12.350984] Bluetooth: Core ver 2.22
[   12.357357] NET: Registered PF_BLUETOOTH protocol family
[   12.357362] Bluetooth: HCI device and connection manager initialized
[   12.357367] Bluetooth: HCI socket layer initialized
[   12.357370] Bluetooth: L2CAP socket layer initialized
[   12.357387] Bluetooth: SCO socket layer initialized
[   12.735576] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[   12.845714] Bluetooth: hci0: unexpected cc 0x202f length: 1 < 9
[   12.845759] Bluetooth: hci0: Opcode 0x202f failed: -38
[   13.418512] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.418517] Bluetooth: BNEP filters: protocol multicast
[   13.418521] Bluetooth: BNEP socket layer initialized
> hciconfig
hci0:	Type: Primary  Bus: USB
	BD Address: 98:22:EF:58:29:76  ACL MTU: 1024:8  SCO MTU: 50:8
	DOWN 
	RX bytes:601 acl:0 sco:0 events:33 errors:0
	TX bytes:372 acl:0 sco:0 commands:33 errors:0

> sudo hciconfig -a hci0 up
Can't init device hci0: Function not implemented (38)
> hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: 98:22:EF:58:29:76  ACL MTU: 1024:8  SCO MTU: 50:8
	DOWN 
	RX bytes:1202 acl:0 sco:0 events:66 errors:0
	TX bytes:744 acl:0 sco:0 commands:66 errors:0
	Features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x5b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: PERIPHERAL ACCEPT 

> sudo systemctl restart bluetooth
> hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: 98:22:EF:58:29:76  ACL MTU: 1024:8  SCO MTU: 50:8
	DOWN 
	RX bytes:1202 acl:0 sco:0 events:66 errors:0
	TX bytes:744 acl:0 sco:0 commands:66 errors:0
	Features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x5b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: PERIPHERAL ACCEPT 

> sudo hciconfig hci0 up
Can't init device hci0: Function not implemented (38)
> lsmod | grep bluetooth
bluetooth            1040384  13 btrtl,btmtk,btintel,btbcm,bnep,btusb
ecdh_generic           16384  1 bluetooth
> sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-10-08 17:54:46 WIB; 2min 3s ago
       Docs: man:bluetoothd(8)
   Main PID: 82310 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 38253)
     Memory: 656.0K
        CPU: 93ms
     CGroup: /system.slice/bluetooth.service
             └─82310 /usr/lib/bluetooth/bluetoothd

Okt 08 17:54:46 nagara systemd[1]: Starting Bluetooth service...
Okt 08 17:54:46 nagara bluetoothd[82310]: Bluetooth daemon 5.64
Okt 08 17:54:46 nagara bluetoothd[82310]: Starting SDP server
Okt 08 17:54:46 nagara systemd[1]: Started Bluetooth service.
Okt 08 17:54:46 nagara bluetoothd[82310]: Bluetooth management interface 1.22 initialized

keep not work, btw i use dualboot with windows, some issue cause dualboot, let check bluetooth on windows is active or not, i check bluetooth windows on, loginback ubuntu is still off i check bluetooth windows is off, login back ubuntu is still off

and i found another solution from youtube but not work. https://www.youtube.com/watch?v=PUOuc5t_a3Q

here it's work

1. download ar3k and copy thats the step in the top and reboot
2. reinstall use this command sudo apt install --reinstall bluez gnome-bluetooth indicator-bluetooth pulseaudio-module-bluetooth and reboot
3. last step  on bellow and reboot

last step

sudo systemctl status bluetooth.service

Your Output should be similar to:

 bluetooth.service
 Loaded: masked (Reason: Unit bluetooth.service is masked.)
 Active: inactive (dead)
To fix this,

$ systemctl unmask bluetooth.service

$ sudo systemctl start bluetooth.service

$ sudo rmmod btusb

$ sudo systemctl enable bluetooth

bluetooth.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
$ sudo systemctl status bluetooth.service

bluetooth.service - LSB: Start bluetooth daemons
 Loaded: loaded (/etc/init.d/bluetooth; generated)
 Active: active (exited) since Wed 2022-05-11 22:00:50 +0545; 1min 31>
   Docs: man:systemd-sysv-generator(8)
    CPU: 2ms
$ sudo apt-get remove bluez

$ sudo apt install bluez

These are just for checking:

$ sudo systemctl start bluetooth

$ sudo systemctl status bluetooth.service

bluetooth.service - Bluetooth service
 Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vend>
 Active: active (running) since Wed 2022-05-11 22:08:13 +0545; 1min 2>
   Docs: man:bluetoothd(8)
 Main PID: 84272 (bluetoothd)
 Status: "Running"
  Tasks: 1 (limit: 4525)
 Memory: 692.0K
    CPU: 102ms
 CGroup: /system.slice/bluetooth.service
         └─84272 /usr/lib/bluetooth/bluetoothd
$ sudo apt-get install pulseaudio-module-bluetooth

$ killall pulseaudio

Reboot
sudo services Bluetooth start


it was not working in my case so I opt to reinstall all the software related to Bluetooth.
Doing so solved my issue and the GUI works properly.


To reinstall the software use the command:

sudo apt install --reinstall bluez gnome-bluetooth indicator-bluetooth pulseaudio-module-bluetooth
This command reinstalls all the software that is listed above.


To install the software use the command:
sudo apt install bluez gnome-bluetooth indicator-bluetooth pulseaudio-module-bluetooth

problem x can apt update

sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 5152 (packagekitd)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/

and try this and

sudo service packagekit restart
sudo apt update

problem x

Bluetooth speaker pairs but won`t connect

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

problem x

i have new problem for a some month after update. my netowrk not c=workking normally if i boot, i connect to wifi in my home. i can's access my internet. LOL. i neet manual restart NetworkManager Service and run sudo dhclietn

so i maje some service for auto restart i make this file at Desktop

sudo nano restart_network_manager.sh
sudo chmod +x ./restart_network_manager.sh

and here the script

#!/bin/bash
sleep 3
sudo systemctl restart NetworkManager
sudo dhclient

and make service

cd /etc/systemd/system
sudo nano restart_network_manager.service

here the script services

[Unit]
Description=Restart NetworkManager
After=network.target

[Service]
ExecStart=/home/nagara/Desktop/restart_network_manager.sh

[Install]
WantedBy=default.target

and you can check service is running or not

sudo systemctl status restart_network_manager.service

and enable this

 sudo systemctl enable restart_network_manager.service
 sudo systemctl start restart_network_manager.service

try restart the OS

snap store

is very slow

sudo snap refresh
sudo killall snap-store
sudo snap refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment