[SOLVED] E: Unable to locate package libglew-dev:i386 (PCSX2 related)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Tropical
Level 2
Level 2
Posts: 52
Joined: Tue Nov 05, 2013 7:26 am

[SOLVED] E: Unable to locate package libglew-dev:i386 (PCSX2 related)

Post by Tropical »

I am trying to install PCSX2.

Following the PCSX2 GitHub step "32-bit libraries":

Code: Select all

sudo apt install libaio-dev:i386 libbz2-dev:i386 libcggl:i386 libegl1-mesa-dev:i386 libglew-dev:i386 libgles2-mesa-dev:i386 libgtk2.0-dev:i386 libjpeg-dev:i386 libsdl1.2-dev:i386 libwxgtk3.0-gtk3-dev:i386 nvidia-cg-toolkit zlib1g-dev:i386 libsdl2-dev:i386 libjack-jackd2-dev:i386 libportaudiocpp0:i386 portaudio19-dev:i386 liblzma-dev:i386 libsoundtouch-dev:i386 libxml2-dev:i386 libpcap0.8-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libglew-dev:i386

PS:
I recently managed to successfully do the step "Build system" (instead of receiving the "broken packages" error) by "aptituding" as in this issue:

Code: Select all

sudo aptitude install libc6-dev=2.31-0ubuntu9.2
The following packages will be DOWNGRADED:
  libc6-dev{b} 
The following NEW packages will be installed:
  gcc-10-base:i386{a} libc-dev-bin:i386{ab} libc6:i386{ab} libcrypt1:i386{a} libgcc-s1:i386{a} 
  libidn2-0:i386{a} libunistring2:i386{a} 
0 packages upgraded, 7 newly installed, 1 downgraded, 0 to remove and 1 not upgraded.
Need to get 5,754 kB of archives. After unpacking 15.7 MB will be used.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is installed
 libc6 : Breaks: libc6:i386 (!= 2.31-0ubuntu9.3) but 2.31-0ubuntu9.2 is to be installed
 libc6:i386 : Breaks: libc6 (!= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is installed
 libc-dev-bin : Conflicts: libc-dev-bin:i386 but 2.31-0ubuntu9.2 is to be installed
 libc-dev-bin:i386 : Conflicts: libc-dev-bin but 2.31-0ubuntu9.3 is installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version:                    
1)     libc-dev-bin:i386 [Not Installed]                                      

     Downgrade the following packages:                                        
2)     libc-dev-bin [2.31-0ubuntu9.3 (now) -> 2.31-0ubuntu9.2 (focal-updates)]
3)     libc6 [2.31-0ubuntu9.3 (now) -> 2.31-0ubuntu9.2 (focal-updates)]       
4)     libc6-dbg [2.31-0ubuntu9.3 (now) -> 2.31-0ubuntu9.2 (focal-updates)]   



Accept this solution? [Y/n/q/?] Y
FYI, I am trying to install PCSX2 by extracting the package in desktop, but I am having another problem there.
---
Linux Mint 20.2 Cinnamon
Kernel 5.11.0-36-generic
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User details:
non-native English speaker

System details:
Linux Mint 20.2 Cinnamon
Kernel 5.11.0-36-generic
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: E: Unable to locate package libglew-dev:i386 (PCSX2 related)

Post by 1000 »

Code: Select all

# apt-get -s install pcsx2: i386
Reading package lists ... Done
Building a dependency tree
Reading status information ... Done
Some packages could not be installed. This could mean
that an impossible situation was requested or an unstable distribution was used
in which some packages have not yet been created or moved
from the Incoming directory.
The following information may help resolve the situation:

The following packages have unmet dependencies:
  pcsx2: i386: Requires: libportaudio2: i386 (> = 19 + svn20101113) but it will not be installed
               It recommends: libasound2-plugins: i386 but will not be installed
E: Could not fix problems, corrupt packages stopped.

Code: Select all

