NOTE: I am running Linux Mint Sylvia
I am attempting to install lxc
I su'd to root and ran the following command:
Code:
# sudo apt install lxc
Reading package lists... DoneBuilding dependency tree
Reading state information... Done
The following NEW packages will be installed:
lxc
0 upgraded, 1 newly installed, 0 to remove and 453 not upgraded.
Need to get 2,912 B of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 lxc all 3.0.2-0ubuntu4~16.04.1 [2,912 B]
Fetched 2,912 B in 0s (26.0 kB/s)
Selecting previously unselected package lxc.
(Reading database ... 212358 files and directories currently installed.)
Preparing to unpack .../lxc_3.0.2-0ubuntu4~16.04.1_all.deb ...
Unpacking lxc (3.0.2-0ubuntu4~16.04.1) ...
Setting up lxc (3.0.2-0ubuntu4~16.04.1) ...
I THINK THE PROBLEM MIGHT BE HERE: it unpack and sets up lxc but I see no talk about installation, in any case ...
To check if it has been installed I run the following command:
Code:
# lxc -ls
The program 'lxc' is currently not installed. You can install it by typing:
apt install lxd-client
By this stage I am curious so I run the following:
To understand the policy command shown above I took a look at the man page for apt_preferences saw the following:
priority 100 to the version that is already installed (if any) and to the versions coming from archives which in
their Release files are marked as "NotAutomatic: yes" and "ButAutomaticUpgrades: yes" like the Debian
backports archive since squeeze-backports.
priority 500
to the versions that do not belong to the target release.
I interpret the above as saying that all the packages marked as 500 are not part of/not required by lxc?
Only one package has been marked with 100 aka. installed that is /var/lib/dpkg/status?
I decided to try another means to determine if the package had been installed:
Code:
# dpkg -l lxc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=======================-================-================-===================================================
ii lxc 3.0.2-0ubuntu4~1 all Transitional package - lxc -> lxc-utils
This also leads me to believe that lxc has been installed.
I am out of ideas so I remove lxc:
Code:
# sudo apt remove lxc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bridge-utils liblxc-common liblxc1 lxc-utils
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
lxc
0 upgraded, 0 newly installed, 1 to remove and 453 not upgraded.
After this operation, 69.6 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 212361 files and directories currently installed.)
Removing lxc (3.0.2-0ubuntu4~16.04.1) ...
I try installing again, same results as shown above, can anyone explain what is going on or what state I am in?
Thank you
Bookmarks