error creating new kernel in AMLs notebook - azure-machine-learning-service

i am attempting to create a new kernel in an AMLs notebook. It turns out that it doesn’t matter which kernel I am trying to create, because it doesn't get that far. ☹
i am following the steps here: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-access-terminal#add-new-kernels
my full terminal session text is below.
the error i get is:
InvalidArchiveError('Error with archive /anaconda/pkgs/_openmp_mutex-4.5-1_gnu.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCould not unlink')
thanks for any suggestions or pointers.
Welcome to Azure Machine Learning Terminal
Type "git clone [url]" to clone a repo
Type "git --help" to learn about Git CLI
Type "az ml --help" to learn about Azure ML CLI
azureuser#qnotebook:/mnt/batch/tasks/shared/LS_root/mounts/clusters/qnotebook/code$ cd ~/cloudfiles/code/Users/delbertm/amls-qc
azureuser#qnotebook:~/cloudfiles/code/Users/delbertm/amls-qc$
azureuser#qnotebook:~/cloudfiles/code/Users/delbertm/amls-qc$ conda create --name qsharp-env
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.9.2
latest version: 4.10.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /anaconda/envs/qsharp-env
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate qsharp-env
#
# To deactivate an active environment, use
#
# $ conda deactivate
azureuser#qnotebook:~/cloudfiles/code/Users/delbertm/amls-qc$ conda activate qsharp-env
(qsharp-env) azureuser#qnotebook:~/cloudfiles/code/Users/delbertm/amls-qc$ conda install pip
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.9.2
latest version: 4.10.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /anaconda/envs/qsharp-env
added / updated specs:
- pip
The following packages will be downloaded:
package | build
---------------------------|-----------------
_openmp_mutex-4.5 | 1_gnu 22 KB
ca-certificates-2021.5.25 | h06a4308_1 112 KB
certifi-2021.5.30 | py39h06a4308_0 139 KB
ld_impl_linux-64-2.35.1 | h7274673_9 586 KB
libffi-3.3 | he6710b0_2 50 KB
libgcc-ng-9.3.0 | h5101ec6_17 4.8 MB
libgomp-9.3.0 | h5101ec6_17 311 KB
libstdcxx-ng-9.3.0 | hd4cf53a_17 3.1 MB
ncurses-6.2 | he6710b0_1 817 KB
pip-21.1.2 | py39h06a4308_0 1.8 MB
python-3.9.5 | h12debd9_4 22.6 MB
readline-8.1 | h27cfd23_0 362 KB
setuptools-52.0.0 | py39h06a4308_0 724 KB
sqlite-3.35.4 | hdfb4753_0 981 KB
tk-8.6.10 | hbc83047_0 3.0 MB
tzdata-2020f | h52ac0ba_0 113 KB
wheel-0.36.2 | pyhd3eb1b0_0 33 KB
xz-5.2.5 | h7b6447c_0 341 KB
zlib-1.2.11 | h7b6447c_3 103 KB
------------------------------------------------------------
Total: 39.9 MB
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
ca-certificates pkgs/main/linux-64::ca-certificates-2021.5.25-h06a4308_1
certifi pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
pip pkgs/main/linux-64::pip-21.1.2-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.5-h12debd9_4
readline pkgs/main/linux-64::readline-8.1-h27cfd23_0
setuptools pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
sqlite pkgs/main/linux-64::sqlite-3.35.4-hdfb4753_0
tk pkgs/main/linux-64::tk-8.6.10-hbc83047_0
tzdata pkgs/main/noarch::tzdata-2020f-h52ac0ba_0
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Proceed ([y]/n)? y
Downloading and Extracting Packages
_openmp_mutex-4.5 | 22 KB | ########################################################################################################################################################################################################################################8 | 74% WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/lib/libgomp.so.1. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/licenses/LICENSE. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/fortomp/test_fort.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/aligned_alloc.c. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/aligned_alloc.cpp. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/yum_requirements.txt. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/config.old. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc-devel.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/make_tool_links.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/LICENSE. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gdb.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc-no-gomp.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-g++.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/uclibc.config.minimal. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/hello-world.cpp. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-openmp_impl.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgfortran.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/build.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gcc.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/uclibc.config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-binutils.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/c11threads.c. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/conda_build_config.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-duma.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libstdc++.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgomp.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libstdc++-devel.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/meta.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/write_ctng_config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gfortran.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/install-openmp_impl.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/conda_build_config.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/meta.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/test/run_test.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/hash_input.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/run_exports.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/repodata_record.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/about.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/index.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/paths.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/files. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/git. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/lib/libgomp.so.1. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/licenses/LICENSE. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/fortomp/test_fort.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/aligned_alloc.c. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/tests/aligned_alloc.cpp. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/yum_requirements.txt. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/config.old. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc-devel.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/make_tool_links.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/LICENSE. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gdb.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgcc-no-gomp.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-g++.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/uclibc.config.minimal. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/hello-world.cpp. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-openmp_impl.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgfortran.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/build.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gcc.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/uclibc.config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-binutils.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/c11threads.c. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/conda_build_config.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-duma.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libstdc++.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libgomp.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-libstdc++-devel.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/meta.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/write_ctng_config. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/parent/install-gfortran.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/install-openmp_impl.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/conda_build_config.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/recipe/meta.yaml. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/test/run_test.sh. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/hash_input.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/run_exports.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/repodata_record.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/about.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/index.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/paths.json. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/files. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /anaconda/pkgs/_openmp_mutex-4.5-1_gnu/info/git. Please remove this file manually (you may need to reboot to free file handles)
_openmp_mutex-4.5 | 22 KB | ### | 100%
readline-8.1 | 362 KB | ### | 100%
tzdata-2020f | 113 KB | ### | 100%
ncurses-6.2 | 817 KB | ### | 100%
xz-5.2.5 | 341 KB | ### | 100%
pip-21.1.2 | 1.8 MB | ### | 100%
zlib-1.2.11 | 103 KB | ### | 100%
setuptools-52.0.0 | 724 KB | ### | 100%
ca-certificates-2021 | 112 KB | ### | 100%
libgcc-ng-9.3.0 | 4.8 MB | ### | 100%
libgomp-9.3.0 | 311 KB | ### | 100%
libstdcxx-ng-9.3.0 | 3.1 MB | ### | 100%
ld_impl_linux-64-2.3 | 586 KB | ### | 100%
python-3.9.5 | 22.6 MB | ### | 100%
certifi-2021.5.30 | 139 KB | ### | 100%
libffi-3.3 | 50 KB | ### | 100%
sqlite-3.35.4 | 981 KB | ### | 100%
wheel-0.36.2 | 33 KB | ### | 100%
tk-8.6.10 | 3.0 MB | ### | 100%
InvalidArchiveError('Error with archive /anaconda/pkgs/_openmp_mutex-4.5-1_gnu.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCould not unlink')

