My system: Ubuntu 14.04.2 amd64
See this:
$ lxc-create --template download --name mycontainer
Setting up the GPG keyring
Downloading the image index
---
DIST RELEASE ARCH VARIANT BUILD
---
centos 6 amd64 default 20150415_02:16
centos 6 i386 default 20150415_02:16
debian wheezy amd64 default 20150414_22:42
debian wheezy armel default 20150412_22:42
debian wheezy armhf default 20150414_22:42
debian wheezy i386 default 20150414_22:42
gentoo current amd64 default 20150414_14:12
gentoo current armhf default 20150414_14:12
gentoo current i386 default 20150414_14:12
oracle 6.5 amd64 default 20150415_11:40
oracle 6.5 i386 default 20150415_11:40
plamo 5.x amd64 default 20150414_21:36
plamo 5.x i386 default 20150414_21:36
ubuntu precise amd64 default 20150415_03:49
ubuntu precise armel default 20150415_03:49
ubuntu precise armhf default 20150415_03:49
ubuntu precise i386 default 20150415_03:49
ubuntu trusty amd64 default 20150415_03:49
ubuntu trusty armhf default 20150415_03:49
ubuntu trusty i386 default 20150415_03:49
ubuntu trusty ppc64el default 20150415_03:49
ubuntu utopic amd64 default 20150415_03:49
ubuntu utopic armhf default 20150415_03:49
ubuntu utopic i386 default 20150415_03:49
ubuntu utopic ppc64el default 20150415_03:49
---
Now, the same command, but with sudo:
$ sudo lxc-create --template download --name mycontainer
[sudo] password for user:
Setting up the GPG keyring
Downloading the image index
---
DIST RELEASE ARCH VARIANT BUILD
---
centos 6 amd64 default 20150415_02:16
centos 6 i386 default 20150415_02:16
centos 7 amd64 default 20150415_02:16
debian jessie amd64 default 20150414_22:42
debian jessie armel default 20150414_22:42
debian jessie armhf default 20150414_22:42
debian jessie i386 default 20150414_22:42
debian sid amd64 default 20150414_22:42
debian sid armel default 20150412_22:42
debian sid armhf default 20150414_22:42
debian sid i386 default 20150414_22:42
debian wheezy amd64 default 20150414_22:42
debian wheezy armel default 20150412_22:42
debian wheezy armhf default 20150414_22:42
debian wheezy i386 default 20150414_22:42
fedora 19 amd64 default 20150415_01:27
fedora 19 armhf default 20150415_01:27
fedora 19 i386 default 20150415_01:27
fedora 20 amd64 default 20150415_01:27
fedora 20 armhf default 20150415_01:27
fedora 20 i386 default 20150415_01:27
gentoo current amd64 default 20150414_14:12
gentoo current armhf default 20150414_14:12
gentoo current i386 default 20150414_14:12
oracle 6.5 amd64 default 20150415_11:40
oracle 6.5 i386 default 20150415_11:40
plamo 5.x amd64 default 20150414_21:36
plamo 5.x i386 default 20150414_21:36
ubuntu precise amd64 default 20150415_03:49
ubuntu precise armel default 20150415_03:49
ubuntu precise armhf default 20150415_03:49
ubuntu precise i386 default 20150415_03:49
ubuntu trusty amd64 default 20150415_03:49
ubuntu trusty armhf default 20150415_03:49
ubuntu trusty i386 default 20150415_03:49
ubuntu trusty ppc64el default 20150415_03:49
ubuntu utopic amd64 default 20150415_03:49
ubuntu utopic armhf default 20150415_03:49
ubuntu utopic i386 default 20150415_03:49
ubuntu utopic ppc64el default 20150415_03:49
ubuntu vivid amd64 default 20150415_03:49
ubuntu vivid armhf default 20150415_03:49
ubuntu vivid i386 default 20150415_03:49
ubuntu vivid ppc64el default 20150415_03:49
---
Seems like there are some images not available to use for unprivileged containers (like CentOS 7). How could I use the full list of images with my own user? I don't like to use privileged containers.
There are two different lists, one for privileged containers (system) and one for unprivileged containers (user). You can see the lists here: https://images.linuxcontainers.org/meta/1.0/. I assume that the reason there are two lists is because certain containers don't work with unprivileged LXC. If that's true then it's pointless to see those containers since you can't use them.
Related
Update2
Okay, I've rebuilt the Ubuntu server from scratch and the problem still exists. This is how I am doing it.
Create a virtual machine in ESXI with two disk volumes. The first is 50GB and the second is 250GB.
Run the Ubuntu 22.04 LTS install
Create a static IP address
Create two LVM volumes, the 50GB is root and the 350GB is mounted as /var
Select Docker and Prometheus to be installed along with Ubuntu
Let the install run to completion.
Unmount the CD rom when finished and reboot Ubuntu
Login and then sudo bash
docker pull ubuntu
docker run -it ubuntu
apt-get update
apt-get install -y python3
You should get the error
I am running a new/fresh Ubuntu Docker image on a 22.04 LTS Ubuntu server instance. Docker was installed during the Ubuntu 22.04 LTS install. It is a new Ubuntu 22.04 LTS install.
I'm using docker version 20.10.17, build 100c70180f.
I am having trouble getting python3 installed in the running docker container.
To start off, I get the Ubuntu image running in a container:
docker run -ti ubuntu
In the image I run (as the root user)
apt update
Then I run
apt install python3
The installation fails with:
root#6bfb4be344d6:/# apt-get install python3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8 libsqlite3-0 media-types python3-minimal python3.10 python3.10-minimal readline-common
Suggested packages:
python3-doc python3-tk python3-venv python3.10-venv python3.10-doc binutils binfmt-support readline-doc
The following NEW packages will be installed:
libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8 libsqlite3-0 media-types python3 python3-minimal python3.10 python3.10-minimal readline-common
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 6494 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.6-1~22.04.2 [810 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-minimal amd64 3.10.6-1~22.04.2 [2251 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-minimal amd64 3.10.6-1~22.04 [24.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 readline-common all 8.1.2-1 [53.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libreadline8 amd64 8.1.2-1 [153 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.1 [641 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.6-1~22.04.2 [1832 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10 amd64 3.10.6-1~22.04.2 [497 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-stdlib amd64 3.10.6-1~22.04 [6910 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3 amd64 3.10.6-1~22.04 [22.8 kB]
Fetched 6494 kB in 14s (478 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpython3.10-minimal:amd64.
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../libpython3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package python3.10-minimal.
Preparing to unpack .../python3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
Unpacking python3.10-minimal (3.10.6-1~22.04.2) ...
Setting up libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Setting up python3.10-minimal (3.10.6-1~22.04.2) ...
[Errno 13] Permission denied: '/usr/lib/python3.10/__pycache__/__future__.cpython-310.pyc.139849676216832'dpkg: error processing package python3.10-minimal (--configure):
installed python3.10-minimal package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3.10-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking into the /user/lib/python3.10/__pychache__/ all of the files in the directory are -rw-r--r--
How can the install complain of Permission denied when running as root and the user permissions for every file in the directory is rw?
Update
I upgraded to docker 20.10.22 build 3a2c30b but still am encountering this issue.
I reinstalled Ubuntu 22.04 and this time did not select Docker as one of the packages installed along with Ubuntu. I installed Docker manually after the Ubuntu install completed and after a reboot.
Now it works fine.
I reinstalled ubuntu 22.04 again, just to make sure I could reproduce the problem and indeed, if I select Docker to be installed with Ubuntu, the problem resurfaces.
I am trying to install ffmpeg on my sistem, but for some reason when I do sudo apt install ffmpeg I only get the version 4.1.10-0+deb10u1. This is an issue because one of my apps requires at least version 4.2.7. When running apt list --all-versions ffmpeg I get the following output:
ffmpeg/oldstable,now 7:4.1.10-0+deb10u1 amd64 [installed]
ffmpeg/oldstable 7:4.1.9-0+deb10u1 amd64
I have run sudo apt update and sudo apt upgrade beforehand just in case, but it seems that the only options I have are those. I use Debian GNU/Linux 10 (buster), so I checked on their website and found that there is a stable version 4.3.5 available here. Maybe there Is something I need to update to see this version?
So it seems that adding a new source fixes the issue.
You basically need to add these two lines in the /etc/apt/sources.list file:
deb http://deb.debian.org/debian/ stable main
deb-src http://deb.debian.org/debian/ stable main
After that apt list --all-versions ffmpeg gave me the desired output:
ffmpeg/stable 7:4.3.5-0+deb11u1 amd64
ffmpeg/oldstable 7:4.1.10-0+deb10u1 amd64
ffmpeg/oldstable 7:4.1.9-0+deb10u1 amd64
after upgrading to ubuntu 20.04 some package remain in +bionic1 version
sudo apt list | grep python3.8
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
idle-python3.8/focal-updates,focal-updates,focal-security,focal-security 3.8.2-1ubuntu1.1 all
libpython3.8-dbg/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
libpython3.8-dbg/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
libpython3.8-dev/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
libpython3.8-dev/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
libpython3.8-minimal/now 3.8.2-1+bionic1 amd64 [installed,local]
libpython3.8-minimal/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
libpython3.8-stdlib/now 3.8.2-1+bionic1 amd64 [installed,local]
libpython3.8-stdlib/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
libpython3.8-testsuite/focal-updates,focal-updates,focal-security,focal-security 3.8.2-1ubuntu1.1 all
libpython3.8/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
libpython3.8/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
python3.8-dbg/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
python3.8-dbg/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
python3.8-dev/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
python3.8-dev/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
python3.8-doc/focal-updates,focal-updates,focal-security,focal-security 3.8.2-1ubuntu1.1 all
python3.8-examples/focal-updates,focal-updates,focal-security,focal-security 3.8.2-1ubuntu1.1 all
python3.8-minimal/now 3.8.2-1+bionic1 amd64 [installed,local]
python3.8-minimal/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
python3.8-venv/focal-updates,focal-security 3.8.2-1ubuntu1.1 amd64
python3.8-venv/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
python3.8/now 3.8.2-1+bionic1 amd64 [installed,local]
python3.8/focal-updates,focal-security 3.8.2-1ubuntu1.1 i386
as you can see above python3.8-minimal/now 3.8.2-1+bionic1 amd64 [installed,local] remain in bionic version if I want to purge and install python3.8 then many dependency will removed too and this may cause break my OS how can I push ubuntu to switch all install +bionic1 package to focal version ubuntu1.1 or ubuntu1
Ultimately, the maintainers probably need to make an upstream patch to the Python packages as the version/epoch parser apparently believes the prefix -1+bionic1 to be newer than -1ubuntu1.1.
In my case, the -1+bionic1 prefix for Python 3.8 came from installing Python 3.8 packages from the deadsnakes PPA and not from the canonical repositories.
That said, I was able to force a "downgrade" to the correct Ubuntu-Focal packages using this command:
sudo apt install libpython3.8:amd64=3.8.2-1ubuntu1.1 libpython3.8-dev:amd64=3.8.2-1ubuntu1.1 libpython3.8-minimal:amd64=3.8.2-1ubuntu1.1 libpython3.8-stdlib:amd64=3.8.2-1ubuntu1.1 python3.8=3.8.2-1ubuntu1.1 python3.8-minimal=3.8.2-1ubuntu1.1
I ran into this issue trying to install other Python libraries like python3-venv after an 18.04->20.04 system upgrade and these packages pinned their dependencies to the 3.8.2-1ubuntu1.1 version.
i was having similar issue while installing vim after upgrade from 18.04 to 20.04. combining pztrick answer and oon arfiandwi comment on accepted answer worked for me
sudo apt install libpython3.8:amd64=3.8.2-1ubuntu1 libpython3.8-dev:amd64=3.8.2-1ubuntu1 libpython3.8-minimal:amd64=3.8.2-1ubuntu1 libpython3.8-stdlib:amd64=3.8.2-1ubuntu1 python3.8=3.8.2-1ubuntu1 python3.8-minimal=3.8.2-1ubuntu1
After running
apt --fix-broken install
I can install vim.
I'm using debian 7.11.
I is said qt5 is not supported by apt-get.
$apt-get install qt4-qmake
it works.
However,
$apt-get install qt5-qmake
E: Unable to locate package qt5-qmake
Is there any work-around way to install qt5 in debian 7?
These are my sources.list
$less /etc/apt/sources.list
deb http://apt.readynas.com/packages/readynasos 6.5.1 updates apps main
deb http://mirrors.kernel.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb http://egnyte-cdn.egnyte.com/storagesync/netgear6/en-us 6.5 egnyte
deb ftp://ftp.nerim.net/debian-marillat/ stable main
Take a look at this gist:
https://gist.github.com/iginosilva/fff315ff3072045e9819b6a268b4fdf2
sudo apt-get install qt5-default
It worked for Ubuntu 16 xenial
qmake --version
QMake version 3.0
Using Qt version 5.6.1 in /usr/lib/x86_64-linux-gnu
Which I think that is the correct qmake. you can check the build input on GitHub:
https://github.com/qt/qtbase/tree/5.6/qmake
At present the latest Qt version seems to be something like 5.11 or better. However one must acknowledge that released packages will (needs be) lag the bleeding edge.
If I saw things correctly, Qt 5 is available in the Jessie repositories
You should either install a debian based on Jessie (so you only use packages from it) or add the repositories from Jessie in your sources.list (copy the lines from stable and change the target to testing), sync and install Qt 5
Change Wheezy example:
deb http://http.debian.net/debian wheezy main
to Jessie:
deb http://http.debian.net/debian jessie main
Hope it helps
Ubuntu/Debian
Red Hat/Fedora/CentOS
Mac OS X
openSUSE
FreeBSD
OpenBSD
Gentoo
I have an application which has been natively packed on the above platforms, how do I know which one to install on my Linux AMI on EC2.
uname -a displays the following
Linux ip-10-315-48-29 3.7.31.31-83.9.amzn1.i686 #1 SMP Sat Feb 18 20:11:16
UTC 2011 i686 i686 i386 GNU/Linux
It's obviously some kind of Linux, so look for a file in /etc that ends in -release or _version:
ls /etc/*-release /etc/*_version
That should help you determine which Linux distribution you have. lsb-release is usually Ubuntu, while fedora-release, redhat-release indicate Fedora, RedHat, or CentOS. You can find a more complete listing here.
Alternatively, you can see if rpm or dpkg are installed by trying to run those commands:
rpm --version
dpkg --version
If dpkg is installed, it's probably Ubuntu/Debian based. If rpm is installed, it's probably RedHat/CentOS or openSUSE based.