I am trying to install Code::blocks on Mint16, but newest version in public repo is old (12.11-3). Is there any way of having newest version?
based on reading screenshots on https://launchpad.net/~pasgui/+archive/ppa/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EE66BD3F599ACE3
grep pasgui /etc/apt/sources.list || echo $'deb http://ppa.launchpad.net/pasgui/ppa/ubuntu saucy main
deb-src http://ppa.launchpad.net/pasgui/ppa/ubuntu saucy main' | sudo tee -a /etc/apt/sources.list
sudo apt-get update --download-only
sudo apt-get install codeblocks
Related
I had tried the following two ways but no luck
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update && apt-get install oracle-java8-installer -y
I get error saying
Unable to find the oracle8-java-installer package
I tried openjdk-8-jdk too but no luck
FROM debian:jessie
RUN echo deb-src http://security.debian.org/ jessie/updates main > /etc/apt/sources.list.d/extra_debian.list >> /etc/apt/sources.list.d/extra_debian.list
RUN apt-get update && apt-get install -y openjdk-8-jdk
Step 9/9 : RUN apt-get install -y openjdk-8-jdk
---> Running in eaf2278dd79f
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk 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
Much appreciated if someone tells me how to install on Ubuntu 16.04.
I've tried this:
Steps I took:
echo "deb http://repo.yandex.ru/clickhouse/trusty stable main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
Errors:
root#c-2:~# sudo apt-get install clickhouse-client clickhouse-server-common
Reading package lists... Done
Building dependency tree
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:
clickhouse-client : Depends: clickhouse-server-base (= 1.1.54245) but it is not going to be installed
clickhouse-server-common : Depends: clickhouse-server-base (= 1.1.54245) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You need to use:
deb http://repo.yandex.ru/clickhouse/xenial stable main
Its literally in the line bellow where you copy pasted from in the docs:
For other Ubuntu versions, replace trusty to xenial or precise.
Version 16.x = xenial
... though it would be nice if they just renamed the paths to 12.x, 14.x and 16.x instead of using code names.
Do like this
echo "deb https://repo.yandex.ru/clickhouse/deb/stable main/" | sudo tee /etc/apt/sources.list.d/clickhouse.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server
I use https which is working. http not working in deb
I'm trying to install java 8 on cloud9 through the webupd8 PPA. So I'm adding the repository
sudo add-apt-repository ppa:webupd8team/java
Next I do the update and finally when I run the command
sudo apt-get install oracle-java8-installer
I get the error
E: Unable to locate package oracle-java8-installer
Any ideas how can I get through that and istall java 8 on cloud9?
As noted by christophetd, I completed the following steps and everything installed without issue:
$ sudo vim /etc/apt/sources.list
Add the following lines of code to the file:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
$ sudo apt-get update
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get install oracle-java8-installer
$ java -version
java version "1.8.0_101"
Add the two following lines to your file /etc/apt/sources.list (which you can create if it does not exist)
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
Then run sudo apt-get update, and you should be able to install oracle-java8-installer.
This basically does the add-apt-repository manually. I suspect the issue is due to the fact that the default source files /etc/apt/sources.list.d/* are mounted as read-only (see for instance this topic on Cloud9 community)
I'm running a script on my ubuntu on openstack (env bash) which is trying to install the latest stable chrome browser:
sudo apt-get update
sudo apt-get -y install openjdk-7-jre google-chrome-stable
But I'm getting --> Unable to locate package google-chrome-stable ubuntu
I tried the following additions but they didn't help:
# trying universe repo
sudo apt-get -y install libgconf2-4 libnss3-1d libxss1
sudo apt-get update
# trying something for openstack
sudo apt-get install ubuntu-cloud-keyring
sudo apt-get update
Will be happy to hear more suggestions.
Setup key with:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Setup repository with:
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
(https://www.ubuntuupdates.org/ppa/google_chrome)
As written in the comment above, The fix is adding:
deb http://dl.google.com/linux/chrome/deb/ stable main to the source file:
sudo sh -c "echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list"
For information chrome is not available on ARM. That is why nothing worked for me here.
First you need to add key:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A040830F7FAC5991
and then you could do:
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
apt-get update && apt-get install -y google-chrome-stable
Without key you are installing unsigned package and because of that you might get problems late.
The existing accepted answer is close but fails to use HTTPS:
Setup key with:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Setup repository with:
sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
(https://www.ubuntuupdates.org/ppa/google_chrome)
If nothing works, try:
$ touch /etc/apt/sources.list
I'm trying to compile libreoffice, to use it "online", i.e: in a web browser (see a demo here: http://www.youtube.com/watch?v=CVR7HqDokmA
).
When running the executable, I get this error:
**Gdk-ERROR **: Unsupported GDK backend: broadway**
These are the steps I do to compile libreoffice on a Ubuntu 11.10 Linux box:
cd /opt
mkdir -p libreoffice
cd libreoffice/
git clone git://anongit.freedesktop.org/libreoffice/core
cd core
cat >> /etc/apt/sources.list << EOT
deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu oneiric main
deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu oneiric main
EOT
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1378B444
sudo apt-get update
sudo apt-get build-dep libreoffice
sudo apt-get install -y libgnomevfs2-dev
sudo apt-get install -y doxygen
./autogen.sh --enable-gtk3 --without-java --disable-mozilla --without-system-mozilla
make
make dev-install
cd install/program;
. ./ooenv;
export SAL_USE_VCLPLUGIN=gtk3
export GDK_BACKEND=broadway
./soffice --writer
What is the problem here? Is there any other compilation option I can check?
Seems your GTK hasn't been compiled with the broadway backend enabled. Depends on your distro.
As liberforce correctly pointed out, you need a BROADWAY-enabled GTK.
I did just discover ubuntu 12.04 ships with a BROADWAY-enabled GTK...