相关文章推荐
玩篮球的红豆  ·  python - ...·  2 年前    · 
道上混的草稿纸  ·  编辑数据源 - Tableau·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am downloading MySQL and I 've been told to download a .deb, so I download a mysql-apt-config_0.8.15-1_all.deb from the website. The problem is that when I type in sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb , the terminal says sudo: dpkg: command not found . I know that this question has been posted before, but I couldn't understand the solution, is there any simple way that I can fix this? Thanks in advance.

On Mac, use brew install dpkg . If brew is not installed, try /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Then use brew install dpkg and then you can simply use dpkg -i .

I get an error "Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/apt" (-1)" people online says that it may be the problem that mac doesn't support APT by default??? What's does that mean? Peter24 Jun 12, 2020 at 11:50 @Peter24 OK, I didn't know you were using a Mac. Do you have brew? If not, try /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" . Then brew install dpkg . After that you will be able to use dpkg -i , hopefully. Akshat Vats Jun 12, 2020 at 12:09 I've got a brew and brew install dpkg works, however, i gave me this after I execute sudo dpkg -i : dpkg: warning: '/usr/local/opt/gnu-tar/bin/gtar' not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin Peter24 Jun 12, 2020 at 12:46 @Peter24 dev.mysql.com/doc/refman/5.7/en/osx-installation-pkg.html . It tells to download .pkg for mc Akshat Vats Jun 12, 2020 at 13:03 strange thing is that when I installed the package, it told me to set the root password by myself instead of giving me a new one, is that normal? Peter24 Jun 12, 2020 at 13:48

Yes, most probably you are on the wrong shell. Type bash or sh before running the dpkg command. I hope this works! If it doesn't comment below! If it works please accept!

Note: dpkg -i not dpkg-i

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .