thanks so much for your help. First ever questions here:) Just getting started with linux / ubuntu. have dabbled for years but fully converted recently... anywhoo...
I installed 7z but the command is not found. I restarted the computer to hopefully refresh commands but that didn't help either..
here is what I did:
sudo apt-get install p7zip
sudo apt-get install p7zip-full
then tried:
7z e [file-name].xz
and
7za e [file-name].xz
then I read up the man file but still nothing. every time i get the following reply:
/usr/local/bin/7z: 2: /usr/local/bin/7z: /usr/local/lib/p7zip/7z: not found
thanks so much already for the help!
I had the same problem. Use sudo apt-get install p7zip-full
to solve this.
figured it out!
the path in the bin file was pointing to the wrong place.
i needed to switch the direction from the
usr/local/lib/p7zip/
directory to
usr/lib/p7zip/
directory....
/usr/lib/p7zip/7z x your_file_name
can fix the issue.
Or you can edit usr/local/bin/7z
:
sudo vim /usr/local/bin/7z
replacing:
/usr/local/lib/p7zip/7z
with:
/usr/lib/p7zip/7z
The result is as follows:
(base) j@lab:~/doc/code$ 7z x deep_motion_mag-master.7z
/usr/local/bin/7z: 2: /usr/local/bin/7z: /usr/local/lib/p7zip/7z: not found
(base) j@lab:~/doc/code$ 7z x deep.7z
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 CPUs)
Processing archive: deep.7z
Extracting deep
Extracting deep/configs
...
Every user can use 7z.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.