Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Unable to locate package' erorr while trying to install #149

Open
quantumgolem opened this issue Jun 5, 2021 · 10 comments · May be fixed by #183
Open

'Unable to locate package' erorr while trying to install #149

quantumgolem opened this issue Jun 5, 2021 · 10 comments · May be fixed by #183

Comments

@quantumgolem
Copy link

When I try to install this on my Linux OS, I get the following error:

$ sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc-c++ git libattr1-dev zlib1g-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libfuse3-dev
E: Unable to locate package gcc-c+
E: Couldn't find any package by regex 'gcc-c+'

What am I doing wrong?

@quantumgolem
Copy link
Author

@Aayush9029 thank you for your comment! I ran all of the commands, but now when I run the install line in the original instructions, I get the following error:

sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc-c++ git libattr1-dev zlib1g-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libfuse3-dev
E: Unable to locate package gcc-c+
E: Couldn't find any package by regex 'gcc-c+'

And when I try to install anyway, I get an error on the last make command:

make

[ 64%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/GptPartitionMap.cpp.o
[ 66%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/KeyMgmt.cpp.o
[ 68%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/PList.cpp.o
[ 70%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/Sha1.cpp.o
[ 72%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/Sha256.cpp.o
[ 75%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/TripleDes.cpp.o
[ 77%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/Util.cpp.o
/home/user/apfs-fuse/ApfsLib/Util.cpp:37:10: fatal error: bzlib.h: No such file or directory
 #include <bzlib.h>
          ^~~~~~~~~
compilation terminated.
CMakeFiles/apfs.dir/build.make:734: recipe for target 'CMakeFiles/apfs.dir/ApfsLib/Util.cpp.o' failed
make[2]: *** [CMakeFiles/apfs.dir/ApfsLib/Util.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/apfs.dir/all' failed
make[1]: *** [CMakeFiles/apfs.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@lucasgabmoreno
Copy link

Same problem here, I've installed @Aayush9029 method but:

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/lucasgabmoreno/apfs-fuse/build/CMakeFiles/CMakeOutput.log".
See also "/home/lucasgabmoreno/apfs-fuse/build/CMakeFiles/CMakeError.log".

@aikhan
Copy link

aikhan commented Feb 21, 2022

Same problem

@memorypuzzler
Copy link

I have exactly the same problem. get the message:

E: Unable to locate package gcc-c+

@ssonkokevin
Copy link

same problem

@lucasgabmoreno
Copy link

Instead of gcc-c++ I could install clang in Debian 11

sudo apt install clang -y

Now I have this alerts:

[ 16%] Built target lzfse
[ 18%] Building CXX object CMakeFiles/apfs.dir/ApfsLib/Util.cpp.o
/home/lucasgabmoreno/apfs-fuse/ApfsLib/Util.cpp:37:10: fatal error: bzlib.h: No existe el fichero o el directorio
   37 | #include <bzlib.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/apfs.dir/build.make:446: CMakeFiles/apfs.dir/ApfsLib/Util.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:217: CMakeFiles/apfs.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

@devgregw
Copy link

On Ubuntu 22.04, I was able to compile everything after replacing gcc-c++ in the command with gcc and g++.

@lucasgabmoreno
Copy link

sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc-c++ git libattr1-dev zlib1g-dev

Hi @devgregw!
Can you please share us step by step?

Thanks!

@devgregw
Copy link

devgregw commented Sep 26, 2022

@lucasgabmoreno my full installation command was sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc g++ git libattr1-dev zlib1g-dev. After that, I followed the rest of the instructions without any other changes

@lucasgabmoreno
Copy link

lucasgabmoreno commented Sep 26, 2022

sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc g++ git libattr1-dev zlib1g-dev

@devgregw Thanks!!!

This works on Linux Mint Debian Edition 5 !!!

Your fix:

sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc g++ git libattr1-dev zlib1g-dev

Same:

git clone https://github.com/sgan81/apfs-fuse.git
cd apfs-fuse
git submodule init
git submodule update

Same:

mkdir build
cd build
cmake ..
ccmake . # Only if you want to change build options
make

My fix:

sudo cp apfs-* /usr/bin/
sudo cp apfsutil /usr/bin/

@Goooler Goooler linked a pull request Sep 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants