В процессе установки произошла ошибка not a directory

  1. При установке воспроизводится ошибка:

    
    node/elma365 labeled
    ./get_elma365.shline 50: /usr/local/bin/elma365ctlNot a directory

    Причина
    В какой-то момент при выполнении скрипта-инсталлятора файл с именем bin был сохранен в /usr/local/. Правильное расположение файла: /usr/local/bin/.

    Для проверки выполнить одну из следующих команд:

    Команда:

    Результат:

    
    root@elma365:/home/elma# ls /usr/local/bin/usr/local/bin
    
    

    или

    Команда:

    Результат:

    
    root@elma365:/home/elma# file /usr/local/bin/usr/local/bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=aTPMz98DKQz6B0OPWACG/FlSRIlZXQlOVt4piGo4d/5X9Ay-BFfl1clVKzzY1S/5VTM_-fsVR31dtx1Ig1C, stripped
    
    

    Решение

    1. Переименовать bin: mv /usr/local/bin /usr/local/bin.b
    2. Создать папку: mkdir /usr/local/bin

Just installed Lubuntu on my laptop. Win8 was the only previous OS on it.

After that I tried install slimjet following this:

How to Install SlimJet Browser on Ubuntu 20.04

But I couldn’t since some «not a directory» error happened after CD and dpkg commands didn’t work.

This is from my terminal(strangely enough it can recognize ‘ls’ command and bring the folders, but it won’t do the same for typed or even copied paths! )

none0@none0-X102BA:~$ cd ~/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ ~/Downloads$ ls
bash: /home/none0/Downloads$: No such file or directory
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$
none0@none0-X102BA:~$ ls
Desktop Downloads Music Public Videos
Documents mozilla.pdf Pictures Templates
none0@none0-X102BA:~$ Downloads
Downloads: command not found
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ sudo dpkg -i slimjet_amd64.deb
[sudo] password for none0:
dpkg: error processing archive slimjet_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
slimjet_amd64.deb
none0@none0-X102BA:~$ rr
The program 'rr' is currently not installed. You can install it by typing:
sudo apt install rr

mook765's user avatar

mook765

14.5k5 gold badges35 silver badges64 bronze badges

asked Nov 20, 2021 at 16:08

Mrvl's user avatar

9

The instructions on that page is wrong!

The correct commands is:

cd ~/Downloads

cd stands for change directory. Downloads is the directory.

Once you complete the above command, you enter the next one:

sudo dpkg -i slimjet_amd64.deb

You will be asked to enter your password. When you type the password nothing will show on the terminal. This is normal.

Uninstall

If you don’t like the software and want to uninstall it, use the following command:

sudo apt remove slimjet

Another way to uninstall it is to open the Ubuntu Software Store and search of the slimjet. It should be listed as an installed software, and clicking on the Remove button will remove it.

In either case you will need to enter your password.

See How can I uninstall software? for more on uninstalling software in Ubuntu.

Hope this helps

answered Nov 20, 2021 at 16:29

user68186's user avatar

user68186user68186

30.8k12 gold badges84 silver badges111 bronze badges

3

You can’t cd (change directory) to the .deb file as it’s not a directory.
Try executing sudo dpkg -i ~/Downloads/slimjet_amd64.deb in order to install slimjet_amd64.deb located inside Downloads directory.

answered Nov 20, 2021 at 16:29

Jonasz Potoniec's user avatar

Hey,

I have the same problem!

Command

archinstall --config config.json --silent

config.json

{
    "audio": "pipewire",
    "bootloader": "systemd-bootctl",
    "custom-commands": [
        "cd /home/miguel && git clone -b add-base https://github.com/MiguelNdeCarvalho/ansible-pc.git && chown mike -R /home/miguel/ansible-pc",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-galaxy collection install -r requirements.yml",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-playbook -i localhost main.yml",
        "rm -rf /home/miguel/ansible-pc"
    ],
    "!encryption-password": "teste",
    "filesystem": "ext4",
    "harddrives": [
        "/dev/nvme0n1"
    ],
    "hostname": "mike-laptop",
    "kernels": [
        "linux-lts"
    ],
    "keyboard-layout": "pt-latin1",
    "mirror-region": "Portugal",
    "nic": {
        "NetworkManager": true,
        "nic": "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE)"
    },
    "ntp": "true",
    "packages": [
        "git",
        "ansible"
    ],
    "swap": "true",
    "!superusers": {
        "mike": {
            "!password": "teste"
        }
    },
    "sys-enconding": "utf-8",
    "sys-language": "en_US",
    "timezone": "Europe/Lisbon"
}

