Is damaged and can’t be opened. you should eject the disk image maclife

Is damaged and can’t be opened. you should eject the disk image maclife
Kanchana Imsilp/Shutterstock.com

Have you received an error message that says an app “is damaged and can’t be opened” and “you should move it to the Bin” with a handy button for doing so? If you trust the file, you can get around this with a simple Terminal command.

How to Move Trusted Files Out of Quarantine

A Mac will sometimes encounter a file it doesn’t trust and report that the file is damaged, and should be moved to the bin. You would be forgiven for listening to macOS and going with it, but much of the time there’s nothing wrong with the app. Instead, macOS has quarantined the app since it suspects foul play.

Is damaged and can’t be opened. you should eject the disk image maclife

Assuming you trust the origin of the app that you have downloaded (for example, a piece of software directly from a developer you trust) you can attempt to ignore the warning and open the file anyway.

To do this, open a new Terminal window and type (or paste the following command):

xattr -d com.apple.quarantine /path/to/app.app

You’ll need to replace /path/to/app.app with the target location of the file you want to release from quarantine. One easy way of doing this is to drag the file into the Terminal window, right after the initial command.

Is damaged and can’t be opened. you should eject the disk image maclife

You won’t receive any feedback once the command has been executed, but with a bit of luck, the file you tried to open will no longer throw an error and should just work like normal.

Is damaged and can’t be opened. you should eject the disk image maclife

Why Does This Happen?

macOS takes an overzealous approach to security, with features like Gatekeeper attempting to limit software to the Mac App Store and System Integrity Protection preventing third-party apps from tampering with sensitive parts of the system or injecting code into Apple apps like Finder and Safari.

This quarantine process only applies to certain APP files that are contained within a ZIP archive that has been downloaded from the internet. Files that have been shared via a USB drive or local network location are not subject to the same protections.

Sometimes the app may legitimately be “damaged” in that it won’t work, and the Terminal command above won’t do anything to resolve that. In that case, you’re going to need to find another source for your app.

Always Exercise Caution

Malware is more common than it once was on macOS, which means you should always be vigilant about what software you download and choose to run. Common sense dictates that you should avoid files of unknown origin, but even so-called “legitimate” files can be compromised as happened with the trusted Transmission BitTorrent client back in 2016.

RELATED: How to Protect Your Mac from Malware

READ NEXT

  • › 7 Powerful macOS Features You’re Probably Not Using
  • › 16 Questions You’re Too Afraid to Ask About Your New MacBook
  • › What Are Gravity Batteries, and How Do They Work?
  • › How to Turn Off an Android Phone
  • › What Is “Health Connect by Android”, and Should You Use It?
  • › How to Shuffle a Playlist on Spotify
  • › Old Chromecasts Make Perfect Digital Picture Frames for Relatives
  • › How to Make a Chart in Google Docs

How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read more than 1 billion times. Want to know more?

Quảng cáo

Có một số trường hợp khi cài ứng dụng trên máy Mac bạn gặp phải lỗi sau: “Damaged and can’t be opened. You should move it to the Trash” thiệt là bực mình. Ví dụ mình cài Wondershare Filmora 9 bị báo lỗi trên, mình đã làm theo cách hướng dẫn ở trên mạng nhưng chưa đủ:

Cách 1: AnyWhere

Cách này mình thấy hướng dẫn khá nhiều, mình cũng thử nhưng chưa đưa trên máy Mac của mình nên các bạn có thể thử trước xem sao, nếu không được thì nhảy sang cách 2 luôn nhé.

