I need to add some packages to currently running proxmox that due to strict security does not have ability to reach internet online repo.
I tried to build local repo from .iso file I have but it seem that it is not recognized correctly.
My /etc/apt/sources.list look so:
deb cdrom:[proxmox5.1.3]/ stretch pve
deb cdrom:[proxmox5.1.3]/proxmox/packages/ /
deb file:///media/cdrom/ stretch main contrib
I'v mounted iso used for installation and can read it's contents...
mount -o loop /<path_to>/proxmox-ve_5.1-722cc488-1.iso /media/cdrom
apt-get update spit an error:
W: The repository 'file:/media/cdrom stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I cleaned apt using this:
apt clean
cd /var/lib/apt/
mv lists lists.old
mkdir -p lists/partial
apt update
Got almost the same error:
E: The repository 'file:/media/cdrom stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Did an ugly move:
apt -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
After that I got this:
t# apt-get install openvswitch-switch
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvswitch-switch is already the newest version (2.7.0-2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openvswitch-common : Depends: libatomic1 (>= 4.8) but it is not installable
openvswitch-switch : Depends: net-tools but it is not installable
Depends: uuid-runtime but it is not installable
Depends: libatomic1 (>= 4.8) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@taphost1:/var/lib/apt# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
openvswitch-common openvswitch-switch
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 4380 kB disk space will be freed.
Do you want to continue? [Y/n] Y
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "lv_LV.UTF-8",
LC_ADDRESS = "lv_LV.UTF-8",
LC_TELEPHONE = "lv_LV.UTF-8",
LC_NAME = "lv_LV.UTF-8",
LC_MEASUREMENT = "lv_LV.UTF-8",
LC_IDENTIFICATION = "lv_LV.UTF-8",
LC_NUMERIC = "lv_LV.UTF-8",
LC_PAPER = "lv_LV.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 40279 files and directories currently installed.)
Removing openvswitch-switch (2.7.0-2) ...
Removing openvswitch-common (2.7.0-2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
root@taphost1:/var/lib/apt# apt-get install openvswitch-switch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openvswitch-switch 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
However the following packages replace it:
openvswitch-common
E: Package 'openvswitch-switch' has no installation candidate
root@taphost1:/var/lib/apt# apt-get install openvswitch-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openvswitch-common 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
E: Package 'openvswitch-common' has no installation candidate
So question is - how to install currently missing openvswitch on proxmox host without connection to internet?
I tried to build local repo from .iso file I have but it seem that it is not recognized correctly.
My /etc/apt/sources.list look so:
deb cdrom:[proxmox5.1.3]/ stretch pve
deb cdrom:[proxmox5.1.3]/proxmox/packages/ /
deb file:///media/cdrom/ stretch main contrib
I'v mounted iso used for installation and can read it's contents...
mount -o loop /<path_to>/proxmox-ve_5.1-722cc488-1.iso /media/cdrom
apt-get update spit an error:
W: The repository 'file:/media/cdrom stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I cleaned apt using this:
apt clean
cd /var/lib/apt/
mv lists lists.old
mkdir -p lists/partial
apt update
Got almost the same error:
E: The repository 'file:/media/cdrom stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Did an ugly move:
apt -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
After that I got this:
t# apt-get install openvswitch-switch
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvswitch-switch is already the newest version (2.7.0-2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openvswitch-common : Depends: libatomic1 (>= 4.8) but it is not installable
openvswitch-switch : Depends: net-tools but it is not installable
Depends: uuid-runtime but it is not installable
Depends: libatomic1 (>= 4.8) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@taphost1:/var/lib/apt# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
openvswitch-common openvswitch-switch
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 4380 kB disk space will be freed.
Do you want to continue? [Y/n] Y
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "lv_LV.UTF-8",
LC_ADDRESS = "lv_LV.UTF-8",
LC_TELEPHONE = "lv_LV.UTF-8",
LC_NAME = "lv_LV.UTF-8",
LC_MEASUREMENT = "lv_LV.UTF-8",
LC_IDENTIFICATION = "lv_LV.UTF-8",
LC_NUMERIC = "lv_LV.UTF-8",
LC_PAPER = "lv_LV.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 40279 files and directories currently installed.)
Removing openvswitch-switch (2.7.0-2) ...
Removing openvswitch-common (2.7.0-2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
root@taphost1:/var/lib/apt# apt-get install openvswitch-switch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openvswitch-switch 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
However the following packages replace it:
openvswitch-common
E: Package 'openvswitch-switch' has no installation candidate
root@taphost1:/var/lib/apt# apt-get install openvswitch-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openvswitch-common 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
E: Package 'openvswitch-common' has no installation candidate
So question is - how to install currently missing openvswitch on proxmox host without connection to internet?