# apt-get -s install libasound2-plugins: i386
Reading package lists ... Done
Building a dependency tree
Reading status information ... Done
The following packages were installed automatically and are no longer required:
  linux-headers-5.11.0-27-generic linux-headers-5.11.0-27-lowlatency
  linux-headers-5.4.0-84 linux-headers-5.4.0-84-generic
  linux-headers-5.4.0-84-lowlatency linux-hwe-5.11-headers-5.11.0-27
  linux-image-5.11.0-27-generic linux-image-5.11.0-27-lowlatency
  linux-image-5.4.0-84-generic linux-image-5.4.0-84-lowlatency
  linux-modules-5.11.0-27-generic linux-modules-5.11.0-27-lowlatency
  linux-modules-5.4.0-84-generic linux-modules-5.4.0-84-lowlatency
  linux-modules-extra-5.11.0-27-generic linux-modules-extra-5.4.0-84-generic
  linux-tools-5.4.0-84 linux-tools-5.4.0-84-generic
To remove them, use "sudo apt autorove".
The following additional packages will be installed:
  libjack0: i386 libsamplerate0: i386
Suggested packages:
  jackd1: i386
The following NEW packages will be installed:
  libasound2-plugins: i386 libjack0: i386 libsamplerate0: i386
0 upgraded, 3 newly installed, 0 removed and 0 not updated.
Inst libjack0: i386 (1: 0.125.0-3build2 Ubuntu: 20.04 / focal [i386])
Inst libsamplerate0: i386 (0.1.9-2 Ubuntu: 20.04 / focal [i386])
Inst libasound2-plugins: i386 (1.2.2-1ubuntu1 Ubuntu: 20.04 / focal [i386])
Conf libjack0: i386 (1: 0.125.0-3build2 Ubuntu: 20.04 / focal [i386])
Conf libsamplerate0: i386 (0.1.9-2 Ubuntu: 20.04 / focal [i386])
Conf libasound2-plugins: i386 (1.2.2-1ubuntu1 Ubuntu: 20.04 / focal [i386]) 
So I installed first libasound2-plugins:i386
then I installed pcsx2:i386

I am unable to say why these packages are corrupted
and why they can be installed anyway.

Edit
Option " -s " I used for simulation only. ( it won't install )

###############################

Edit
https://github.com/PCSX2/pcsx2/wiki/Ins ... 2004-64bit
Note that there you have several guides.
From " inxi -Fxxxrz " I see you have 64 bit ( x86_64 bits ) system
So the first tutorial is not for you.
When you have next tutorial on the same website " How to compile PCSX2 in 2021 (Ubuntu 20.04) (64bit)"
then libglew-dev:i386 not exist.

However try not build and install.
Don't do trash on your system.
We use the package manager to easily remove packages.

If you really need build package.
Try to find way to build package or install to one folder where you can remove.

I don't know how build .deb package. I used

Code: Select all

checkinstall --install=no
I edited what was there and it build .deb package.
( This command you can use only after compile - for example after compile PCSX2 ( make / cmake )

To change path, you need add path when you build files ( not package )
for example

Code: Select all

./autogen.sh --prefix=/home/your_user_name/bin
make
Other example

Code: Select all

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/your_user_name/path/ ..
From terminal command will work if app will in one of paths

Code: Select all

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
You can set own path in ~/.profile

Code: Select all

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin/" ] ; then
    PATH="$HOME/bin:$HOME/bin/bin:$PATH"
fi
However, I no longer use the home directory for packages.
For security reasons.
I use for example /opt folder, but I need check or change file permissions.
https://askubuntu.com/questions/195652/ ... ux-scripts

Edited
A lot of reading :D
It's not everything. You might want to look in

Code: Select all

man command_name

Code: Select all

command_name --help
Edit
Small correction
Maybe not " file_name --help " but

Code: Select all

app_name --help
I will give such an example.
There you have file CMakeLists.txt which is used to compile by cmake app
And when you trying like this

Code: Select all

$ mkdir build

$ cmake .. --help
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>
  cmake [options] -S <path-to-source> -B <path-to-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.
...
then you have options ( help ) for compile and are from CMakeLists.txt file.

But if you tried

Code: Select all

cmake --help
then you have options ( help ) from cmake app.
Developer can use this probably to build CMakeLists.txt file.

So, they are two different things
Edit
Here with cmake I'm not sure. Maybe I'm saying something wrong.
cmake .. --help and cmake --help the output looks the same.
However after

Code: Select all

cd build
cmake ..
in build folder is created CMakeCache.txt file, which you can check.
For example there is CMAKE_INSTALL_PREFIX:PATH=/usr/local
Last edited by 1000 on Tue Sep 28, 2021 12:19 pm, edited 2 times in total.
Tropical
Level 2
Level 2
Posts: 52
Joined: Tue Nov 05, 2013 7:26 am

Re: E: Unable to locate package libglew-dev:i386 (PCSX2 related)

Post by Tropical »

A lot to read indeed, but nice guided homework. Thank you for the cross-post replies!

I indeed got confused in those tutorials, I did not notice that there are separate ones so I chose the wrong one.
I guess after installing successfully PCSX2 I can mark this thread as solved.

There are plenty of things that ATM require my study, including the difference between (building) packages and files.

Regarding the PCSX2 installation...in my system, the simulation looks good, no broken packages or unmet dependencies (just about 600Mb of un-required, previously installed, packages):

Code: Select all

$ apt-get -s install pcsx2
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-wine gstreamer1.0-plugins-good:i386 gstreamer1.0-x:i386 libaa1:i386 libavc1394-0:i386 libcaca0:i386 libdv4:i386 libgstreamer-plugins-good1.0-0:i386 libgudev-1.0-0:i386 libiec61883-0:i386 libraw1394-11:i386 libshout3:i386
  libslang2:i386 libtag1v5:i386 libtag1v5-vanilla:i386 libwine:i386 libxv1:i386 linux-headers-5.4.0-86 linux-headers-5.4.0-86-generic linux-image-5.4.0-86-generic linux-modules-5.4.0-86-generic linux-modules-extra-5.4.0-86-generic
  python-is-python2 wine32:i386
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libaio1:i386 libatk-bridge2.0-0:i386 libatk1.0-0:i386 libatspi2.0-0:i386 libcolord2:i386 libepoxy0:i386 libgtk-3-0:i386 libice6:i386 libjson-glib-1.0-0:i386 libnotify4:i386 libportaudio2:i386 librest-0.7-0:i386 libsm6:i386
  libsoundtouch1:i386 libsoup-gnome2.4-1:i386 libwxbase3.0-0v5:i386 libwxgtk3.0-gtk3-0v5:i386
Suggested packages:
  gvfs:i386
The following NEW packages will be installed:
  libaio1:i386 libatk-bridge2.0-0:i386 libatk1.0-0:i386 libatspi2.0-0:i386 libcolord2:i386 libepoxy0:i386 libgtk-3-0:i386 libice6:i386 libjson-glib-1.0-0:i386 libnotify4:i386 libportaudio2:i386 librest-0.7-0:i386 libsm6:i386
  libsoundtouch1:i386 libsoup-gnome2.4-1:i386 libwxbase3.0-0v5:i386 libwxgtk3.0-gtk3-0v5:i386 pcsx2:i386
0 upgraded, 18 newly installed, 0 to remove and 2 not upgraded.
Inst libaio1:i386 (0.3.112-5 Ubuntu:20.04/focal [i386])
Inst libatk1.0-0:i386 (2.35.1-1ubuntu2 Ubuntu:20.04/focal [i386])
Inst libatspi2.0-0:i386 (2.36.0-2 Ubuntu:20.04/focal [i386])
Inst libatk-bridge2.0-0:i386 (2.34.2-0ubuntu2~20.04.1 Ubuntu:20.04/focal-updates [i386])
Inst libcolord2:i386 (1.4.4-2 Ubuntu:20.04/focal [i386])
Inst libepoxy0:i386 (1.5.4-1 Ubuntu:20.04/focal [i386])
Inst libjson-glib-1.0-0:i386 (1.4.4-2ubuntu2 Ubuntu:20.04/focal [i386])
Inst libsoup-gnome2.4-1:i386 (2.70.0-1 Ubuntu:20.04/focal [i386])
Inst librest-0.7-0:i386 (0.8.1-1 Ubuntu:20.04/focal [i386])
Inst libgtk-3-0:i386 (3.24.20-0ubuntu1 Ubuntu:20.04/focal-updates [i386])
Inst libice6:i386 (2:1.0.10-0ubuntu1 Ubuntu:20.04/focal [i386])
Inst libnotify4:i386 (0.7.9-1ubuntu2 Ubuntu:20.04/focal [i386])
Inst libportaudio2:i386 (19.6.0-1build1 Ubuntu:20.04/focal [i386])
Inst libsm6:i386 (2:1.2.3-1 Ubuntu:20.04/focal [i386])
Inst libsoundtouch1:i386 (2.1.2+ds1-1build1 Ubuntu:20.04/focal [i386])
Inst libwxbase3.0-0v5:i386 (3.0.4+dfsg-15build1 Ubuntu:20.04/focal [i386])
Inst libwxgtk3.0-gtk3-0v5:i386 (3.0.4+dfsg-15build1 Ubuntu:20.04/focal [i386])
Inst pcsx2:i386 (1.5.0~gfc1d9aef0+dfsg-2 Ubuntu:20.04/focal [i386])
Conf libaio1:i386 (0.3.112-5 Ubuntu:20.04/focal [i386])
Conf libatk1.0-0:i386 (2.35.1-1ubuntu2 Ubuntu:20.04/focal [i386])
Conf libatspi2.0-0:i386 (2.36.0-2 Ubuntu:20.04/focal [i386])
Conf libatk-bridge2.0-0:i386 (2.34.2-0ubuntu2~20.04.1 Ubuntu:20.04/focal-updates [i386])
Conf libcolord2:i386 (1.4.4-2 Ubuntu:20.04/focal [i386])
Conf libepoxy0:i386 (1.5.4-1 Ubuntu:20.04/focal [i386])
Conf libjson-glib-1.0-0:i386 (1.4.4-2ubuntu2 Ubuntu:20.04/focal [i386])
Conf libsoup-gnome2.4-1:i386 (2.70.0-1 Ubuntu:20.04/focal [i386])
Conf librest-0.7-0:i386 (0.8.1-1 Ubuntu:20.04/focal [i386])
Conf libgtk-3-0:i386 (3.24.20-0ubuntu1 Ubuntu:20.04/focal-updates [i386])
Conf libice6:i386 (2:1.0.10-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libnotify4:i386 (0.7.9-1ubuntu2 Ubuntu:20.04/focal [i386])
Conf libportaudio2:i386 (19.6.0-1build1 Ubuntu:20.04/focal [i386])
Conf libsm6:i386 (2:1.2.3-1 Ubuntu:20.04/focal [i386])
Conf libsoundtouch1:i386 (2.1.2+ds1-1build1 Ubuntu:20.04/focal [i386])
Conf libwxbase3.0-0v5:i386 (3.0.4+dfsg-15build1 Ubuntu:20.04/focal [i386])
Conf libwxgtk3.0-gtk3-0v5:i386 (3.0.4+dfsg-15build1 Ubuntu:20.04/focal [i386])
Conf pcsx2:i386 (1.5.0~gfc1d9aef0+dfsg-2 Ubuntu:20.04/focal [i386])

I will have a deeper look at the whole and update here the results.
EDIT: installation successful. Marking the thread as solved.

About the security and choice of folders...
That is all new as well to me, and I recently read that (slightly off-topic warning) Wine should not be launched as root, because gives the Win-based software (virus included) full rights. I am currently studying whether logging in with the admin profile means automatically full rights to launched software (i.e. an emulator), or the software is "dangerous" only if explicitly launched as root/admin in terminal (i.e. sudo)
User details:
non-native English speaker

System details:
Linux Mint 20.2 Cinnamon
Kernel 5.11.0-36-generic
Locked

Return to “Software & Applications”