i was able to get this to work by:
deleting and recreating the Compute Instance
following these instructions:
a. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-access-terminal
b. https://learn.microsoft.com/en-us/azure/quantum/install-jupyter-qdk?tabs=tabid-conda

Related

PhpStorm seems to not allow scss file watching

I have a npm run watch job that uses node-scss to watch scss files and compile them into css files.
I use the PhpStorm IDE on Windows and when I make changes to an scss file, the file watcher (npm run watch) does not seem to recognise them. However if I open this same scss file in a Notepad, make changes, and save, the file watcher (npm run watch) recognises these changes and recompiles.
Does anyone know how to fix this issue so when I make changes to the scss file in PhpStorm the file watcher (npm run watch) will see them and recompile the css?
Please disable Use "safe write" option at Settings/Preferences | Appearance & Behavior | System Settings.
With this option enabled, IDE writes into temp file first, then deletes original file and only then renames temp into original name. Your npm run watch does not see this as file modification: it must see it differently.
When disabled IDE writes new file content directly into the file (like Notepad does) hence proper "file modified" signals getting received by your watcher.

Allow files from an RPM package to be overwritten by another rpm package

I have an RPM I am making and this is in a very controlled environment so let's also assume it is safe to allow another RPM package to overwrite certain files contained from the original RPM package.
I know from experience if you try to install an RPM package that overwrites another RPM packages file's you get a warning that there is a conflict and the install fails (yes you can do some command line hacking but that is not ideal for the situation).
Is there any way through the original RPM packages spec file that you can specify these files are not part of the package they can be overwritten by another RPM package or is that just strictly prohibited from ever happening?
Is there any way through the original RPM packages spec file that you can specify these files are not part of the package they can be overwritten by another RPM package or is that just strictly prohibited from ever happening?
You can use %ghost directive for this purpose.
http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html

RPM upgrade skips file

I have a rpm which installs .war file to /opt/myLocation/. This file is used by tomcat - it simply unzips it and moves the unzipped files to different location.
I want to make a rpm upgrade with rpm -U myPackage.rpm but it does not overwrite the file inside /opt/myLocation'
I used -vv to have a view what's going on and here is the problem:
D: fini 100644 1 ( 496, 492) 13245703 /opt/myLocation/myFile.war skip
I tried rpm -U --force -F but no luck.
Any idea what might be happening here?

