2019-01-25 00:15:27 +08:00
Examples of common errors and their solutions
2016-08-20 01:21:44 +08:00
#### `curl` error:
If the error output includes something like
```
curl: (22) The requested URL returned error: 403 Forbidden
```
2018-09-23 08:04:06 +08:00
the problem was with the downloading itself (see how the error came from `curl` ). Homebrew Cask itself is fine and the problem is generally one of:
2016-08-20 01:21:44 +08:00
2019-01-25 00:15:27 +08:00
1. Software vendor or the file in their server is down.
2016-08-20 01:21:44 +08:00
2. Cask is outdated.
3. A problem in your setup or connection.
2023-09-12 02:05:20 +08:00
[How to fix ](https://docs.brew.sh/Common-Issues#cask---curl-error )
2016-08-20 01:21:44 +08:00
---
#### `Permission denied` error:
If the error output includes something like
```
Error: Permission denied - (/usr/local/Caskroom/someapp/0.1/Someapp.app, /Applications/Someapp.app)
```
2018-09-23 08:04:06 +08:00
the problem isn’ t with Homebrew Cask itself, but some permissions on your system.
2016-08-20 01:21:44 +08:00
2023-09-12 02:05:20 +08:00
[How to fix ](https://docs.brew.sh/Common-Issues#cask---permission-denied )
2016-08-20 01:21:44 +08:00
---
2017-10-14 05:20:13 +08:00
#### `Checksum does not match` error
2016-08-20 01:21:44 +08:00
If the error output includes something like
```
2017-10-14 05:20:13 +08:00
Error: Checksum for Cask 'your-cask' does not match.
2016-08-20 01:21:44 +08:00
Expected: 3dbc6c2205af35db5370c7642b9a2b833668880569b9c64a7f5a670bf9911130
Actual: 526d747d99a93b760f7965e25a57ed61de9b93d566a0ba0c5f1c7e83719b20fd
```
2016-12-18 09:53:09 +08:00
either your download was incomplete/corrupt or the cask is outdated.
2016-08-20 01:21:44 +08:00
2023-09-12 02:05:20 +08:00
[How to fix ](https://docs.brew.sh/Common-Issues#cask---checksum-does-not-match )
2016-08-20 01:21:44 +08:00
---
#### `source is not there` error
If the error output includes something like
```
2019-01-25 00:15:27 +08:00
It seems the App source '/usr/local/Caskroom/someapp/0.1/Someapp.app' is not there.
2016-08-20 01:21:44 +08:00
```
2018-09-23 08:04:06 +08:00
the directory structure inside the app’ s archive changed in some way. It must be fixed in Homebrew Cask.
2016-08-20 01:21:44 +08:00
2022-04-05 09:20:51 +08:00
[How to fix ](https://docs.brew.sh/Common-Issues#cask---source-is-not-there )
2016-08-20 01:21:44 +08:00
---
2016-12-18 09:53:09 +08:00
#### `wrong number of arguments` error
If the error output includes something like
```
Error: wrong number of arguments (1 for 4)
```
it’ s likely the software you’ re trying to install is incompatible with your macOS version.
2022-04-05 09:20:51 +08:00
[How to fix ](https://docs.brew.sh/Common-Issues#cask---wrong-number-of-arguments )
2016-12-18 09:53:09 +08:00
---
2016-08-20 01:21:44 +08:00
#### Unlisted reason
2021-05-04 11:30:14 +08:00
If your issue isn’ t listed here, [go back ](https://github.com/Homebrew/homebrew-cask/blob/HEAD/README.md#reporting-bugs ) and pick `My problem isn’ t listed` .