Compilation error with CUDA-9.0 installation

While trying to install CUDA-9.0 on my laptop I went through all necessary steps until samples compilation. The following error happened. See the output on screen:

ssn@ssn-ThinkPad-T460:~ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Mon_Jun_26_16:13:28_CDT_2017 Cuda compilation tools, release 9.0, V9.0.102 ssn@ssn-ThinkPad-T460:~ ls /usr/local/cuda-9.0/samples
0_Simple 2_Graphics 4_Finance 6_Advanced common Makefile
1_Utilities 3_Imaging 5_Simulations 7_CUDALibraries EULA.txt
ssn@ssn-ThinkPad-T460:~ cd /usr/local/cuda-9.0/samples ssn@ssn-ThinkPad-T460:/usr/local/cuda-9.0/samples make
make[1]: вход в каталог «/usr/local/cuda-9.0/samples/0_Simple/vectorAdd_nvrtc»
g++ -I…/…/common/inc -I/usr/local/cuda-9.0/include -o vectorAdd.o -c vectorAdd.cpp
In file included from vectorAdd.cpp:30:0:
…/…/common/inc/nvrtc_helper.h: In function ‘void compileFileToPTX(char*, int, char**, char**, size_t*, int)’:
…/…/common/inc/nvrtc_helper.h:50:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char *HeaderNames = “cooperative_groups.h”;
^
Assembler messages:
Fatal error: can’t create vectorAdd.o: Отказано в доступе
Makefile:301: ошибка выполнения рецепта для цели «vectorAdd.o»
make[1]: *** [vectorAdd.o] Ошибка 1
make[1]: выход из каталога «/usr/local/cuda-9.0/samples/0_Simple/vectorAdd_nvrtc»
Makefile:52: ошибка выполнения рецепта для цели «0_Simple/vectorAdd_nvrtc/Makefile.ph_build»
make: *** [0_Simple/vectorAdd_nvrtc/Makefile.ph_build] Ошибка 2
ssn@ssn-ThinkPad-T460:/usr/local/cuda-9.0/samples$ cd
ssn@ssn-ThinkPad-T460:~ lspci | grep -i nvidia 06:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2) ssn@ssn-ThinkPad-T460:~ uname -m && cat /etc/*release
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=“Ubuntu 16.04.2 LTS”
NAME=“Ubuntu”
VERSION=“16.04.2 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 16.04.2 LTS”
VERSION_ID=“16.04”
HOME_URL=“http://www.ubuntu.com/
SUPPORT_URL=“http://help.ubuntu.com/
BUG_REPORT_URL=“http://bugs.launchpad.net/ubuntu/
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
ssn@ssn-ThinkPad-T460:~$ gcc --version

Above and below the laptop’s configuration values are shown.

Any idea what’s going wrong and how to fix it?
Thanks in advance.

See also info to gcc version.
ssn@ssn-ThinkPad-T460:~$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright © 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.