{"record":{"id":"f92bcc7391a8361b","repo":"jordansissel/fpm","slug":"debian-tools-dpkg-apt-don-t-do-well-with-package","errorCode":null,"errorMessage":"Debian tools (dpkg/apt) don't do well with packages that use capital letters in the name. In some cases it will automatically downcase them, in others it will not. It is confusing. Best to not use any capital letters at all. I have downcased the package name for you just to be safe.","messagePattern":"Debian tools \\(dpkg/apt\\) don't do well with packages that use capital letters in the name\\. In some cases it will automatically downcase them, in others it will not\\. It is confusing\\. Best to not use any capital letters at all\\. I have downcased the package name for you just to be safe\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/fpm/package/deb.rb","lineNumber":296,"sourceCode":"      # Debian calls aarch64 \"arm64\"\n      @architecture = \"arm64\"\n    when \"noarch\"\n      # Debian calls noarch \"all\"\n      @architecture = \"all\"\n    when \"ppc64le\"\n      # Debian calls ppc64le \"ppc64el\"\n      @architecture = \"ppc64el\"\n    end\n    return @architecture\n  end # def architecture\n\n  # Get the name of this package. See also FPM::Package#name\n  #\n  # This accessor actually modifies the name if it has some invalid or unwise\n  # characters.\n  def name\n    if @name =~ /[A-Z]/\n      logger.warn(\"Debian tools (dpkg/apt) don't do well with packages \" \\\n        \"that use capital letters in the name. In some cases it will \" \\\n        \"automatically downcase them, in others it will not. It is confusing.\" \\\n        \" Best to not use any capital letters at all. I have downcased the \" \\\n        \"package name for you just to be safe.\",\n        :oldname => @name, :fixedname => @name.downcase)\n      @name = @name.downcase\n    end\n\n    if @name.include?(\"_\")\n      logger.info(\"Debian package names cannot include underscores; \" \\\n                   \"automatically converting to dashes\", :name => @name)\n      @name = @name.gsub(/[_]/, \"-\")\n    end\n\n    if @name.include?(\" \")\n      logger.info(\"Debian package names cannot include spaces; \" \\\n                   \"automatically converting to dashes\", :name => @name)\n      @name = @name.gsub(/[ ]/, \"-\")","sourceCodeStart":278,"sourceCodeEnd":314,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/deb.rb#L278-L314","documentation":"Error \"Debian tools (dpkg/apt) don't do well with packages that use capital letters in the name. In some cases it will automatically downcase them, in others it will not. It is confusing. Best to not use any capital letters at all. I have downcased the package name for you just to be safe.\" thrown in jordansissel/fpm.","triggerScenarios":"Thrown at lib/fpm/package/deb.rb:296 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}