rpm upgrade | add new files without removing the old ones

I develop a software which is distributed and installed via rpm. During install, I copy some binaries to a destination directory.
When performing rpm upgrade, I'd like the old binaries not to be deleted, and that the new ones will be added as is.
Is there an rpm built-in way to do so? I'd really like to avoid scripting in order to resolve that...
EDIT:
The above binaries were listed in #files section.
If you are manually copying the files to some directory (in %post for example) then yum/rpm doesn't know anything about them and can't remove them.
If you have them listed in the %files section (i.e. copying them to the right place under buildroot during `%install) then no, I do not believe you can have rpm leave files not listed by the new package on the system after upgrading to a newer version of the package which does not contain those files.
It might be possible to play with marking them as %config files and then "modifying" them so that rpm won't remove them but it might still rename them and I don't know if this will actually work.

Keep files generated by RPM after rerunning rpm -e

Is it possible to keep RPM content in the filesystem after the uninstallation ?
Basically, I don't want to erase the files generated by the RPM when someone runs rpm -e, but still remove the package from the list of installed RPMs. I want to uninstall my application manually from the server and I cannot find a way to do so.
Thanks in advance.
Specfile creation
From this perspective as a package creator, you can flag files as configurations. John Warbrick at Cambridge Uni has a good rundown of the different file markings you can use in an RPM specfile and how they behave during upgrade.
Files marked %config, if changed, are:
left behind on uninstall but renamed with an .rpmsave extension
untouched on update or reinstall, but the payload copy is installed with an .rpmnew extension
Warbrick does not deal with straight package removal: if a file marked %config is unchanged, erasing the package will remove the file. (Bear in mind that, according to RPM scriptlet ordering, RPM update or reinstall begins with erasing the old package, before the new files are lain down. I.e., the old unchanged config is replaced with the new config.)
It would be an abuse of RPM file classification to mark something a %config that is not really a config. This is important because sysadmins need to be able to trust the package payload. Plus, you probably don't want such a file to be renamed with an extension.
Your best hope then is to create the file during RPM %post. Files copied to the filesystem in %install are checked against the %files list and stored in the RPM database, but files created in %post are not. Again, this an abuse of the RPM spec file format, but if you mention it in the %description and any other documentation, but especially if it's logically expected behavior in the context of your package, you'll maybe get some sympathy.
Existing packages
For sysadmins wanting to remove a package without removing its payload, you use rpm --justdb. First, check the file list:
# rpm -ql $PACKAGE | tee $PACKAGE.payload
[rpm returns list of files, tee saves it in the file $PACKAGE.payload]
# rpm -e --justdb $PACKAGE
(At this stage, you may get a complaint about deps, so repeat with --nodeps if you must.)
And finally, check that the package is gone, but payload is still there:
# rpm -q $PACKAGE
package $PACKAGE is not installed
# ls -l $(<$PACKAGE.payload)
[ls queries list of files saved in $PACKAGE.payload]
(Or for a more reliable ls if filenames contain spaces, which would be unconscionable in RPM.)
# cat $PACKAGE.payload|xargs -d '\n' ls -l
Other observations
Note that for a package created using the method outlined at the top of my answer, attempting to list the files it owns with rpm -ql $PACKAGE will not show those persistent files. Another consequence of throwing down files during %post is that another package which "owns" those files could overwrite them unexpectedly - they're not listed in the RPM database, so they're not protected.
The two methods I've outlined break Best Practices for both RPM package creation and sysadmin. Please be very careful how you use this dangerous "little bit of knowledge". Maybe there's something else you could do to create the desired situation.
(Finally, I know this is a question from four year back. It wasn't answered. It needed answering. Cheers.)
rpm -e --repackage package_name will drop a re-installable copy in /var/spool/repackage. You can extract from that rpm using rpm2cpio if you need those files back individually.
One of the advantages of RPMS is exactly that: you can uninstall (remove)
all the files easily.
If you want to install the files provided by an RPM manually,
simply unpack the RPM as root, with:
cd / &&
rpm2cpio *.rpm | cpio -idmv
It's not a good idea, but you can unpack RPMS like that elsewhere (e.g. under ${HOME}),
and that's very useful. You may need to adjust some environment variables though.
You don't pollute the RPM database but still use the contents of an RPM.
Of course your application may get broken by system updates,
because it is not protected by dependencies.
Anyway this is how you "install" and RPM if you are not root.
Removal is also easy (if installation path chosen suitably).

Resources