Output

Testing connectivity to the Arch Linux mirrors ...

This is your chosen configuration:
{
    "audio": "pipewire",
    "bootloader": "systemd-bootctl",
    "custom-commands": [
        "cd /home/miguel && git clone -b add-base https://github.com/MiguelNdeCarvalho/ansible-pc.git && chown mike -R /home/miguel/ansible-pc",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-galaxy collection install -r requirements.yml",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-playbook -i localhost main.yml",
        "rm -rf /home/miguel/ansible-pc"
    ],
    "dry-run": false,
    "filesystem": "ext4",
    "harddrives": [
        "/dev/nvme0n1"
    ],
    "hostname": "mike-laptop",
    "kernels": [
        "linux-lts"
    ],
    "keyboard-layout": "pt-latin1",
    "mirror-region": {
        "Portugal": {
            "http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "http://glua.ua.pt/pub/archlinux/$repo/os/$arch": true,
            "https://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "https://glua.ua.pt/pub/archlinux/$repo/os/$arch": true
        }
    },
    "nic": {
        "NetworkManager": true,
        "nic": "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE)"
    },
    "ntp": "true",
    "packages": [
        "git",
        "ansible"
    ],
    "script": "guided",
    "silent": true,
    "swap": "true",
    "sys-enconding": "utf-8",
    "sys-language": "en_US",
    "timezone": "Europe/Lisbon"
}

 ! Formatting [BlockDevice(/dev/nvme0n1, size=50.0GB, free_space=5225kB+5243kB+500MB+1032kB, bus_type=nvme)] in 5....4....3....2....1....
Waiting for automatic mirror selection (reflector) to complete.
A new package mirror-list has been created: /etc/pacman.d/mirrorlist
Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux-lts']
==> ERROR: /mnt/archinstall is not a directory

Could not strap in packages: ==> ERROR: /mnt/archinstall is not a directory

Could not strap in packages: 256
Pacstrap failed. See /var/log/archinstall/install.log or above message for error details.
[!] A log file has been created here: /var/log/archinstall/install.log
    Please submit this issue (and file) to https://github.com/archlinux/archinstall/issues
Traceback (most recent call last):
  File "/usr/bin/archinstall", line 33, in <module>
    sys.exit(load_entry_point('archinstall==2.3.0', 'console_scripts', 'archinstall')())
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 111, in run_as_a_module
    script.execute()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/profiles.py", line 180, in execute
    self.spec.loader.exec_module(sys.modules[self.namespace])
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 388, in <module>
    perform_installation(archinstall.storage.get('MOUNT_POINT', '/mnt'))
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 264, in perform_installation
    with archinstall.Installer(mountpoint, kernels=archinstall.arguments.get('kernels', 'linux')) as installation:
  File "/usr/lib/python3.10/site-packages/archinstall/lib/installer.py", line 143, in __exit__
    raise args[1]
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 286, in perform_installation
    if installation.minimal_installation():
  File "/usr/lib/python3.10/site-packages/archinstall/lib/installer.py", line 509, in minimal_installation
    self.pacstrap(self.base_packages)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/installer.py", line 257, in pacstrap
    raise RequirementError("Pacstrap failed. See /var/log/archinstall/install.log or above message for error details.")
archinstall.lib.exceptions.RequirementError: Pacstrap failed. See /var/log/archinstall/install.log or above message for error details.

cmd_history.txt