Mặc định Apple chỉ cho bạn cài đặt những ứng dụng được xác thực thông qua AppStore vào máy Mac nhưng nếu bạn muốn cài đặt một ứng dụng bên thứ 3 vào máy không thông qua Appstore đối với những bạn đang sử dụng phiên bản MacOS 10.12 hoặc thấp hơn bạn có thể vào System Preferences > Security & Privacy để bật Anywhere sau đó có thể chạy cài đặt ứng dụng bên thứ 3 vào Mac.

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Từ macOS 10.12 Sierra Gatekeeper không còn cho phép người dùng có thể thoải mái cài đặt các phần mềm không rõ nguồn gốc vào máy nữa. Cụ thể khi bạn cập nhật, cài đặt MacOS 10.12 Sierra hoặc MacOS cao hơn sau đó vào System Preferences > Security & Privacy ở đây Apple đã ẩn Anywhere không cho chúng ta thấy để chọn Anywhere. Thế nhưng Apple vẫn còn để lại 1 cửa để người dùng có thể kích hoạt Anywhere lên.

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Thông báo khi bạn cài phần mềm không rõ nguồn gốc vào MacOS “xxxx.app” is damaged and can’t be opened. You should move it to the Trash.

Đối với MacOS Mojave, Sierra, High Sierra hoặc phiên bản MacOS mới hơn bạn phải kích hoạt Anywhere lên bằng dòng lệnh dưới đây:

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Bước 1: Để chạy được dòng lệnh trên macOS bạn mở Terminal lên bằng cách vào Spotlight sử dụng phím tắt Command + Space (thanh dài nhất ở bàn phím). Sau đó gõ Terminal và chạy nó lên.

sudo spctl --master-disable

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Bước 2: Copy dòng lệnh và paste và Terminal sau đó nhấn Return(enter) máy sẽ yêu cầu bạn nhập mật khẩu bạn cứ gõ chính xác mật khẩu của máy(lưu ý Terminal sẽ không hiển thị mật khẩu bạn gõ vào nên bạn cứ gõ đúng mật khẩu) và tiếp tục nhấn Return(enter).

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Bước 3: Bạn vào System Preferences > Security & Privacy kiểm tra xem đã hiển thị Anywhere chưa sau đó tiến hành cài đặt bất kỳ phần mềm nào bạn muốn vào máy Mac sẽ không bị báo lỗi như ở trên nữa.

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Kích hoạt lên rồi nhưng chúng ta muốn trở về mặc định lúc ban đầu thì làm thế nào rất đơn giản cứ mở Terminal và chạy dòng lệnh ở dưới đây để tắt Anywhere đi thôi.

sudo spctl --master-enable

Is damaged and can’t be opened. you should eject the disk image maclife
Hướng dẫn sửa lỗi “Damaged and can’t be opened” khi cài đặt ứng dụng MacOs

Cách 2: Throwing the Damaged Error

Các này mình thử 1 phát được ngay, các bạn chỉ việc chạy dòng lệnh của xattr để nói với máy Mac rằng “Chúng tôi không quan tâm tới lỗi trên, cứ cho App chạy đi”.

Để thực hiện, các bạn gõ lệnh sau:

xattr -cr /path/to/application.app

Ví dụ:

xattr -cr /Applications/Wondershare\ Filmora9.app

Chạy luôn, không cần phải đắn đo.

Chúc các bạn thành công!

Quảng cáo

Is damaged and can't be opened you should eject the disk image Mac?

You should eject the disk image" or that the software "is damaged and can't be opened..
Go to System Preferences | Security & Privacy..
Click on the padlock icon at the lower-left corner to enable you to make changes..
Choose "App Store and identified developers".

How do you fix the file is damaged and can't be opened?

The Open and Repair command might be able to recover your file..
Click File > Open > Browse and then go to the location or folder where the document (Word), workbook (Excel), or presentation (PowerPoint) is stored. ... .
Click the file you want, and then click the arrow next to Open, and click Open and Repair..

What does it mean if a Mac installer says it is damaged and can't be opened?

If your Mac says the app you're trying to launch has been damaged, this may indicate the app's code has been altered. This may potentially put your system's security and stability at risk. To fix this error, update the problematic app, install the latest macOS update or reinstall the app.

How do I fix a corrupted Mac file?

Mac's Built-In Repair Shop Open up your Applications folder, and click “Utilities.” Open up the Disk Utility application in that list to have access to the repair tool. Now simply drag your damaged DMG file onto the Disk Utility window. Click the damaged file, and then select “Repair Disk” in the First Aid tab.