Question / Help OBS Studio won't install

lightpower26

New Member
I only got Linux on this PC yesterday, so hang with me here, I have absolutely no knowledge of Linux right now.

I've been trying to install OBS Studio on Linux Mint and it hasn't been working. It seems to say that it successfully installed but I can't find OBS when I search for it in the menu... I've tried this:

Code:
mkdir build && cd build
  cmake -DUNIX_STRUCTURE=0 \
          -DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" ..
  make -j4 && make install

and instead it said this when running the cmake command:

The program 'cmake' is currently not installed. You can install it by typing:
sudo apt install cmake

So I ran the command (after restarting terminal to reset the cd) and this happened:

Code:
The following packages were automatically installed and are no longer required:
  libkf5kipi-data libkipi-data libkipi11
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  cmake-data libcurl3 libjsoncpp1
Suggested packages:
  codeblocks eclipse ninja-build
The following NEW packages will be installed:
  cmake cmake-data libcurl3 libjsoncpp1
0 upgraded, 4 newly installed, 0 to remove and 296 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

"Ok... I'm guessing that means it worked..." So I ran the cmake command again and got the same message. So I found the other part to the installation, which requires ffmpeg, running sudo apt-get install ffmpeg returns this:

Code:
ffmpeg is already the newest version (7:2.8.11-0ubuntu0.16.04.1).
The following packages were automatically installed and are no longer required:
  libkf5kipi-data libkipi-data libkipi11
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded.

So it's already installed, or so it says... so I run the next commands it tells me

Code:
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio

Running the first one returns this:

Code:
You are about to add the following PPA:
Latest stable release of OBS Studio
More info: https://launchpad.net/~obsproject/+archive/ubuntu/obs-studio
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/tmp.cv2mIlvKOU/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
F425E228
gpg: requesting key F425E228 from hkp server keyserver.ubuntu.com
gpg: key F425E228: "Launchpad PPA for obsproject" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Sounds like it worked... next command returns:

Code:
The following packages were automatically installed and are no longer required:
  libkf5kipi-data libkipi-data libkipi11
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcurl3 libfdk-aac0 libxcb-xinerama0
The following NEW packages will be installed:
  libcurl3 libfdk-aac0 libxcb-xinerama0 obs-studio
0 upgraded, 4 newly installed, 0 to remove and 296 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

(There was a bunch of stuff above it but this was the end result it seems)

I'm not sure, but to me it sounds like it installed, but I can't find it anywhere. Did it install? and if so, where?
 

gr78erw

New Member
You're trying to build OBS from source and install it from the PPA at the same time there. You only want to do the PPA thing.

So if you're on Linux Mint 18, all you have to do is
Code:
sudo apt-add-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install ffmpeg obs-studio

That's it, nothing else.
 

Gol D. Ace

Member
His issue seems to be that apt-get thinks it's still running and goes nope.

You can try restarting your pc (if you can't find any apt-get running somewhere)
or if you continue to get Could not get lock

sudo mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock_bak

As soon as your apt-get is normal again do

sudo apt-get update
sudo apt-get install obs-studio

OBS should then show up in Sound & Video (if you use Cinnamon)
ykOMi2t.png
 
Last edited:
Top