/usr/bin/systemd-detect-virt
/usr/bin/systemd-detect-virt
/usr/bin/lspci
/usr/bin/lsblk -f -o+TYPE,SIZE -J
/usr/bin/pacman -Sy
/usr/bin/lsblk --json -l -n -o path,size,type,mountpoint,label,pkname,model
/usr/bin/lsblk --json -b -o+SIZE /dev/nvme0n1
/usr/bin/parted -s --machine /dev/nvme0n1 print free
/usr/bin/lsblk --json -o+ROTA,TRAN /dev/nvme0n1
/usr/bin/findmnt --json -R /mnt/archinstall
/usr/bin/systemctl show --no-pager -p SubState --value reflector.service
/usr/bin/findmnt --json -R /mnt/archinstall
/usr/bin/systemd-detect-virt
/usr/bin/pacman -Syy
/usr/bin/pacstrap /mnt/archinstall base base-devel linux-firmware linux-lts --noconfirm

ìnstall.log

Hardware model detected: innotek GmbH VirtualBox; UEFI mode: True
Processor model detected: AMD Ryzen 5 2600 Six-Core Processor
Memory statistics: 3640760 available out of 4006432 total installed
Virtualization detected: oracle; is VM: True
Graphics devices detected: dict_keys(['VMware SVGA II Adapter'])
Disk states before installing: {'blockdevices': [{'name': 'loop0', 'fstype': 'squashfs', 'fsver': '4.0', 'label': None, 'uuid': None, 'fsavail': '0', 'fsuse%': '100%', 'mountpoints': ['/run/archiso/airootfs'], 'type': 'loop', 'size': '715.4M'}, {'name': 'sr0', 'fstype': 'iso9660', 'fsver': 'Joliet Extension', 'label': 'ARCH_202201', 'uuid': '2022-01-01-10-11-06-00', 'fsavail': '0', 'fsuse%': '100%', 'mountpoints': ['/run/archiso/bootmnt'], 'type': 'rom', 'size': '864.3M'}, {'name': 'nvme0n1', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '50G', 'children': [{'name': 'nvme0n1p1', 'fstype': 'vfat', 'fsver': 'FAT32', 'label': None, 'uuid': '1CC6-E97C', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '484M'}, {'name': 'nvme0n1p2', 'fstype': 'crypto_LUKS', 'fsver': '2', 'label': None, 'uuid': 'd9f3fe5b-d7ab-459d-be08-03856df70760', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '18.1G'}, {'name': 'nvme0n1p3', 'fstype': 'crypto_LUKS', 'fsver': '2', 'label': None, 'uuid': 'a09634ae-cf95-4c9a-96ec-0dab73f6792a', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '30.9G'}]}]}
Testing connectivity to the Arch Linux mirrors ...
-- Guided template chosen (with below config) --
{
    "audio": "pipewire",
    "bootloader": "systemd-bootctl",
    "custom-commands": [
        "cd /home/miguel && git clone -b add-base https://github.com/MiguelNdeCarvalho/ansible-pc.git && chown mike -R /home/miguel/ansible-pc",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-galaxy collection install -r requirements.yml",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-playbook -i localhost main.yml",
        "rm -rf /home/miguel/ansible-pc"
    ],
    "dry-run": false,
    "filesystem": "ext4",
    "harddrives": [
        "/dev/nvme0n1"
    ],
    "hostname": "mike-laptop",
    "kernels": [
        "linux-lts"
    ],
    "keyboard-layout": "pt-latin1",
    "mirror-region": {
        "Portugal": {
            "http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "http://glua.ua.pt/pub/archlinux/$repo/os/$arch": true,
            "https://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "https://glua.ua.pt/pub/archlinux/$repo/os/$arch": true
        }
    },
    "nic": {
        "NetworkManager": true,
        "nic": "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE)"
    },
    "ntp": "true",
    "packages": [
        "git",
        "ansible"
    ],
    "script": "guided",
    "silent": true,
    "swap": "true",
    "sys-enconding": "utf-8",
    "sys-language": "en_US",
    "timezone": "Europe/Lisbon"
}
Waiting for automatic mirror selection (reflector) to complete.
A new package mirror-list has been created: /etc/pacman.d/mirrorlist
Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux-lts']
Could not strap in packages: ==> ERROR: /mnt/archinstall is not a directory

Could not strap in packages: 256
Pacstrap failed. See /var/log/archinstall/install.log or above message for error details.

user_configuration.json

{
    "audio": "pipewire",
    "bootloader": "systemd-bootctl",
    "custom-commands": [
        "cd /home/miguel && git clone -b add-base https://github.com/MiguelNdeCarvalho/ansible-pc.git && chown mike -R /home/miguel/ansible-pc",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-galaxy collection install -r requirements.yml",
        "sudo -u mike -D /home/miguel/ansible-pc/ ansible-playbook -i localhost main.yml",
        "rm -rf /home/miguel/ansible-pc"
    ],
    "dry-run": false,
    "filesystem": "ext4",
    "harddrives": [
        "/dev/nvme0n1"
    ],
    "hostname": "mike-laptop",
    "kernels": [
        "linux-lts"
    ],
    "keyboard-layout": "pt-latin1",
    "mirror-region": {
        "Portugal": {
            "http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "http://glua.ua.pt/pub/archlinux/$repo/os/$arch": true,
            "https://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch": true,
            "https://glua.ua.pt/pub/archlinux/$repo/os/$arch": true
        }
    },
    "nic": {
        "NetworkManager": true,
        "nic": "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE)"
    },
    "ntp": "true",
    "packages": [
        "git",
        "ansible"
    ],
    "script": "guided",
    "silent": true,
    "swap": "true",
    "sys-enconding": "utf-8",
    "sys-language": "en_US",
    "timezone": "Europe/Lisbon"
}

user_credentials.json

{
    "!encryption-password": "teste",
    "!superusers": {
        "mike": {
            "!password": "teste"
        }
    }
}

Thanks,
MiguelNdecarvalho

I am running the command «sudo make install», the relevant cmake_install.cmake file is at the bottom. The exact error message I receive is:

CMake Error at cmake_install.cmake:36 (file):
  file INSTALL destination:
  ~/Desktop/Geant/geant4.10.04-install/share/Geant4-10.4.0/geant4make is not
  a directory.


Makefile:104: recipe for target 'install' failed
make: *** [install] Error 1

This is perplexing to me as I can navigate to that exact directory, it exists and whats more, it was made during this installation, so the make install is creating this directory and then saying that it doesn’t exist…

Also, when I originally did the cmake command, my CMAKE_INSTALL_PREFIX is «~/Desktop/Geant/geant4.10.04-install», but since the make install command was able to make the geant4.10.04-install directory in the correct place, I don’t think that is the problem.

The first 50ish lines of the cmake_install.cmake file (I can post the rest if need be…) :

# Install script for directory: /home/kagnew/Desktop/Geant/geant4.10.04

# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
  set(CMAKE_INSTALL_PREFIX "~/Desktop/Geant/geant4.10.04-install")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
  if(BUILD_TYPE)
    string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
           CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
  else()
    set(CMAKE_INSTALL_CONFIG_NAME "Release")
  endif()
  message(STATUS "Install configuration: "${CMAKE_INSTALL_CONFIG_NAME}"")
endif()

# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
  if(COMPONENT)
    message(STATUS "Install component: "${COMPONENT}"")
    set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
  else()
    set(CMAKE_INSTALL_COMPONENT)
  endif()
endif()

# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
  set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()

if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Development")
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/Geant4-10.4.0/geant4make" TYPE FILE MESSAGE_LAZY PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE FILES "/home/kagnew/Desktop/Geant/geant4-build/InstallTreeFiles/geant4make.sh")
endif()

UPDATE: As suggested by Tsyvarev, changing the beginning of my prefix path from «~» to «/home/user/» seems to have fixed the problem


Go to linux4noobs


r/linux4noobs

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.




Members





Online



dd: Not a directory error

I’m trying to create a backup image of my root partition (/dev/sda1) to another partition (/dev/sda4) using an arch live usb with this:

dd if=/dev/sda1 of=/dev/sda4/backup01.img 

But this results in the following error: dd: failed to open /dev/sda4/backup01.img: Not a directory

What do I do? I’ve tried google, but most similar dd errors are from people dd’ing from one partition to another (and not an image).

Thanks

Возможно, вам также будет интересно:

  • В процессе установки произошла неустранимая ошибка
  • В процессе установки произошла неисправимая ошибка чипсет
  • В процессе установки произошла неисправимая ошибка установка kaspersky
  • В процессе установки произошла неисправимая ошибка код ошибки 1603
  • В процессе установки произошла неисправимая ошибка usergate

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии